Should Recall Support Optional Query Rewrite? #2124
Sanderhoff-alt
started this conversation in
Ideas
Replies: 1 comment
-
|
the design of Hindsight is explictly:
as you mentioned, reflect already performs query rewriting. also, since Hindsight is usually queried by LLM/Agents, they get the right query format in the first place. you can always implement query rewriting at application/client level |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hindsight's
recallcurrently sends the user's query directly into the retrieval pipeline. The query is sanitized, embedded, and used across hybrid retrieval strategies such as semantic search, BM25, graph traversal, temporal retrieval, fusion, reranking, MMR, and token filtering.This keeps recall fast and predictable. However, some recall failures may come from query formulation rather than retrieval itself. It may be worth discussing whether
recallshould support an optional query rewrite or retrieval planning mechanism for ambiguous, conversational, underspecified, or multi-hop memory questions.Current Behavior
The current
recallflow is roughly:In
reflect, the agent can already generate tool parameters such as:So
reflecthas some implicit agentic query formulation. Plainrecall, however, does not have a dedicated, traceable, configurable query rewrite step.Why This Might Be Useful
Optional query rewrite could help when:
At the same time, query rewrite can be risky for memory systems. If a rewrite invents context, over-specifies the query, or chooses the wrong entity/time range, retrieval may silently move into the wrong topic.
Possible Direction
A conservative direction would be to make query rewrite optional and additive:
Rather than replacing the query with one rewritten string, Hindsight might eventually consider a small retrieval plan that preserves the original query and records why any extra candidates were generated.
Open Questions
recall,reflect, or both?mid/highbudget calls?Expected Outcome of This Discussion
The goal is to decide whether optional query rewrite is worth exploring for
recall, and if so, what constraints would make it safe enough for long-term memory retrieval.Beta Was this translation helpful? Give feedback.
All reactions