How to chat with your PDF using ChatGPT on Google Colab

Share it with your other non-technical friends
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 – https://www.aimletc.com/ai-ml-etc-course-offerings-pricing/

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 – https://colab.research.google.com/drive/1mKEjt264s7UqflhmIP1P1xHPXGvokfIq?usp=sharing

Let us dive into it.

Pre-requirement

– An Open Mind to learn new things

– OpenAI account

– OpenAI’s API Key

– SERP 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 – https://openai.com/

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

Connect with me on LinkedIn – https://www.linkedin.com/in/nikhileshtayal/

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 other non-technical friends
Nikhilesh Tayal
Nikhilesh Tayal
Articles: 41