Sample questions
Question 1Easy
A query has 3 relevant chunks in the corpus and the top 3 results contain exactly 1 of them. What is recall@3?
- 0.33
- 3.00
- 0.67
- 1.00
Answer: A. 0.33
Explanation
Recall@k = relevant retrieved / all relevant = 1/3 ≈ 0.33.
Step-by-step solution
- Recall@3 is the ratio of relevant chunks retrieved to total relevant chunks.
- Top 3 results have 1 relevant chunk out of 3 total relevant chunks.
- So recall@3 = 1 / 3 = 0.33.
- Final answer: 0.33.
Why the other options are wrong
- B. Recall is a fraction between 0 and 1, so 3.00 cannot be right; only 1 of 3 relevant chunks is found.
- C. 0.67 would mean two of three were found; only one relevant chunk appears in the top 3.
- D. 1.00 would mean all three relevant chunks were found; only one of them is in the top 3.
Tip: Recall@k is (relevant retrieved) divided by (total relevant).
Question 2Easy
An eval set has 40 questions, all about billing, but 60% of real traffic is technical support. What is the main problem?
- It has too many questions to run quickly
- It does not represent real traffic
- Billing questions cannot be evaluated
- Eval sets must contain exactly 100 items
Answer: B. It does not represent real traffic
Explanation
Scores on an unrepresentative set say little about how the system performs for most users.
Step-by-step solution
- Eval set has 40 billing questions, but real traffic is 60% technical support.
- Billing questions are not representative of actual user needs.
- The eval set fails to reflect the majority of real-world scenarios.
- This makes the evaluation results unreliable for real performance.
- The main problem is that it does not represent real traffic.
Why the other options are wrong
- A. 40 questions is a small set that runs quickly; the problem is its topic mix, not its size.
- C. Billing questions can be evaluated; the problem is that they are the wrong mix for real traffic.
- D. Eval sets do not need exactly 100 items; the mismatch of topics is the real issue.
Tip: Always check if your eval set matches real user behavior.
Question 3Easy
As retrieval depth k grows from 5 to 20, what usually happens to recall@k and precision@k?
- Both rise together
- Recall falls while precision rises
- Both stay exactly the same
- Recall rises while precision falls
Answer: D. Recall rises while precision falls
Explanation
More results catch more relevant items but also include more irrelevant ones.
Step-by-step solution
- Recall@k measures how many relevant items are retrieved.
- As k increases, more items are included in the result list.
- More relevant items are caught as k grows, so recall@k rises.
- Precision@k measures how many retrieved items are relevant.
- Including more irrelevant items lowers precision@k as k grows.
- Recall rises while precision falls.
Why the other options are wrong
- A. Precision usually falls as k grows, because more irrelevant items are added to the list.
- B. Recall usually rises, not falls, as more items are retrieved, so this pair is reversed.
- C. Both values change with k: recall rises and precision typically falls as more items are added.
Question 4Easy
Of 10 factual claims in a generated answer, 8 are supported by the retrieved context. What is a claim-level faithfulness score?
- 0.2
- 1.25
- 8
- 0.8
Answer: D. 0.8
Explanation
Faithfulness = supported claims / total claims = 8/10.
Step-by-step solution
- Supported claims = 8.
- Total claims = 10.
- Faithfulness = 8 / 10 = 0.8.
- Final answer: 0.8.
Why the other options are wrong
- A. 0.2 would mean only 2 of 10 claims are supported; 8 of 10 gives 0.8.
- B. 1.25 is above 1, which a faithfulness score cannot be; 8 of 10 claims gives 0.8.
- C. 8 is a count of supported claims, not a score; dividing by 10 claims gives 0.8.
Tip: Use supported claims divided by total claims for faithfulness score.
Question 5Medium
Agent evaluations often grade the final state (for example "was the order actually cancelled in the database?") rather than the exact steps. Why?
- Final states are cheaper to store on disk
- Many different step sequences can be valid
- Steps cannot be compared between runs
- Agent steps are never logged by frameworks
Answer: B. Many different step sequences can be valid
Explanation
Outcome-based grading avoids penalising correct but different paths.
Step-by-step solution
- Final state checks focus on results, not actions taken.
- Different step sequences can lead to same final state.
- So, grading by final state is fair for multiple valid paths.
Why the other options are wrong
- A. Storage cost is not the reason; the final state is graded because valid runs can take different steps.
- C. Steps can be compared between runs; the reason to grade the final state is that valid paths differ.
- D. Frameworks do log agent steps; the reason is that many step sequences are valid, not missing logs.
Tip: Outcome-based evaluation avoids bias from different paths.
Question 6Medium
Synthetic test questions generated by an LLM from your documents are useful, but their main weakness is:
- They cannot include any expected answers
- They may not reflect how real users phrase questions
- They can only be written in English
- They always contain personal data
Answer: B. They may not reflect how real users phrase questions
Explanation
Synthetic questions tend to reuse document wording, which makes retrieval look easier than in production.
Step-by-step solution
- Synthetic test questions are written by an LLM from your documents.
- They often reuse the document's own wording.
- Real users phrase things differently, so synthetic tests can make retrieval look easier.
- So option B, they may not reflect how real users phrase questions, is the main weakness.
Why the other options are wrong
- A. Synthetic questions can come with expected answers, which is a strength.
- C. Generated questions are not limited to English.
- D. Synthetic questions do not always contain personal data.
Tip: Mix synthetic questions with real user queries in your test set.
Question 7Medium
Four test queries have their first relevant result at rank 1, rank 4, not found, and rank 2. What is the MRR?
- 0.2500
- 0.4375
- 0.3333
- 0.5833
Answer: B. 0.4375
Explanation
Reciprocal ranks 1, 0.25, 0 and 0.5 sum to 1.75; 1.75 / 4 = 0.4375. A query with no relevant result contributes 0.
Step-by-step solution
- Reciprocal ranks: 1, 1/4, 0, 1/2.
- Sum = 1.75.
- MRR = 1.75/4 = 0.4375.
Why the other options are wrong
- A. 0.25 uses only one value.
- C. 0.3333 is wrong.
- D. 0.5833 divides by 3.
Tip: Divide by all queries, including misses.
Question 8Medium
A golden evaluation set should ideally be built from:
- Randomly generated text with no expected answers
- Real user queries, stratified, with edge cases and expected answers
- Only the examples already used in the prompt's few-shot section, for consistency
- Questions the model already answers correctly
Answer: B. Real user queries, stratified, with edge cases and expected answers
Explanation
Representative and hard cases make the set predictive of production; reusing prompt examples inflates scores.
Step-by-step solution
- A golden set should predict how the system behaves in production.
- It should use real user queries, sampled across the different types.
- It should include edge cases, each with an expected answer.
- So option B, real stratified queries with edge cases and expected answers, is right.
Why the other options are wrong
- A. Random text with no expected answers cannot test answer quality.
- C. Reusing prompt examples inflates scores because the model has already seen them.
- D. Keeping only questions the model already answers hides real failures.
Tip: A golden set is real, mixed-difficulty queries with expected answers.
Question 9Hard
A pairwise judge prefers answer A over B when A is shown first, and B over A when B is shown first. How should this result be recorded?
- As a win for A, since it was judged first
- As a win for B, since it was judged last
- As a tie or inconsistent judgment, not a win
- As two wins, one for each answer
Answer: C. As a tie or inconsistent judgment, not a win
Explanation
Order-dependent verdicts reveal position bias; only judgments consistent across both orders count as wins.
Step-by-step solution
- Judge prefers A when shown first, B when shown second.
- Preference changes based on order, showing inconsistency.
- Inconsistent judgment cannot be recorded as a win for either answer.
- This is a tie or inconsistent judgment, not a win.
- Final answer: As a tie or inconsistent judgment, not a win.
Why the other options are wrong
- A. Judging A first is order bias; the result changes with position, so A cannot be credited as the winner.
- B. Being judged last gives no real advantage; the same order effect applies, so B cannot win either.
- D. Two wins would count one inconsistent judgment as two; the pair is not a consistent preference for either.
Tip: Ignore order-dependent judgments; only consistent choices count.
Question 10Hard
An eval set has 200 questions and accuracy is 85%. Roughly what is the 95% confidence margin (±1.96 standard errors)?
- ±0.5 points
- ±15.0 points
- ±1.0 points
- ±4.9 points
Answer: D. ±4.9 points
Explanation
SE = sqrt(0.85 × 0.15 / 200) ≈ 0.0252; 1.96 × SE ≈ 0.049, about ±4.9 percentage points.
Small differences between prompts can be noise.
Step-by-step solution
- Accuracy p = 0.85 on n = 200 questions.
- Standard error = sqrt(0.85 × 0.15 ÷ 200) = 0.0252.
- Margin = 1.96 × 0.0252 = 0.049, about 4.9 percentage points.
- So option D, ±4.9 points, is correct.
Why the other options are wrong
- A. ±0.5 points is far too narrow for only 200 questions.
- B. ±15 points is far too wide for this sample size.
- C. ±1.0 point is still too narrow for 200 questions.
Tip: Margin ≈ 1.96 × sqrt(p × (1 − p) ÷ n); small sets have wide margins.
Practise all 29 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →