This project demonstrates how to set up a basic multi-document query agent using LlamaIndex and OpenAI's GPT-3.5 Turbo model. It allows querying across multiple documents by creating an index and retrieving relevant responses.
- Indexing multiple documents for easy querying
- Querying with OpenAI's GPT-3.5 Turbo model
- Simple and easy-to-use setup
- Python 3.7+
- An OpenAI API key for GPT-3.5 Turbo
- Clone the Repository:
git clone https://github.com/Haider199899/multi-doc-agent.git cd multi-doc-agent - Setting virtual environment and installing dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txt - Setting environment variables:
touch .env Add you API_KEY for accessing OpenAI model e.g : OPENAI_API_KEY="XXXXXXX"
- Running the app:
python main.py