rag-contract
A question-answering service over a fixed corpus of six IETF RFCs, built as a contract rather than a pipeline: what it retrieves is measured, what it cannot support it refuses, and every answer names the index version it came from.
- recall@5 = 1.00, MRR 0.829 over an annotated question set
- Retrieval costs 0.026 ms per query against a 150 ms request deadline
- A quality regression below the committed threshold fails CI
Python · FastAPI · NumPy · OpenAI embeddings · Fly.io