911 B
911 B
Brief: rag-eval-pipeline-closure
Background
The modular RAG pipeline now returns LookupResult with evidenceBlocks, contextPack, retrievalTrace, and rerankTrace. The RAG retrieval baseline must validate that full contract, so it can detect regressions in fallback behavior, context packing, or rerank trace.
Goals
- Reuse the existing offline RAG retrieval baseline.
- Extend it to support modular
LookupResultfixtures. - Add golden assertions for selected attempt, fallback reason, evidence status, context sources, and rerank top source.
- Add a RAG baseline diff path for regression detection.
- Add a snapshot generator that calls the real
LookupKnowledgeTool. - Document how RAG baseline and diagnosis baseline form a quality loop.
Non-Goals
- No new production API.
- No LLM-as-judge scoring.
- No production API behavior changes.
- No replacement for diagnosis eval.