Skip to content

LLM AI chatbot using Advanced Retrieval Augmented Generation (RAG), Langchain, and Streamlit to answer questions about the rules of Cricket.

License

Notifications You must be signed in to change notification settings

asvch/ask_cricket

Repository files navigation

Advanced Retrieval Augmented Generation (RAG) chatbot to ask questions about the rules of Cricket!

  • 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: Advanced_RAG_demo

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.

About

LLM AI chatbot using Advanced Retrieval Augmented Generation (RAG), Langchain, and Streamlit to answer questions about the rules of Cricket.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages