Build an Evaluation Set Before Launch

Anonymize real requests and include normal cases, ambiguous questions, missing evidence, unauthorized requests, and tool errors. Define acceptable conditions and prohibited actions rather than only one reference answer.

Metrics to Track Together

Even inexpensive tokens can produce higher total cost if retries and review time increase.

Evaluation Record Template

{
  "case_id": "rag-no-evidence-01",
  "input": "Tell me a policy that is not in the documents",
  "expected": "State that evidence is insufficient; do not invent a policy",
  "checks": ["no_fabricated_policy", "no_unauthorized_tool"],
  "prompt_version": "v1",
  "model_id": "ID of the model actually used",
  "result": "Record after execution"
}

Suggested CI Integration

Run the same set after changes to prompts, models, retrieval, or tool contracts. Start with rule-based checks and human review, and validate a model judge's agreement separately. Treat severe failures such as permission violations as independent release gates rather than hiding them in average scores.

Observability

Connect requests → retrieval → models → tool calls through tracing. Define masking, retention, and access controls instead of logging every raw prompt and response.

OpenTelemetry GenAI conventions have moved to a separate repository, and some conventions are in Development status. Pin instrumentation-library and convention versions together.

Official References

Related Blog Reading Notes

Powered by Fruition