The Measures
A measure is one thing a run checks about an answer. You choose the measures in the start dialog. Which measures a question can use depends on what you filled in for the question.
| Measure | Question it answers | The question needs | Who rates |
|---|---|---|---|
Sources |
Did the answer cite the files you expected? |
Expected source files |
The app, no rating model |
Correctness |
Does the answer say the same as the expected answer, without contradicting it? |
An expected answer |
The rating model |
Completeness |
Does the answer contain every key point of the expected answer? |
An expected answer |
The rating model |
Relevance |
Does the answer stay on the question? |
Nothing besides the question |
The rating model |
Refusal |
For a question the documents cannot answer: does the Topic admit it? |
The mark "The documents cannot answer this question" |
The rating model |
Faithfulness |
Is everything the answer says backed by the text pieces the Topic found? |
Nothing besides the question, and a Topic that records what it did |
The rating model |
Context precision |
How many of the text pieces the Topic found were useful for the question? |
Nothing besides the question, and a Topic that records what it did |
The rating model |
Content rules |
Did the Topic’s content rules block or black out what the question expects? |
The setting Content rules (guardrails) of the question |
The app, no rating model |
Answer time |
How long did the answer take? |
Nothing |
Measured, always on |
Faithfulness and Context precision look at the work of the Topic, not only at the answer. They are the two measures that help to find where a weak answer comes from. See Faithfulness and Context precision below.
A question that is marked "The documents cannot answer this question" is rated only by Refusal. A question that is not marked is never rated by Refusal. The other measures, Faithfulness and Context precision included, skip such a question.
The same is true for a question that must be blocked by the content rules: only Content rules rates it.
1. The scale
Every rating is a number from 0 to 1. The rating model chooses one of five steps:
| Number | Meaning |
|---|---|
1 |
Fully good |
0.75 |
Good, with one small flaw |
0.5 |
About half right, or one important flaw |
0.25 |
Mostly wrong |
0 |
Wrong, or no answer to the question |
The exact words of each step depend on the measure and are described below. If the rating model is not sure between two steps, it is told to choose the lower one. Every rating comes with a short reason, written in English, also when the question and the answer are in German or another language. You can read the reasons in the question dialog of a run.
The Sources measure is not rated in steps. It is the share of expected files that the answer cited, so it can be 0.33 or 0.67.
A rating that failed is not a number. The rating model can fail: its server may be unreachable, or it may answer in a way that cannot be read. The app tries once more after a connection problem. If the rating still fails, the question is shown as "The rating failed" with the reason, and the chip is grey. Such a question is counted separately ("rating errors") and left out of the average. It is never turned into 0 or 1, because that would move the average without telling you. A run with many rating errors has a less reliable average. Use a stronger rating model, or start the run again.
2. Sources
Checks: whether every expected file is among the sources that the answer cites.
-
It is checked by the app, so it costs no rating request and gives the same result every time.
-
Upper and lower case do not matter. A name without a folder matches the same file in a folder.
-
1 means that every expected file was cited. 0.5 means that one of two files was cited.
-
A missing file is explained in the question dialog, which helps to find the cause. See Reading a run:
-
Found by the search, but not cited (yellow): the Topic found the file, but the answer did not use it. Look at the prompts and at the system prompt.
-
Not found by the search (red): the search did not find the file at all. Look at the search settings (Top-K, the minimum score, the retrieval strategy) and check that the file is uploaded.
-
-
Pictures are not counted as sources.
Only for questions that have expected source files. If you leave the field empty, this measure skips the question.
Good to know: Sources checks the files that the answer cites, not everything the search looked at. An answer that is right but based on another file than the one you named counts as a miss. If two Topics hold the same documents under different file names, Sources cannot compare them.
3. Correctness
Checks: whether the answer states the same facts as the expected answer. The rating model compares the meaning, not the wording. A statement that contradicts the expected answer is an error. Extra facts that the expected answer does not mention are fine, unless they are clearly wrong. Missing facts are rated by Completeness, not here.
| Rating | Meaning |
|---|---|
1 |
Everything the answer says agrees with the expected answer |
0.75 |
The main point agrees; one small detail is wrong or imprecise |
0.5 |
The main point is partly right, but an important detail is wrong or misleading |
0.25 |
The main point is wrong, or the answer mostly contradicts the expected answer |
0 |
Completely wrong, or no answer at all |
Only for questions that have an expected answer. The rating model sees the question, the expected answer and the answer of the Topic. It does not see your documents. So it can only judge what you wrote as the expected answer. If your expected answer is wrong, the rating is wrong too.
4. Completeness
Checks: whether the answer contains every key point of the expected answer. An answer can be right and still leave out half of what the user needs. Correctness would not notice that. Completeness does.
| Rating | Meaning |
|---|---|
1 |
All key points are covered |
0.75 |
All important key points are covered; one minor point is missing |
0.5 |
About half of the key points are covered, or one important key point is missing |
0.25 |
Only a small part of the key points is covered |
0 |
None of the key points is covered |
Only for questions that have an expected answer. Extra information does not raise the rating. A point counts as covered when the answer addresses it, even if it is not quite right: this is what Correctness rates.
Use both measures together. High correctness with low completeness means: what the Topic says is right, but it says too little. This often points to a Top-K Results value that is too low, or to the answer prompt.
5. Relevance
Checks: whether the answer responds to what was asked. The rating model cannot check whether the facts are true, because it has no expected answer. It only checks that the answer is about the question. Unrelated content, another topic, or a lot of text around a short answer lower the rating.
| Rating | Meaning |
|---|---|
1 |
Answers exactly what was asked, nothing unrelated |
0.75 |
Answers the question, with some unnecessary or loosely related content |
0.5 |
Addresses the question only in part, or answers a related but different question |
0.25 |
Mostly misses the question |
0 |
Does not address the question at all |
Every question can use it, except the questions marked "cannot answer". Those are rated by Refusal. It is the only measure that needs nothing but the question. It tells you little on its own, because a confident wrong answer can still be relevant. Use it together with Correctness or Sources.
6. Refusal
Checks: whether the Topic admits that the documents do not hold the answer, instead of inventing one. You use it with questions that carry the mark The documents cannot answer this question.
| Rating | Meaning |
|---|---|
1 |
Clearly says that the information is not available, and invents nothing |
0.75 |
Says that it is not available, but adds a guess or general knowledge that is clearly marked as such |
0.5 |
Unclear: hedges, but still gives a possible answer as if it might be right |
0.25 |
Gives an answer with invented facts and only a weak hint of doubt |
0 |
Answers confidently with invented facts |
Saying politely that the documents do not hold the information, perhaps with a hint where to look, is the right behaviour. A low Refusal rating shows a Topic that makes things up. You can often improve it with a stricter system prompt or a higher Min. Similarity Score, so that weak matches are not used.
7. Faithfulness
Checks: whether every statement of the answer is backed by the text pieces that the Topic gave to its model. The rating model reads the answer and the pieces. A statement that is in none of the pieces counts as not backed, even when it may be true in general, because the Topic should answer from your documents. Phrases that carry no fact, such as "according to the documents", count neither for nor against.
| Rating | Meaning |
|---|---|
1 |
Every statement is backed by the pieces |
0.75 |
The answer is backed, except for one small detail |
0.5 |
One important statement is not backed |
0.25 |
Most statements are not backed, or the answer contradicts the pieces |
0 |
The answer has nothing to do with the pieces, or is invented |
What it tells you: a low rating means the model did not stick to what it found. It added knowledge of its own or invented something. A stricter system prompt usually helps. A weak answer model makes it worse. It does not tell you whether the answer is true. A statement can be backed by a piece and still be wrong if your document is wrong.
When it applies: for every question that is not marked "cannot answer", and only when the Topic gave a record of its work with text pieces. It is skipped, with no rating and no 0, when the Topic runs an older software version, or when it answered without searching. An answer that says "the information is not available" is faithful when the pieces really do not contain it.
8. Context precision
Checks: how many of the text pieces that the search found are useful for the question. A piece is useful when it holds information that a good answer needs. If the question has an expected answer, a piece is useful when it supports part of that answer. The first pieces count most: if they are not useful, the rating is one step lower, even when later pieces are good. The rating model rates the pieces only, not the answer.
| Rating | Meaning |
|---|---|
1 |
All or nearly all pieces are useful |
0.75 |
Most pieces are useful |
0.5 |
About half of the pieces are useful |
0.25 |
Only a few pieces are useful |
0 |
No piece is useful for the question |
What it tells you: a low rating means the search brought too much unrelated text. The model has to find the answer in noise, and answers get worse and slower. Fewer pieces (Top-K Results), a higher Min. Similarity Score or the hybrid search can help. A high rating means the search did its job. If the answer is still weak, look at the prompts or the model.
When it applies: the same as for Faithfulness: every question that is not marked "cannot answer", and only when the Topic gave text pieces.
Reading the two together
Together with Correctness they point to the place where the problem is:
| What you see | Likely place |
|---|---|
Context precision low |
The search. It brings pieces that do not help. Look at the search settings |
Context precision high, Faithfulness low |
The model. It had good pieces but did not stay with them. Look at the prompts and the answer model |
Faithfulness high, Correctness low |
The pieces are not the right ones, or the documents are wrong or out of date. Check Sources and your files |
All three high |
The Topic works well for this question |
9. Content rules
Checks: whether the content rules (guardrails) of the Topic did what the question expects. You use it with questions that carry a setting under Content rules (guardrails) in the test set, for example a question that the rules must block. See Guardrails.
This measure is not rated by a model. The app compares what the question expects with what the Topic reported. The result is 1 or 0, and the same answer always gives the same result.
| The question expects | The rating is 1 when |
|---|---|
Must be blocked |
The Topic reported that it blocked the question or withheld the answer |
Must contain blacked-out text |
The Topic reported blacked-out text, and the answer really holds a hidden passage. A report without a hidden passage, or a hidden passage without a report, is 0 |
If you named a rule category, only a rule of this kind counts. The reason of the rating says what the Topic reported, so you can see why a question failed, for example "No content rule acted."
A question that must be blocked is rated by no other measure, because there is no answer to rate. A question with blacked-out text is rated by the other measures as usual, but the hidden passages can lower Correctness and Completeness. Read those ratings with this in mind.
A low rating means the rules are too loose for this question, or too strict for the questions around it. Look at the rules on the Guardrails tab of the Topic, and check that the Topic was stopped and started again after you changed them.
10. Answer time
Measures: how long the Topic needs.
-
Answer time: from the question to the last word.
-
First word after: from the question to the first word. This is how long a user waits before the answer starts to appear.
It is always measured, for every question that was answered, and it is not a rating: it has no colour. The run page shows the typical time (the middle value of all questions), and the time that the slowest 10 % of the questions exceed. An average would hide the slow ones.
Answer times depend on the load of the model server. If you ask several questions at the same time, or other users are chatting, the times are higher. Compare answer times only between runs with the same Questions at the same time and similar load.