This project is a Retrieval-Augmented Generation (RAG) Chatbot that combines ChromaDB for document retrieval and a large language model (LLM) for answer generation. The chatbot provides intelligent responses based on information from provided PDFs, making it useful for complex document-driven Q&A.
- Context-Aware Responses: Retrieves the closest text match from multiple documents.
- Document Search: Searches across multiple PDFs to retrieve relevant content.
- Efficient Processing: Uses Redis for caching and RabbitMQ for task management.
- Backend: Python, Flask, ChromaDB, Sentence Transformers, OpenAI API
- Frontend: HTML, JavaScript
- Message Queue & Cache: RabbitMQ, Redis
Clone the repository and install dependencies:
git clone https://github.com/patilkalpesh/RAG-Chatbot-with-ChromaDB-and-LLM-Integration.git
cd RAG-Chatbot-with-ChromaDB-and-LLM-Integration
pip install -r requirements.txtAdd your OpenAI API key:
export OPENAI_API_KEY='your_api_key'
RabbitMQ:
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:4.0-managementRedis:
redis-serverRun Backend:
cd backend
python embedding_manager.py
python worker.py
python main.py