QAVE Docs

Cookbook: RAG Evaluation

criteria.rag plus Knowledge Bases and sources toggles.

Cookbook 2 — RAG Evaluation

  1. Upload policy docs on Studio /knowledge (PII redacted before persist).
  2. Attach the KB to a rubric (knowledge_base_id) or pass kb_id / sources.documents=true.
  3. Score with criteria.rag faithfulness / citation criteria.
result = client.evaluate(
    messages=[...],
    criteria=["Penalize responses that invent policy details not present in retrieved context."],
    kb_id="kb_...",
    sources={"documents": True, "annotations": True, "memory": False, "calibration_tau": True},
)