Skip to main content
Aurikle

AI and systems

How to keep a small answer-evaluation set for a knowledge base

A knowledge base keeps a fixed set of questions, each with the document it should use and a written pass or fail rule, so a change to chunking or to the prompt can be seen to regress before it takes effect. The retrieval note asks whether one measurement returned a known passage. Wrong-answer intake asks what happens after someone marks a reply wrong. This note is the small set that is run again before a change takes effect.

On this page

Matching serviceInternal knowledge base and assistant

Keep the small set apart from a retrieval measurement and from wrong-answer intake

Retrieval evaluation uses questions with a known source and asks whether this run returned that current passage. Wrong-answer intake, after someone marks a reply wrong, puts the question, the wrong reply, and the correct source on one line, and then decides whether to change the document, recut, retest, or change the prompt. The small set answers a different question: before a chunk boundary or a prompt version takes effect, a frozen list is run again under a pass rule that was already written, and a fail means that change does not take effect. See How to evaluate knowledge-base retrieval and How to record and fix a wrong knowledge-base answer.

How a chunk boundary is chosen is in How to choose chunk boundaries for a knowledge base. Which prompt version is in effect is in How to version prompts for an enterprise assistant. The delivery scope sits under Internal knowledge base and assistant. The set does not rewrite the measurement method in the retrieval note, and it does not replace the wrong-answer door.

The set is a hand-written expectation

Microsoft Learn on Azure OpenAI evaluation and it says it applies only to the Foundry classic portal. The page says to assemble a ground-truth data set to test against. Creating that set is typically iterative, so that evaluations stay relevant to the scenario. The set is typically handcrafted, stands for the behaviour expected of the model, and is labeled with the expected answers. The JSONL samples on the page are abstract-algebra multiple-choice items. They are not this set's questions.

The page does not set how many questions a small set has, and it does not set a score the knowledge base must use. Each row of the company's set states the question, the identifier of the expected current document, and how pass and fail are decided. If an expected answer is written, it is the points that are acceptable, or it says the expected outcome is a refusal. A question with no expected document and no refusal mark does not enter the set.

The pass rule is written before the change

A pass means the retrieval includes the expected current document and the reply's citation matches that document. If the question expects a refusal, a pass means the reply is the refusal sentence already written, not a finished answer with no source. A fail is either of those missing. The rule is on the cover of the set and dated. If the rule is blank, the set is not used to block a change.

How a citation carries a path, a version, and a section is in How to attach sources to a knowledge-base reply. The sentence used when there is no source is in How to refuse a knowledge-base answer when there is no source. The set points at those practices. It does not invent a third way to pass.

Run the set before a chunk change or a prompt change takes effect

Before a chunk boundary or a prompt version becomes current, the frozen set is run again. The record states, for each question, pass or fail, the date, and which chunk record or which prompt version was used. One failure means that change is not marked current.

Questions are not added, edited, or removed while that change is in progress. A new question waits until this run has passed or the change has been withdrawn, and then it is added in a separate entry. A question from the retrieval note may be the source of a row. Once it is in the set, the wording on the set is the one that is run. It does not follow a rewrite made during the measurement.

The company writes how many questions the set holds

The page does not say how many questions a small set should hold. The cover states the count, and which kinds of question it covers, for example a rule, a product note, and one question that expects a refusal. If the count and the number of rows differ, the set is not run.

The owner checks that each expected document is still the current text. If the file is withdrawn, or its review date has passed, the question is marked "source to be replaced" and is not used to judge this change. How the source is replaced is in How to manage document versions in a knowledge base and How to handle stale documents in a knowledge base.

A wrong-answer line may suggest a new question, and it does not change this run

A colleague who marks a reply wrong still goes through wrong-answer intake. If the owner wants that question in the set, the wrong-answer line says "propose for the set". It is added in a later entry, after this chunk or prompt change already has a pass or a withdrawal. The judgement of the run in progress is not rewritten because a question was added in the middle.

A proposal with no expected document and no refusal mark is not added. An addition records who approved it, the day, and which wrong-answer row it answers.

The run leaves a record that can be opened again

Each run records the version of the set, the chunk or prompt version, pass or fail for every question, and who ran it. A failed question records the document identifier that was actually retrieved, or "nothing retrieved". The whole reply is not pasted in place of that result.

The record does not calculate a new hit rate in place of pass and fail. If the retrieval note calculates a ratio, it uses its own questions and its own method. The small set only answers whether this change may take effect.

The set exists when the questions, the expected sources, and the pass rule are written

If the count is blank, if the pass rule is blank, or if any question has neither an expected document nor a refusal mark, the set is not used to block a change. A chunk or a prompt may still be drafted. It is not marked current.

Three checks show the set is in use: the questions and the expected sources were frozen before the change; the run records pass or fail for every question; and one failure keeps that change from taking effect. A blank item leaves the change in draft.

Related notes

Book a consultationInternal knowledge base and assistant