The PDFChat app allows you to chat with your PDF files using the power of langchain, OpenAI Embeddings, and GPT3.5 in the backend. It uses Streamlit for the user interface.
Demo.mp4
To install and run the application, follow the instructions below:
-
Clone the repository using Git:
git clone https://github.com/dotvignesh/PDFChat.git
-
Change into the repository directory:
cd PDFChat
-
Create a conda environment:
conda create --name pdfchat
-
Activate the new conda environment:
conda activate pdfchat
-
Install the required packages:
pip install -r requirements.txt
-
Get your OpenAI API Key by following these steps:
- Go to OpenAI Website
- Create an account or log in
- Navigate to the "API Keys" section
- Click on the "Create new secret key" button (or use an existing one)
- Copy the API key
-
Create a
.env
file in the root of the repository directory, and add the following line, replacing<your-api-key>
with your actual API key:OPENAI_API_KEY=<your-api-key>
-
Run the application using streamlit:
streamlit run app.py
The application should now be running at http://localhost:8501.
Once the app is running, you can upload your PDF files and start chatting with them using the built-in chat interface.
Enjoy chatting with your PDF files!