Cookbook

Deterministic RAG engineering runbooks, retrieval benchmarks, and failure-mode prevention in pure Python.

5 recipes

Architecture Note

Why high-volume AI teams don't rely on LLM judges for retrieval

Calling a secondary GPT-4o instance to evaluate every retrieved document adds 2 to 4 seconds of latency and thousands in cloud token bills. LayaEval executes deterministic, sub-10ms checks in local Python, letting you audit 100% of production queries with zero token tax.

01 / Latency

Sub-10ms Runtime

Run evaluation synchronously inside your API gateway without hurting end-user latency.

02 / Pipeline

CI/CD Regression Suite

Include retrieval checks in pytest to catch search quality regressions before code ships.

03 / Budget

$0 Token Surcharge

Pass/fail verdicts and explainable scores with zero opaque black-box scoring or judge bills.