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:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install the required dependencies
pip install -r requirements.txt
- Set your OpenAI API Key. There are two ways:
- Create a
.streamlit
folder in root with asecrets.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'
- Run the project
python index.py