JT / SAGE IDEAS Work with me

03 Evidence

AI / LLM · Owned project · public code

An LLM feature with a gate that can say no.

A live eval of a production chatbot, plus an MIT-licensed promptfoo gate that blocks a merge when the score falls below the floor.

Live · evaluatedLast live eval artifact: August 2026jt-portfolio llm-eval-gate

FinishedThe live eval runs against the deployed chatbot, and the open template blocks a merge.NextGrow the golden sets from real conversation logs; 4, 7 and 14 cases are a start.

live chatbot eval cases passed
11 / 11
golden and red-team cases
4 + 7
floor of the open gate template
7 / 7
serverless API handler files
50

The problem

Prompt changes usually ship because they seemed better in a couple of manual checks. Nobody can show the change did not make something else worse, because nothing is measuring.

The agency site has a public chatbot that must not invent prices, promise outcomes or drift off scope. I wanted every change to it scored against fixed cases, and the same pattern available as a template anyone can clone.

Constraints

  • Runs with zero API keys by default, so the gate is free to start.
  • Deterministic assertions first; LLM-as-judge only when a rubric is written.
  • A failing score must exit non-zero, so CI can block the merge.

Architecture

request path / llm-eval-gateLive · evaluated
Pull request to merge decision1. Prompt or code change: pull request opened. 2. Golden set: fixed inputs with expectations. 3. promptfoo eval: assertions, optional judge. 4. Score vs floor: ratcheting minimum. 5. Merge or block: non-zero exit stops CI01Prompt or code changepull request opened02Golden setfixed inputs with expectations03promptfoo evalassertions, optional judge04Score vs floorratcheting minimum05Merge or blocknon-zero exit stops CI
Pull request to merge decision

The live chatbot runs against two suites: a golden set of four expected-behaviour cases and a red-team set of seven probes (price fishing, scope pressure). The scope tool has its own fourteen-case golden set.

What shipped

  • A live eval script that runs the chatbot suites against the deployed site and writes a JSON artifact.
  • llm-eval-gate: promptfoo config, golden cases, a floor file and a CI workflow, MIT-licensed.
  • A site backend of 50 serverless handler files behind the chatbot, lead and contact flows.

Evidence and receipts

  • Owned

    jt-portfolio

    The site, its eval scripts and the chatbot golden and red-team sets.

    Repogithub.com/JasonTeixeira/jt-portfolio

  • Owned

    llm-eval-gate

    floor.json records 7/7 golden cases at the current floor.

    Repogithub.com/JasonTeixeira/llm-eval-gate

  • Owned

    Build an LLM eval gate in CI

    The method, step by step.

    Guide/docs-build-llm-eval-gate-ci.html

What I would do differently

  • Grow the golden sets from real conversation logs before leaning on the score; four and seven cases are a start, not coverage.
  • Give llm-eval-gate its own unit tests and move its CI to a self-hosted runner.

Honest limitations

01 Input

Next step

Bring an AI feature or workflow that has to keep working. We scope the first verifiable step on a 15-minute call, and I give an honest answer on fit either way.

Book a 15-minute call Not sure what you need? Answer 3 questions

Have a system that needs to work?

Tell me the problem. I will tell you honestly whether I am the right engineer for it.

Book a 15-minute call Run a free audit Not sure what you need? Answer 3 questions