← All projects

Project 03

LLM Evaluation Harness

Golden sets, faithfulness scoring, and a CI gate that fails on regression

AI evalsLLM testingToken cost managementCI/CD for AIObservability

Runs a versioned golden-question set against the knowledge base on every commit, scoring faithfulness, answer relevance and retrieval hit-rate. Token spend and p95 latency are tracked per run. A regression beyond threshold fails the pipeline — the same discipline applied to prompts that you would apply to code. Results are written to S3 and rendered as a public dashboard.

Try it

How it works

  1. 01
    Golden set

    Versioned question/answer pairs with expected source documents.

  2. 02
    Run

    GitHub Actions triggers the eval Lambda on every push to main.

  3. 03
    Score

    RAGAS-style faithfulness and relevance, plus deterministic retrieval hit-rate.

  4. 04
    Gate

    Non-zero exit if any metric drops more than 5% against the last green run.

  5. 05
    Publish

    Results appended to a JSON history in S3, read directly by this site.

Infrastructure & running cost

ServiceRoleCost
GitHub ActionsCI trigger — free for public repos$0
LambdaEval executionFree tier
S3Run history as static JSON~$0.05/mo

Directly extends the CI evaluation work already on the CV at NatWest.