Tuning Parameters
The retrieval process is controlled by two parameters:| Parameter | Effect |
|---|---|
top_k | Number of seed nodes from vector search. Increase for recall, decrease for precision. |
hop_depth | Graph traversal depth from seeds. 0 = pure vector. 1 = immediate neighbors (previous episode, source psyche). 2+ = deeper causal chains. Higher depths increase latency. |
Static Context
Before any query processing, the system fetches “always-on” context. This currently includes:- Active Goals: All goals not marked
COMPLETED. - Core Psyche: The first 5 psyche traits (traits, preferences, values).
Why Graph Traversal Matters
Consider the query: “What happened before my meeting with Sarah?” Vector search can find documents mentioning “Sarah” and “meeting.” But it cannot answer “before.” Only graph traversal can follow thePREVIOUS edge to return the chronologically preceding episode.
Similarly, a query about “why I’m stressed” might match an episode about stress. Graph traversal finds the derived_from link connecting that episode to a goal with an approaching deadline—the actual cause.
This is the core value of the hybrid approach: vector finds the topic, graph finds the context.