/Multi-file-PDF-chat

Chat with multiple PDF files. Utilizes langchain, llama_index and OpenAI API.

Primary LanguagePython

Multi-file PDF chatbot

Description

Chat with multiple PDF files. Utilizes langchain, llama_index and OpenAI API.

Installation

To run this project locally, follow these steps:

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Install the required dependencies
pip install -r requirements.txt
  1. Set your OpenAI API Key. There are two ways:
  • Create a .streamlit folder in root with a secrets.toml file. Put your API key inside the secrets file: OPENAI_API_KEY = "your API key"
  • Set your API key here: os.environ["OPENAI_API_KEY"] = 'your API key'
  1. Run the project
python index.py