Description
Changes to chunking, retrieval, or prompts are currently evaluated subjectively. There is no automated way to know if a change improved or degraded the assistant's performance.
Implementation
- Create an evaluation script using the RAGAS (Retrieval Augmented Generation Assessment) framework.
- Build a golden dataset of test PDFs and Q&A pairs.
- Automate the calculation of key metrics: Faithfulness (hallucination detection), Answer Relevance, Context Precision, and Context Recall.
- Add a GitHub action to run this evaluation on a subset of the data for every pull request that modifies the RAG pipeline.
Level: Critical
Affected Files: scripts/evaluate.py, .github/workflows/evaluate.yml
Description
Changes to chunking, retrieval, or prompts are currently evaluated subjectively. There is no automated way to know if a change improved or degraded the assistant's performance.
Implementation
Level: Critical
Affected Files:
scripts/evaluate.py,.github/workflows/evaluate.yml