Skip to content

The PDFChat app allows you to chat with your PDF files in natural language.

Notifications You must be signed in to change notification settings

dotvignesh/PDFChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDFChat

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

Demo.mp4

Installation

To install and run the application, follow the instructions below:

  1. Clone the repository using Git:

    git clone https://github.com/dotvignesh/PDFChat.git
  2. Change into the repository directory:

    cd PDFChat
  3. Create a conda environment:

    conda create --name pdfchat
  4. Activate the new conda environment:

    conda activate pdfchat
  5. Install the required packages:

    pip install -r requirements.txt
  6. 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
  7. 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>
  8. Run the application using streamlit:

    streamlit run app.py

The application should now be running at http://localhost:8501.

Usage

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!

About

The PDFChat app allows you to chat with your PDF files in natural language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages