LLM Evaluation for Question Answering: How to Score Answers That Matter

LLM Evaluation for Question Answering: How to Score Answers That Matter

LLM evaluation for question answering is the process of measuring how well a language model answers questions, from simple facts to complex reasoning. It matters because a model can answer confidently and fluently while being wrong, and users rarely have the knowledge to spot the error. The central question is how to score answers fairly when many questions have more than one acceptable answer, and the answer is to judge meaning and evidence rather than exact wording.

Question answering covers a wide range: factual questions with a single answer, questions that need reasoning across several facts, and open questions where the answer is an explanation. Each type needs different scoring, and an evaluation that uses one method for all of them will mislead you. The work starts by sorting your questions into types and choosing a scoring method for each.

Key takeaways

  • LLM evaluation for question answering must judge meaning and evidence, not exact wording.
  • Sort questions by type first: factual, multi-step, open-ended and unanswerable need different scoring.
  • Grounding checks matter most where answers come from retrieved documents.
  • Include unanswerable questions, or models will invent answers instead of saying they do not know.
  • Combine exact checks, LLM judges and human review rather than relying on one method.

What is LLM evaluation for question answering?

LLM evaluation for question answering means running a model against a set of questions with known or judged answers, then scoring its responses against defined criteria. The test set is the heart of the evaluation: it should reflect the questions users actually ask, including the awkward ones, not just the questions the model handles easily.

Scoring can be exact, where the answer must match a known value, or graded, where a judge rates correctness, completeness and grounding on a scale. Exact scoring is precise but narrow, and it fails on any question with more than one valid phrasing. Graded scoring is broader but noisier, and it needs calibration to be trusted. Most serious evaluations use both.

Question answering evaluation is also where retrieval matters most. Many systems answer from documents, and a wrong answer can come from bad retrieval, bad generation or both. Scoring the answer alone will not tell you which part failed, so the evaluation should check the retrieved evidence as well as the final answer.

Question types and how to score them

Factual questions have a short, definite answer, such as a date, a name or a number. These are the easiest to score exactly, and exact matching works well when the answer format is fixed. Best for: knowledge tests, trivia-style checks and any question where the answer is a single value.

Multi-step questions need the model to combine several facts, such as comparing two figures or following a chain of events. Exact scoring still works when the final answer is short, but the evaluation should also check the reasoning, because a right answer reached by wrong reasoning will fail on the next question. Best for: reasoning benchmarks and tasks where the working matters as much as the answer.

Open-ended questions ask for an explanation, a summary or an opinion, and there is no single correct answer. These need graded scoring by an LLM judge or a human, checking correctness of the claims, completeness of the coverage and clarity of the explanation. Best for: help content, explanations and any answer where quality is a matter of degree.

Unanswerable questions are the most revealing type of all. They ask about something the documents do not cover, or they contain a false premise, and the correct response is to say so rather than invent an answer. Best for: testing honesty and grounding, because models that never say “I do not know” will fail here.

What to measure in an answer

Correctness is the first measure: is the answer right? For factual questions this is straightforward, but for open questions it means checking each claim in the answer against a reliable source. A partly correct answer should earn a partial score, not a pass or a fail, because the difference between mostly right and mostly wrong is exactly what you need to track.

Grounding asks whether the answer is supported by the evidence it was given. Where a system answers from documents, every claim should trace back to a passage, and claims with no support should be flagged even if they happen to be true. Our guide to RAG answer faithfulness explains why unsupported claims are the trust problem that users notice first.

Completeness asks whether the answer covers everything the question needed. A correct but partial answer can mislead as surely as a wrong one, especially when the missing part is a condition, an exception or a warning. Completeness is hard to score exactly, which is why it is usually graded by a judge against a list of points the answer should cover.

Clarity and conciseness matter because answers are read by people. An answer that buries the key point in three paragraphs of background is less useful than one that states it directly. Judge clarity separately from correctness, or long, impressive-looking answers will outscore short, accurate ones.

Evaluation methods compared

Method How it works Main strength Main risk
Exact match Answer must equal the expected value Precise and fully reproducible Fails on valid rephrasings
Token overlap Measures shared words with the reference Fast and easy to run Rewards wording, not meaning
LLM as a judge A model grades the answer against criteria Judges meaning and reasoning Needs calibration and costs more
Human grading People score answers on a rubric Highest trust for nuance Slow and expensive at scale
Entailment checks Tests whether the answer follows from evidence Directly tests grounding Needs a reliable entailment model

