How to chat with your PDF using ChatGPT on Google Colab

Share it with your senior IT friends and colleagues
Reading Time: 2 minutes

Namaste and Welcome to Build It Yourself.

In the tutorial, we will see how to chat with your data (in PDF) using OpenAI’s gpt3.5-turbo model.

We will be doing it in Google Colab.

If you are an entrepreneur or a senior professional (15+ years of experience) and looking to learn AI + LLM in a simple language, check out the courses and other details –

Who is this article for?

This article is for those who want to test the magic of ChatGPT on their own data.

We will use this Google Colab Notebook –

Let us dive into it.


– An Open Mind to learn new things

– OpenAI account

– OpenAI’s API Key


Create your OpenAI API key 

Don’t worry, it’s not a very technical thing. Just follow the below instructions to get it.

OpenAI provides an option to create an API key. We will generate that.

Step 1 – Login to OpenAI –

Create an account if you don’t have one already

Step 2 – Find “API keys” in the left corner, click on it and then go to the API Keys section

Step 3 – Click on “+ Create new secret key”, provide a name and you will get your API key

Make sure, you copy it and write it somewhere as you will not be able to access it again.

APIs are like messengers that transfer information from one software to another. 

Our bot will use OpenAI’s GPT model to answer questions.

Chat with your PDF using ChatGPT


I posted this video on Linkedin and Shri Shashwat Gupta summarized it aptly. here it is:

1. Sign in to GCP and create a project.
2. Create a new app in Search and Conversation.
3. Create a Cloud Storage bucket and upload your own data to the bucket.
4. Import the data to Search and Conversation app.
5. Once the data is imported, one can ask the chatbot questions about the data.

Connect with me on LinkedIn –

Here is how I learned AI as a non-technical person in 4 months for free.

Let’s learn to build a basic AI/ML model in 4 minutes (Part 1)

Happy learning!

Featured Image source

Share it with your senior IT friends and colleagues
Nikhilesh Tayal
Nikhilesh Tayal
Articles: 54