Did you know that chatGPT can engage in interactive conversations with your documents? In this Python workshop, you will discover how to make it possible. Forget about limitations - now you can chat and explore your documents in a whole new way.
With this short project, you will learn how to unleash the full potential of chatGPT and convert your documents into interactive conversations. No more boring readings or tedious searches - now you can directly ask questions to your documents and receive responses from chatGPT. To develop this application in less than 50 lines of code, we will need:
- ChatGPT API
- Streamlit
- PyPDF2
- LangChain
- Divide the document into chunks.
- Create embeddings for each text chunk.
- Store the chunks and embeddings in a knowledge base.
- Search for the most relevant chunks based on the user's question using the embeddings.
- Pass the most relevant chunks along with the question to chatGPT, which generates the response.
Using ReaderAI is easy! Here are the steps:
- Clone or download the repository to your local machine.
- Install the required libraries by running the following command in your terminal:
pip install -r requirements.txt
- Run the application with the following command:
streamlit run app.py
- Get an API key from OpenAI.
- Enjoy the magic.๐ฆ
This project is licensed under the MIT License. See the LICENSE file for details.