ai newsDi., 1. Dez.

Evaluating a health AI assistant: our numbers and the failures we found

Key points Our first retrieval run, on 2 October 2026, scored 37.7% precision at 5 against a pass bar of 60%. An unregistered collection fell back to a 0.6 threshold, and 28 of 106 answerable test questions retrieved no passage at all. Translating Swahili questions to English before searching raise

dev.toSamstag 08:16 · 28.11.6 Min. Lesezeit
Bild: dev.to

Posted on Nov 28 • Originally published at xanderaj.com

This is an engineering write-up about Tabibu Health, not medical advice. Tabibu gives general health information and does not diagnose.

Tabibu Health answers health questions for Kenyans from the Kenyan clinical guidelines, in English, Kiswahili and Sheng. On Tuesday I wrote about how it grounds its answers and shows its sources. This post is about the harder question: how do we know any of that works?

The short answer is that we measure it, and that most of what we learned came from the numbers that looked bad. Here are the evaluations we run, what they showed, and the failures they caught.

We don't have one score. We have a set of narrow checks, each answering one question:

The v3 set includes 30 questions that the corpus can't answer, 15 in each split. For those, the right behaviour is to say so.

Our first retrieval run, on 2 October 2026, scored 37.7% precision at 5 against a pass bar of 60%. Seventy-six of 150 questions scored zero.

Worse, only 12 of 150 answers cited anything. That turned out to be a harness bug, not a model one: the eval prompt never asked for citations. Once it did, 78 of 150 answers cited a source, and 68 of the 83 citations resolved to a real retrieved document.

When we looked at why retrieval failed, tuning wasn't the answer. Turning the reranker off, lowering the threshold, fetching 60 candidates, passing 8 passages instead of 5: none of it moved precision outside 34.5% to 37.7%. What did explain it was coverage. For the English questions, only 25 of 85 had at least half their expected facts in any single chunk of our corpus. You can't retrieve what was never ingested.

That changed what we worked on. We added sources, built a new collection, and rewrote the eval set so that "the answer isn't in our documents" and "retrieval missed it" were measured separately.

The most serious failure we found wasn't in the model at all.

When we moved production to a new collection, we forgot to register it in the retrieval config. Unregistered collections fall back to a default similarity threshold of 0.6, much stricter than the 0.25 it had been tuned for. At 0.6, 28 of 106 answerable test questions retrieved no passage at all. In production, those users would have been told Tabibu couldn't find an answer that was sitting in the corpus.

Nothing crashed and no test failed. We found it on 4 October, in a data sweep that re-ran every collection at the same threshold. The fix was one line of config, plus a test that fails if a collection isn't registered. We then chose a new threshold, 0.45, on the dev split: recall stayed flat (0.703 to 0.710) while the number of out-of-corpus questions that still got passages fell from 15 of 15 to 8 of 15.

The same investigation forced a retraction. We had reported that the old collection abstained on 18 of 30 out-of-corpus questions and the new one on none. That difference came from the two collections running at different thresholds. At equal thresholds, retrieval almost never abstains on its own. Abstaining is the model's job, so that's where we measure it.

On the first baseline, an LLM judge scored whether the retrieved passages held each question's expected facts: full credit for all of them, half for some. The average score was 27.6% for English questions, 7.6% for Swahili and 6.2% for Sheng. The corpus is almost entirely in English, and Swahili questions simply didn't match English passages well.

The fix was to translate Swahili and Sheng questions into English before searching, and to fall back to the original text if translation fails. On the held-out test split, the right passage appeared in the top 5 for 54% of Swahili questions, up from 31%. English was unchanged.

Sheng didn't improve, and our Swahili answer quality has only been reviewed by AI, not by native speakers. Both are open.

On 2 and 3 October 2026, with retrieval held fixed, we compared answering models on the same questions. The metric we cared most about was strict unsupported claims: the share of answers containing a claim the retrieved passages don't support, judged by a stronger model.

The bigger model recalled more facts, at about twenty times the price. gpt-6-luna matched our old model on recall, made almost no unsupported claims, and was cheaper and slightly faster. Both abstained correctly on all 15 dev questions with no answer in the corpus. We switched production to it.

One caveat we keep next to that table: the judge is itself a model, and stricter judges flagged about four times as many claims during calibration. The direction of the result held; the exact percentages depend on the judge.

Emergencies in Tabibu don't go through the model. A deterministic check in English, Kiswahili and Sheng runs first and returns a fixed response with 999 and 112 for 15 categories, from chest pain to suicidal thoughts.

The red-team set has 261 cases: 173 that must escalate and 88 that must not, across English, Kiswahili, Sheng and four other languages. As of 18 November all 261 pass, and none of the 88 safe cases escalate. I'll be clear about what that means: we tuned the rules on this set, so it's a guard against regressions, not proof of how it does on emergencies it has never seen.

On a 150-conversation subset of HealthBench, run on 9 October 2026, the safety layer costs us. Tabibu scores 0.448 against 0.522 for the same model with no Tabibu layer. I wrote about that run in detail on the Tabibu blog. The short version: about a quarter of the gap comes from criteria that reward diagnosing or prescribing, which Tabibu deliberately defers to clinicians. The rest is completeness and global-health questions outside our Kenyan corpus.

That run also found the most important safety bug so far: Tabibu could quote prescription doses from the Kenya Formulary. We fixed it on 5 October for the main chat route, with the leaked sentences kept as regression tests. The streaming route that our web app uses still showed the model's raw draft until 21 November, when the same check reached it.

Some of the worst problems weren't in any model output a benchmark would score.

Every number here comes with limits, and I'd rather state them than have someone find them:

If you're evaluating an AI product in a high-stakes domain, I'd like to compare notes, especially on getting clinicians into the loop without it taking a year.

Correction, 27 November 2026: the dose-leak fix of 5 October covered the main chat route only; the streaming route our web app uses was fixed on 21 November 2026.

Correction, 27 November 2026: the 27.6%, 7.6% and 6.2% Swahili-section figures are average judge scores (half credit for some facts), not shares of questions.

Figures checked against their sources on 27 November 2026; next review May 2027. Health statements are attributed to the guideline, study or official source they come from. How these articles are written and checked.

Quelle: dev.to (dev.to). Original öffnen