This is based off the InsureLLM project from Week 5 of the course.
The data in knowledge-base is an extended version of the knowledge base from week 5 of the fictional company, InsureLLM.
In the root directory:
lab.ipynb is a walk-through notebook
cd implementation and then uv run ingest.py to ingest data
From project root, uv run app.py to run the Q&A Chatbot
From project root, uv run evaluator.py to run the evaluation
In the implementation directory:
answer.py is the module that answers a user's question. You can change or rewrite fetch_context() and answer_question()
ingest.py is the module that loads in the data. You can change any of this!
In the evaluation directory:
Private code that runs the evaluation on test data. Don't change this!
- Work through the lab to understand the current state and ingest data
- Reimplement
ingest.pyandanswer.pywith your ideas - Beat Ed and beat the other teams!
Good luck!