Your Intelligent Chat Assistant for Insurance Document Queries
The Insurance Documents QA RAG Chatbot is an advanced conversational assistant designed to streamline complex queries on insurance documents while also providing general information by conducting internet searches. Utilizing Retrieval-Augmented Generation (RAG) pipelines, the chatbot intelligently determines whether to retrieve information from a document or the web, ensuring accurate and contextually relevant responses.
- ✨ Dual-Functionality Query Resolution: Handles document-specific and general queries with smart tool selection.
- ☆ Efficient Retrieval: Employs LlamaIndex for accurate and efficient insurance data retrieval.
- ✪ Agentic Generation: Uses LangChain to intelligently generate responses or search the web for answers.
- ✨ Scalable Embedding Storage: Leverages ChromaDB to store and query embeddings with speed and accuracy.
- 🔑 Advanced Caching Mechanism: Minimizes redundant computations with:
- Embedding-level cache for reprocessing prevention.
- Query/answer cache for repeated queries.
- 🔄 Dynamic Chunking: Splits documents for optimal information retrieval.
- 🕒 Real-Time Adaptability: Decides between data retrieval and internet search based on query type.
- Language: Python
- Frameworks/Libraries: LlamaIndex, LangChain, ChromaDB
- APIs/Models:
- OpenAI's Embedding Model for vector creation
- OpenAI for high-quality generative responses
- LlamaIndex for document ingestion and querying
- LangChain for agent orchestration.
- ChromaDB for efficient data storage.
- "What are the exclusions in my health insurance policy?"
- "How do I file an insurance claim?"
- "What is Drug Abuse related death?" (via web search)
Ensure you have the following installed:
- Python 3.8+
- Docker (optional, for containerized deployment)
-
Clone the repo: git clone https://github.com/SandeepGitGuy/Insurance_Documents_QA_Chatbot_RAG_LlamaIndex_LangChain.git
-
Navigate to the project directory: cd Insurance_Documents_QA_Chatbot_RAG_LlamaIndex_LangChain
-
Install the required dependencies: pip install -r requirements.txt
- Please note: OpenAI API keys are required for the project to function.
- Run the main file from Jupyter environment: "Insurance_Docs_QA_Chatbot_RAG_Llamaindex_LangChain.ipynb"
- Dynamic Tool Selection: Implemented robust logic to decide between document retrieval and internet search.
- Caching Efficiency: Added efficient multi-layer caching to optimize embedding and query-answer processes.
- Cross-Model Compatibility: Fine-tuned embeddings and outputs to work seamlessly with ChromaDB and OpenAI APIs.
- Error Recovery: Implemented memory-driven recovery mechanisms for enhanced reliability.
- Support for multilingual documents and queries.
- Integration with additional file formats like Word and Excel.
- Incorporation of more generative AI models.
No documentation will be made available for this project since this project only uses technologies that already have their own documentation. Please refer to the following links for more information:
The Insurance Documents QA RAG Chatbot leverages state-of-the-art tools like LangChain and LlamaIndex to create a seamless query resolution experience. With its dual ability to handle document-based and general queries, it simplifies complex interactions while maintaining high performance and scalability. By integrating advanced caching and retrieval mechanisms, this chatbot offers an efficient, user-friendly solution for navigating insurance-related and general inquiries. Its robust foundation sets the stage for future innovations in AI-powered assistants.
Distributed under the MIT License. See LICENSE
for more details.
For questions, feedback, or collaboration opportunities:
- Email: sandy974278@gmail.com
- GitHub: SandeepGitGuy
- LinkedIn: Sandeep Gowda