Personal project · 2026

LLM evaluation harness

Scores model answers before a deployment decision: faithfulness, relevance, a separate hallucination verdict, latency and cost, plus retrieval metrics for a RAG system.

PythonOpenAI API
Role
On my own
When
2026
Type
Personal project
Stack
Python, OpenAI API
18tests in CI6eval cases ready to run

Each eval case (question, context, expected answer) runs through the model under test. An LLM judge scores faithfulness, relevance and completeness and gives a separate hallucination verdict, a lexical groundedness check runs without an API call, and the report shows pass rate, p50 and p95 latency and cost. Retrieval metrics (precision@k, recall@k, MRR) cover the RAG side.

How it works

  • An LLM judge scores faithfulness, relevance and completeness, and gives a separate hallucination verdict.
  • A lexical groundedness check runs without an API call.
  • Reports show pass rate, p50 and p95 latency and cost per model; precision@k, recall@k and MRR cover retrieval.
  • The judge can be any OpenAI-compatible endpoint.

Status

18 tests in CI with the judge mocked. The eval set is 6 hand-written healthcare policy questions (the policies are invented), including one that can't be answered. No results are published yet.

Stack

PythonOpenAI API