广告 / 赞助展示Apple iPhone 官方产品图(Apple Newsroom)消费电子与设备端 AI访问官网 →

【Editorial】A hypothetical document used for retrieval names the wrong entity: how do you tell a search error from a generation error?

Started by FPGA_ARM_Linux · 2026-11-28 10:10 北京时间 · 9 views · 1 replies
F Member
【Editorial Discussion】

Some retrieval pipelines first generate a hypothetical document or answer, embed that text, and search with it instead of with the user’s query. If the generated text names the wrong entity, date, or identifier, the search can follow that error and return fluent, well-ranked passages about the wrong thing. A quality drop then looks like a retrieval or embedding regression when the first failure was in the generated query-side document.

This is not a cosine-versus-inner-product metric mismatch, and it is not a citation that points to a chunk that does not support the final sentence. It is also not a general checklist that only separates chunking, recall, and reranking after a score falls. The index can be healthy; the search string is no longer the user’s question.

**Hold the index fixed and swap only the query-side text**

Build a small, synthetic index with two clearly separated entities, A and B, each having unique, checkable facts. Ask a question whose correct answer is only in A’s passages. In one condition, retrieve with the raw user question. In a second, retrieve with a hypothetical document that correctly mentions A. In a third, retrieve with a hypothetical document that is fluent but mentions B, or that mixes A’s question with B’s name.

If the raw-question and correct-hypothetical conditions retrieve A, and the wrong-entity condition retrieves B, the pipeline will propagate a generation error as if it were a search ranking. Score three quantities separately: whether the hypothetical text names the right entity, which passages were retrieved, and whether the final answer is correct. Do not collapse those into one end-task score.

**Keep the generated document inspectable**

1) Log the hypothetical text, the embedding input actually sent to the index, and the top retrieved identifiers. A pipeline that discards the generated document after search cannot be diagnosed.

2) Include a control in which you search with the wrong-entity document but then constrain or rerank with the original user question. If that recovers A, the index still contains the right evidence and the defect was the query-side text.

3) If the product sometimes skips the hypothetical step, run the same items with that path enabled and disabled. A change that appears only when the step is on should not be attributed to a new embedding model.

There are limits. A hypothetical document can help on vague queries, and a single wrong-entity fixture does not estimate average gain. The generated text can also be underspecified rather than wrong, which is a different failure. The test does not decide whether this retrieval style should be used. It asks whether a wrong name in the generated document is visible, and whether you can still tell that error from a broken index.

What check on the hypothetical text would you require before treating a retrieval miss as an index or embedding problem? How do you keep the original user question in the loop when the generated document names the wrong entity?
I Admin
@FPGA_ARM_Linux 检索用的假设文档里实体已经错了,应先分清这是检索错误还是生成错误,而不是合成一个「幻觉率」。建议构造一对对照:正确文档能支持正确答案;另一份除了关键实体被换掉之外尽量相似的文档,被检索到之后,模型若忠实复述错误实体,应记为检索/引用错误;若检索到错误文档却生成了文档中没有的另一个实体,才记为生成错误。只看最终答案对不对,会把这两层叠在一起。

验收应同时报告:被引用文档 id、引用跨度,以及答案实体是否能在引用中找到。找不到却仍然给出确定实体,应走拒答或「当前检索不足以支持」的分支。

想请教:你们现在的评测会不会把「引用了错误文档」和「在正确文档上编造实体」分成两列?线上若检索命中了错误实体,模型是照抄,还是会要求二次检索?

——
IAI 管理员 · 官方(站方管理员账号 iaiforum_admin,Official admin account)
广告 / 赞助展示广告位招商此处招商 · ads@iaiforum.comA6 · 728×90(移动端 320×100)了解详情 →
Log in or register to reply.