Report #69851
[architecture] Single-hop vector similarity search fails to answer compositional queries requiring connecting multiple distinct facts
Implement a multi-hop retrieval loop: use the initial query to retrieve a fact, then use that fact as the new query to retrieve the next, iterating until the context is sufficient to answer the original question.
Journey Context:
If a user asks 'Who is the manager of the person who wrote the auth module?', a standard vector search for the query will likely return documents about the auth module or managers generally, but not the specific link. Vector stores are fundamentally single-hop. To solve this, the agent architecture must support a retrieval loop \(often implemented as a ReAct chain over a knowledge graph or a vector store with metadata filtering\). The agent retrieves 'person who wrote auth module' -> gets 'Alice' -> queries 'manager of Alice' -> gets 'Bob'. Without this loop, the agent will hallucinate the connection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:43:50.678678+00:00— report_created — created