PhD Lecture Hall · October 29, 2026

Scoring retrieval and writing separately

The Air Canada bot gave a wrong answer in a very confident voice. The question few people ask is whether it fetched the wrong document, or read the right one wrongly.

Tôn Nữ Xuân Quyên October 29, 2026 3 min read
Card Day 68 — Scoring retrieval and writing separately
Card Day 68 — Scoring retrieval and writing separately

In 2022, Jake Moffatt, who had just lost his grandmother, went to the Air Canada website and asked the chatbot about bereavement fares. It answered with great confidence: buy a normal ticket, then within 90 days of the flight apply for the difference back. He did exactly that and was refused, because the real policy does not refund a flight already taken. At the British Columbia Civil Resolution Tribunal, in Moffatt v. Air Canada in 2024, the airline went as far as arguing that the chatbot was "a separate legal entity". The tribunal rejected that and ordered the airline to pay back the difference of 650.88 Canadian dollars plus interest and fees. One wrong answer, delivered in a very confident voice.

The question few people ask is where the bot actually went wrong. Did it fetch the wrong policy document, or did it hold the right one and read it wrongly? Those two faults need two different repairs, and telling them apart means scoring them separately.

What scoring each stage separately means

Retrieval-augmented generation, abbreviated RAG, is the practice of letting a language model search the company's own documents before it answers, so the answer has a basis instead of being invented. The approach was introduced by Patrick Lewis and colleagues at Facebook AI in 2020, at the NeurIPS conference.

A system like this always has two stages in sequence. Retrieval goes into the store and picks out the few most relevant passages. Generation takes those passages and composes the answer the reader sees. Picture a library with two people: the first goes into the stacks and brings back the right book, the second reads it and summarises it for the visitor. A failure at either stage produces a wrong answer, but wrong in a different way.

Scoring separately means grading each stage on its own. Retrieval is measured by whether it surfaces the passage that was actually needed. Generation is measured by whether the answer stays close to the retrieved material rather than adding things of its own, usually called faithfulness. In 2023 a research group published an open framework called RAGAS along exactly these lines, splitting the evaluation into separate dimensions for retrieval and for generation.

How this applies to running a business

When the company chatbot answers wrongly, the common reflex is to blame the AI for not being clever enough and rush to a more expensive model. Scoring the two stages separately gives a more specific answer than that.

If retrieval brings back the wrong document, the problem is in the store: old documents never cleared out, a new policy never added, passages chopped up badly. A bigger model will not rescue that. Only when retrieval is already correct and the answer still drifts are you genuinely dealing with the model and the prompt.

In the Air Canada case, scoring the stages separately before opening it to customers might have asked in time: does the bot find the right bereavement refund page, and if it does, does it summarise it correctly or extrapolate? A set of a few dozen real questions with known correct answers, re-scored at every update, is enough to catch most faults before a customer meets them.

If your AI gave a wrong answer today, would you have any way of telling whether it searched wrongly or read wrongly, or is it still left to guess in general terms?

Bản tin

Mỗi ngày một thư ngắn.

Mỗi sáng tôi gửi một việc nhỏ bạn làm được ngay hôm đó với AI. Đọc hết trong hai phút.

Đăng ký xong bạn nhận luôn cẩm nang những câu lệnh tôi hay dùng nhất.
Bạn có thể huỷ bất cứ lúc nào.

Xong. Thư đầu tiên đang trên đường tới.