PDFChat is a web application that allows users to upload a PDF document and ask questions about its content. The application uses the OpenAI GPT-3.5-turbo model to answer user queries, and it's built with Python, Streamlit, and asyncio.
- Upload and process PDF documents
- Chat-like interface for asking questions about the uploaded document
- Utilizes OpenAI GPT-3.5-turbo model for generating responses
- Stylish and responsive design
To get started with PDFChat, follow these steps:
- Clone the repository:
git clone [email protected]:Ahmed-I-Abdullah/gpt-pdf-retrieval-and-analysis.git
- Change to the
pdfchat
directory:
cd pdfchat
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Set your OpenAI API key in a .env file
# .env
OPENAI_API_KEY=<your_api_key>
- Run the Streamlit application:
streamlit run main.py
- Open the provided link in your browser to start using PDFChat.
- Upload a PDF document using the file uploader.
- Wait for the application to process the document and load the chat interface.
- Type your questions about the document in the chat input box and press "Send".
- PDFChat will provide answers based on the content of the uploaded document.