A small support assistant over a fixed knowledge base, tested for grounded answers, an honest "I don't have that information" and refused…
-
On 28 Nov 2026: 35 pytest scenarios passed, retrieval Recall@1 and no-answer accuracy were 1.000 on 23 labelled queries, and 9 of 9 Promptfoo cases passed. The weekly local-model run the same day: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
Historical repository or workflow evidence
+
On 3 Dec 2026: 41 pytest scenarios passed, 9 of 9 Promptfoo cases passed, and retrieval scored 1.000 on the 23 tuning queries but Recall@1 0.083 on a blind holdout of 25 new questions (no-answer accuracy 1.000 on both). The weekly local-model run on 28 Nov 2026: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
A small support assistant over a fixed knowledge base, tested for grounded answers, an honest "I don't have that information" and refused prompt injections. The same flow runs on a local Ollama model every week, where each red-team fail is graded twice and only the fails both grades agree on are kept.
On 28 Nov 2026: 35 pytest scenarios passed, retrieval Recall@1 and no-answer accuracy were 1.000 on 23 labelled queries, and 9 of 9 Promptfoo cases passed. The weekly local-model run the same day: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
On 3 Dec 2026: 41 pytest scenarios passed, 9 of 9 Promptfoo cases passed, and retrieval scored 1.000 on the 23 tuning queries but Recall@1 0.083 on a blind holdout of 25 new questions (no-answer accuracy 1.000 on both). The weekly local-model run on 28 Nov 2026: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
An AI feature needs two kinds of test: repeatable checks that can gate every pull request, and checks against a real model that cannot. Here the deterministic target, retrieval metrics and Promptfoo cases run on every push, and every week a local model answers in CI with a second local model grading. Each red-team fail is graded a second time, and only the fails both grades agree on count.
An AI feature needs two kinds of test: repeatable checks that can gate every pull request, and checks against a real model that cannot. Here the deterministic target, retrieval metrics and Promptfoo cases run on every push, and every week a local model answers in CI with a second local model grading. Each red-team fail is graded a second time, and only the fails both grades agree on count.
Architecture
every push pytest (41) ─► retrieval gate (23 queries) + blind holdout report (25) ─► Promptfoo, deterministic target (9)
weekly Ollama: llama3.2:3b answers ─► qwen2.5:7b grades (8)
- red team ─► each fail graded again on the replayed answer ─► only agreed fails kept
Technology and tools
Area
Tools
Application
Python: a support assistant with top-k retrieval over three articles (returns, password reset, support hours)
Tests
pytest: 35 component scenarios, including mocked Ollama requests and retrieval quality
Retrieval
23 labelled queries: Recall@1, Recall@3, mean reciprocal rank and no-answer accuracy, with minimums in CI
Evals
Promptfoo, pinned in package-lock.json: 9 deterministic cases, 8 local-model cases, a red-team profile
Models
Ollama in CI: llama3.2:3b answers, qwen2.5:7b grades; weekly, outside the required check
Engineering decisions and approach
Deterministic assertions first: expected phrases and known bad outputs without an LLM judge
Questions that share a word with an article but cannot be answered from it, to test the no-answer path
The model workflow is weekly and not a required check: a small model on a CPU runner varies
A red-team fail counts only when a second grade agrees, because the grading model varies too
Promptfoo pinned in the lock file, so a new release cannot change a build without a commit
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
Retrieval quality gate: minimum Recall@1 and no-answer accuracy in CI
Prompt-injection probes asking for hidden instructions or credentials are refused
Same support flow on a real local model with a local rubric grader
Red-team results with first grade, second grade and verdict in the job summary
Results with dated evidence
Historical repository or workflow evidence
Scheduled CI run on main
On 28 Nov 2026: 35 pytest scenarios passed, retrieval Recall@1 and no-answer accuracy were 1.000 on 23 labelled queries, and 9 of 9 Promptfoo cases passed. The weekly local-model run the same day: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Test report screenshot. The weekly local-model run on 28 Nov 2026: Promptfoo results and the red-team table from the job summary. Static image; capture date is not recorded in the portfolio data.
Scheduled run, 28 Nov 2026: 35 pytest scenarios passed; on 23 queries Recall@1, Recall@3, MRR and no-answer accuracy were all 1.000; 9 of 9 Promptfoo cases passed. In the weekly model run the same day, 8 of 8 evaluations passed and one red-team probe failed on both grades.
Static material from the public repository. The linked verification record was checked 2026-11-28; that date is not a screenshot capture date.
python -m pip install -e ".[test]"
+ red team ─► each fail graded again on the replayed answer ─► only agreed fails kept
Technology and tools
Area
Tools
Application
Python: a support assistant with top-k retrieval over three articles (returns, password reset, support hours)
Tests
pytest: 41 component scenarios, including mocked Ollama requests, retrieval metrics and holdout guards
Retrieval
23 tuning queries with minimums in CI, and a blind holdout of 25 new questions reported per category: Precision@k, Recall@k, mean reciprocal rank and no-answer accuracy
Evals
Promptfoo, pinned in package-lock.json: 9 deterministic cases, 8 local-model cases, a red-team profile
Models
Ollama in CI: llama3.2:3b answers, qwen2.5:7b grades; weekly, outside the required check
Engineering decisions and approach
Deterministic assertions first: expected phrases and known bad outputs without an LLM judge
Questions that share a word with an article but cannot be answered from it, to test the no-answer path
A blind holdout, frozen by a fingerprint test and reported without a gate, because the tuning set was used to build the retrieval anchors
The model workflow is weekly and not a required check: a small model on a CPU runner varies
A red-team fail counts only when a second grade agrees, because the grading model varies too
Promptfoo pinned in the lock file, so a new release cannot change a build without a commit
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
Retrieval quality gate: minimum Recall@1 and no-answer accuracy in CI
Blind holdout of paraphrases, typos, ambiguous and unanswerable questions, scored per category in the job summary
Prompt-injection probes asking for hidden instructions or credentials are refused
Same support flow on a real local model with a local rubric grader
Red-team results with first grade, second grade and verdict in the job summary
Results with dated evidence
Historical repository or workflow evidence
CI run on main
On 3 Dec 2026: 41 pytest scenarios passed, 9 of 9 Promptfoo cases passed, and retrieval scored 1.000 on the 23 tuning queries but Recall@1 0.083 on a blind holdout of 25 new questions (no-answer accuracy 1.000 on both). The weekly local-model run on 28 Nov 2026: 8 of 8 evaluations passed, red team 5 of 6 after the second grade.
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Test report screenshot. The weekly local-model run on 28 Nov 2026: Promptfoo results and the red-team table from the job summary. Static image; capture date is not recorded in the portfolio data.
CI run on main, 3 Dec 2026: 41 pytest scenarios and 9 of 9 Promptfoo cases passed. Retrieval scored 1.000 on every metric for the 23 tuning queries, but on a blind holdout of 25 new questions Recall@1 was 0.083 and paraphrases scored 0: keyword retrieval never gave a wrong answer, it returned nothing for reworded questions. The fix belongs in retrieval, not in the data. In the weekly model run on 28 Nov 2026, 8 of 8 evaluations passed and one red-team probe failed on both grades.
Static material from the public repository. The linked verification record was checked 2026-12-03; that date is not a screenshot capture date.
Three articles and 48 labelled queries are a small lab; they cannot prove semantic correctness for arbitrary questions
Keyword retrieval misses most reworded questions (holdout Recall@1 0.083); meaning-based retrieval is the next step
The weekly 3b model on a CPU runner is an indication, not a measurement
The red team is a short generated set, not a security assessment
Three knowledge-base articles and 48 labelled queries are a small lab; keyword retrieval misses most reworded questions (holdout Recall@1 0.083); the weekly 3b model on a CPU runner is an indication, not a measurement.