Chat with PDFs is a web application that leverages the power of the OpenAI GPT-3.5 language model to enable users to have interactive conversations with uploaded PDF documents. With this application, users can upload multiple PDFs, process them, and then ask questions about the content of the documents. The application utilizes OpenAI's embeddings to understand and respond to user queries effectively.
Before you start using the Chat with PDFs application, make sure you have the following prerequisites:
-
Clone this repository to your local machine:
git clone https://github.com/Sanjay71013/PDF_Chatbot.git
-
Navigate to the project directory:
cd PDF_Chatbot
-
Create a
.env
file in the root directory of the project and add your OpenAI API key:OPENAI_API_KEY=your-api-key-goes-here
-
Start the development server:
streamlit run app.py
This will start the application locally. You can access it in your web browser at http://localhost:8501/
.
- PDF Upload: Users can upload multiple PDF documents for processing.
- Chat Interface: The application provides a chat interface where users can type questions and interact with the documents.
- OpenAI Integration: The application utilizes OpenAI's GPT-3.5 for document understanding and generation of responses.
-
Upload PDFs
- Click on the "Upload PDFs" button.
- Select one or more PDF documents you want to process.
-
Processing PDFs
- After selecting the PDFs, click on the "Process" button.
- The application will process the uploaded PDFs to make them searchable.
-
Ask Questions
- Once the PDFs are processed, you can start asking questions.
- Type your question in the chat input box and press Enter.
- The application will use OpenAI's GPT-3.5 to generate responses based on the content of the uploaded PDFs.
-
View Responses
- The responses from the application will appear in the chat interface.
- You can have interactive conversations and seek information from the uploaded PDFs.
- You can have a chain of interactive conversations.
I welcome contributions to improve and enhance the Chat with PDFs application. If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Test your changes thoroughly.
- Create a pull request against the main repository.
I appreciate your contributions!
This project is licensed under the MIT License - see the LICENSE file for details.