Table of Contents
Welcome to the Insurance Question Answering System! This project leverages a Retrieval-Augmented Generation (RAG) model to provide accurate and comprehensive answers to insurance-related questions. The system integrates a powerful language model with a retrieval mechanism to enhance the quality and relevance of responses.
How to run this project locally
Install milvus standalone: Follow instruction here to install and setup an milvus database.
- Get a free Google Gemini API key here.
- Clone the repo
git clone https://github.com/mrpoponep/RAG-For_LLMs
- Install packages using pip.
pip install -r requirement.txt
- Create a local_settings.py file with your API key in it.
API_KEY='abcdxyz'
- Start your milvus database and connect to it.
- Prepare your own dataset as jsonl file (Example).
- Run main.ipynb file to upload your embeded data onto the database.
- Test your RAG and LLM by running Test.ipynb file.\
The system consists of the following components:
- Real data used for trainning: Data used for retrieval are 21,325 answers for 12,889 common question gathered from this website insurance library.
- Accurate Question Answering: Provides detailed and accurate answers to a wide range of insurance-related questions.
- Retrieval-Augmented Generation: Combines retrieval of relevant documents with generation of answers for improved accuracy.
You can access the deployed version of this project here.
Visit the link to try out the Insurance Question Answering System and see it in action!