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?
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?

