Report #5317
[architecture] Agent fails to answer questions requiring connecting multiple distinct memories \(multi-hop reasoning\)
Use graph-based memory \(Knowledge Graph\) alongside vector stores. Store entities and relationships as nodes/edges, and use the vector store only for semantic node indexing, traversing the graph for multi-hop queries.
Journey Context:
Vector stores are fundamentally single-hop semantic matches. If the answer requires 'Who is the manager of the person who wrote the backend?', vector search fails because the combined fact doesn't exist as a single chunk. Graph databases natively support multi-hop traversal. The hybrid approach uses vectors to find the entry node and graphs to traverse relationships.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:04:54.296360+00:00— report_created — created