How rubanchakravarthib308-spec/rag-reliability-lab works
RAG Reliability Lab is a deterministic testbed for checking whether retrieved evidence supports generated answers and for measuring regressions over time. Its core workflow retrieves ranked evidence, delegates answer generation to a supplied answerer, then evaluates citations and claim support. Lexical retrieval is the pipeline default; embedding retrieval is a separate provider-driven option. The documented benchmark capability is included, but its implementation was not sampled, so its internal connections are not asserted. The map is based on README statements and the provided source excerpts; unsampled benchmark details remain uncertain.
Main entry points: pipeline.py Reliability pipeline · benchmark_cli.py Benchmark command · evaluation.py Reliability evaluator · benchmark.py Benchmark runner
Components 17
Answer workflow
- Reliability pipeline
src/rag_reliability_lab/pipeline.py - Answerer
- Deterministic demo
src/rag_reliability_lab/demo.py
Evidence retrieval
- Evidence documents
src/rag_reliability_lab/types.py - Lexical ranking
src/rag_reliability_lab/retrieval.py - Embedding ranking
src/rag_reliability_lab/retrieval.py - Embedding provider
src/rag_reliability_lab/embeddings.py - Static provider
src/rag_reliability_lab/embeddings.py
Reliability checks
- Reliability evaluator
src/rag_reliability_lab/evaluation.py - Claim support
src/rag_reliability_lab/evaluation.py - Result models
src/rag_reliability_lab/types.py
Benchmark reporting
- Versioned benchmark
src/rag_reliability_lab/benchmarks/v1.json - Benchmark runner
src/rag_reliability_lab/benchmark.py - Benchmark command
src/rag_reliability_lab/benchmark_cli.py - JSON and Markdown reports
src/rag_reliability_lab/benchmark.py - CI quality gate
Other components
- Questioner
Connections 16
- Questioner → Reliability pipeline: asks
README.md - Reliability pipeline → Lexical ranking: retrieves by default
src/rag_reliability_lab/pipeline.py - Reliability pipeline → Answerer: requests answer
src/rag_reliability_lab/pipeline.py - Reliability pipeline → Reliability evaluator: evaluates answer
src/rag_reliability_lab/pipeline.py - Deterministic demo → Reliability pipeline: runs
src/rag_reliability_lab/demo.py - Lexical ranking → Evidence documents: ranks
src/rag_reliability_lab/retrieval.py - Embedding ranking → Evidence documents: ranks
src/rag_reliability_lab/retrieval.py - Embedding ranking → Embedding provider: requests vectors
src/rag_reliability_lab/retrieval.py - Static provider → Embedding provider: implements
src/rag_reliability_lab/embeddings.py - Reliability evaluator → Claim support: checks support
src/rag_reliability_lab/evaluation.py - Reliability evaluator → Result models: returns results
src/rag_reliability_lab/evaluation.py - Benchmark command → Benchmark runner: runs
src/rag_reliability_lab/benchmark_cli.py - Benchmark command → JSON and Markdown reports: writes reports
src/rag_reliability_lab/benchmark_cli.py - Benchmark command → CI quality gate: signals regression
README.md - Benchmark runner → Versioned benchmark: uses cases
README.md - Benchmark runner → JSON and Markdown reports: summarizes metrics
README.md