The practical pattern is layered: exact checks for short factual answers, an LLM judge for open and multi-step questions, and human grading on a sample. Our guide to evaluating LLM factual accuracy covers the traps that make accuracy scores look better than they are.

A student studying at a library table with open books and a notebook
Good test questions come from real use: the questions users actually ask, including the vague ones, the multi-part ones and the ones with false premises.

Building a question answering test set

Start from real user questions. Logs, support tickets and search queries are the best source, because they show what people actually ask and how they phrase it. Clean up the spelling and grammar if you must, but keep the intent and the difficulty: a test set of polished questions will flatter the model.

Cover the full range of difficulty. Include easy questions that any system should answer, medium questions that need some reasoning, and hard questions that stretch the system. If everything is easy, every model scores near the top and you cannot tell them apart. If everything is hard, every model fails and you cannot tell them apart either.

Write the expected answers with care. For factual questions, record the answer and the source it came from. For open questions, write a list of points a good answer should cover, rather than a single model answer, so the judge can score coverage instead of similarity. And for unanswerable questions, record explicitly that no answer exists, so the evaluation rewards honesty.

Keep the test set private from the model where possible. If test questions leak into training data, scores rise without any real improvement, and the evaluation becomes worthless. This is a real risk with public benchmarks, and one reason to build your own test set from internal questions.

Common failures to test for

Hallucination is the headline failure: the model states a confident fact that is wrong or invented. Test with questions about recent events, obscure facts and topics where the model is likely to guess, and check every factual claim rather than the overall impression of the answer.

Partial answers are quieter but common. The model answers one part of a two-part question and ignores the rest, or gives the general rule without the exception. Test with multi-part questions and questions that contain conditions, and score completeness separately from correctness.

Overconfidence on unanswerable questions is a failure of honesty. When the evidence does not contain the answer, the model should say so, yet many models prefer to invent something plausible. Include a healthy share of unanswerable questions in every test set, and treat a wrong guess as a failure, not a near miss.

Finally, test for stale knowledge. Questions about things that changed recently, such as a new policy, a renamed product or a changed date, reveal whether the system uses its retrieved documents or falls back on memorised facts. A system that answers from memory instead of the documents will get these wrong.

Question answering evaluation checklist

  • Questions are sorted by type, with a scoring method chosen for each type.
  • The test set uses real user questions, covering easy, medium and hard difficulty.
  • Unanswerable questions are included and honesty is scored.
  • Expected answers record sources for facts and key points for open questions.
  • Exact checks handle short factual answers; a judge handles open and multi-step ones.
  • Grounding is checked against the retrieved evidence, not just the final answer.
  • The judge is calibrated against human grades on a sample of answers.
  • Completeness is scored separately from correctness.
  • The test set is kept private from training data where possible.
  • Results are tracked per release so regressions are visible over time.

Frequently asked questions

How many questions do I need in a test set?

A few hundred is a practical minimum for comparing two versions, because smaller sets are too noisy to show real differences. Larger sets, in the thousands, are better when the questions vary widely in type or difficulty, or when the differences between models are small.

Can I use public benchmarks instead of building my own test set?

Public benchmarks are useful for a first comparison, but they measure general ability, not your system on your content. Build your own test set from real user questions for decisions that matter, and use public benchmarks only as a rough guide.

Should the judge see the expected answer?

Yes, for factual and multi-step questions, the judge should see the expected answer and the evidence, so it can check correctness rather than guessing. For open questions, give it the list of points a good answer should cover instead of a single model answer.

How do I score answers that are partly correct?

Use a graded scale rather than pass or fail, and score correctness and completeness separately. A partly correct answer earns partial credit on both, which gives you a much clearer picture of where the system is improving and where it is not.

What is the biggest mistake in question answering evaluation?

Testing only questions the model can answer. A test set without unanswerable questions, multi-part questions and hard cases will give flattering scores and no warning when the system fails in production. The hard cases are the point of the test.

How often should I re-run the evaluation?

On every change that could affect answers: a new model, a new prompt, a changed document set or a new retrieval setting. A quick run on a small subset catches most regressions early, with a full run before each release.

Latest articles

Scroll to Top