RAG & Retrieval·Question 54 of 100Advanced

You have thumbs-up/down and click logs from a live RAG product. How do you turn that into retrieval improvements?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Implicit feedback is the highest-leverage asset a live system has, and it is also systematically biased, so using it naively makes things worse.

Full worked answer

Implicit feedback is the highest-leverage asset a live system has, and it is also systematically biased, so using it naively makes things worse.

The biases you must handle first:

  • Position bias: users click rank 1 because it is rank 1. Training on raw clicks teaches the model to reproduce your current ranker's ordering, which is a very expensive way to learn nothing.
  • Presentation bias: you only get feedback on what you showed. Documents never retrieved are never clicked, so the model can never learn they were relevant, and the system calcifies around its current blind spots.
  • Thumbs-down is unattributable: it means 'bad answer'. It does not say whether retrieval missed, the generator ignored good context, or the tone was wrong. Treat it as a signal to investigate, not a label.

What I would build:

  1. Log the full trace, not the outcome. Query, rewritten query, candidates with scores, reranked order, what was shown, what was cited, what was clicked, dwell time. Without candidate lists and scores you cannot do counterfactual analysis later, and you cannot add this retroactively.
  2. Debias before using. Either a position-bias model that estimates examination probability per rank, or, better, cheap interleaving: interleave results from two rankers in one list and see which side gets clicks. Interleaving is inherently position-fair and needs far less traffic than an A/B test to reach significance.
  3. Mine hard negatives. This is the biggest concrete win. A chunk retrieved highly, shown, and not clicked, while another was, is a hard negative and a positive respectively. That is exactly the training signal a contrastive fine-tune of the embedder or reranker needs, and it is free.
  4. Cluster failures rather than chase them. Group thumbs-down by query embedding. One cluster of 200 related complaints is a fixable systemic gap, usually a missing corpus. Two hundred individual tickets are noise.
  5. Feed a golden set. Sampled, human-verified feedback becomes regression cases.

One guardrail: dwell time and clicks measure engagement, not correctness. A confidently wrong answer gets a click. Keep a human-labelled slice as ground truth.

What a good answer covers

  • Implicit feedback is the highest-leverage asset a live system has, and it is also systematically biased,…
  • Position bias: users click rank 1 because it is rank 1
  • Presentation bias: you only get feedback on what you showed
  • Thumbs-down is unattributable: it means 'bad answer'
  • Debias before using

Key terms: Position bias · Presentation bias · Thumbs-down is unattributable · What I would build · Log the full trace · Debias before using · interleaving · Mine hard negatives · Feed a golden set

Interviewer follow-ups to expect

  1. Why does interleaving reach significance faster than an A/B test on the same traffic?

  2. How would you avoid a feedback loop where the ranker only ever learns from documents it already ranks highly?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep