- LangChain, Streamlit, and OpenAI API
- Query rewriting (pre-retrieval) and prompt compression (post-retrieval)
- Chroma database as external vectorstore
- Ragas metrics to evaluate system
- Answer Relevancy score of 97%, Context Precision score of 97%, and Context Recall score of 100%
Note: Can be easily modified to Q&A chatbot for any set of documents.
Preview:
- Only answers questions relating to documents, and does not hallucinate answers to unrelated questions:
All PDF documents in data folder containing the rules of Cricket are from https://www.mumbaicricket.com/mca/Laws_of_Cricket.php, and more documents can be added to folder to expand knowledge of application.