A local assistant with a retrieval layer was given a self-evaluation command: a fixed set of eight retrieval cases, scored by keyword match against expected terms. The scores were meant to catch regressions. One of the first things they caught was a weakness in the scoring itself.

What the vocabulary changed

The retrieval database held 75 documents, 42 from the assistant's own memory notes and 33 absorbed from two other projects. Queries that used project-specific terms often missed, because those terms appeared nowhere in a form the embedding model could match. A bilingual vocabulary file was added to the context. On the eight-case set, top-1 accuracy went from 37.5% to 50% and top-3 from 50% to 75%. Running the evaluation five times, round 1 and round 5 showed a delta of +0.00 on all eight cases, so the number was stable enough to compare across changes.

The context budget was also measured rather than assumed: a 2.5K-token system prompt plus 14K of context came to 4,096 tokens used of a 16K window.

A perfect keyword score for a thin answer

A second scorer was added: a model acting as judge, rating the answer rather than counting terms. One case made the difference plain. The keyword scorer gave the answer 1.0, because every expected term was present. The judge gave it 0.16. The answer contained the right words and said almost nothing with them. Keyword matching cannot see that; it has no notion of an answer being short of content.

The judge's ratings, together with call traces and preference pairs, were set up as training data for a later fine-tuning step. That step did not run, because the training packages were not installed. The assistant's Korean output also still leaked English phrases at times, which no scorer in the set measured. The 179 unit tests passing that day said nothing about either problem.