Expand description
Relational (call-graph / impact) retrieval over the code graph.
Glyph’s lexical retrieval is node-local: “what calls X” returns X itself. But the graph
already encodes who-references-what as edges (A --references--> B), so the callers/dependents
of a symbol are just its REVERSE edges. These traversals surface that. They are deterministic
graph facts — confidence is Exact, not a similarity guess.
Enums§
Functions§
- callers
- Direct callers/users of a node: reverse
referencesedges (+implementswhen the node is a trait). Prefers function nodes — a containing type that only references the target through one of its methods is dropped in favor of the method. - detect_
relational_ intent - Detect a call-graph/impact query and extract its subject symbol. Returns
Nonefor ordinary lexical queries (so the caller falls through to normal grounding). - impact
- Transitive dependent closure: BFS over REVERSE
references/implementsedges fromnode_idup todepthhops. Also seeds the node’scontainschildren (changing a type affects users of its own methods). Excludes the subject itself. Answers “what breaks if I change X”. - kind_
intent - Map a generic, language-agnostic KIND word in the query to a node
Kind. Used to bias retrieval toward the structural shape the user asked for (“the struct that…” → Type). Vocabulary only — no project- or language-specific names. - rerank_
by_ kind - Stable re-rank: hits whose node is of
targetkind move ahead of the rest, preserving the lexical order within each group. Generic — promotes the asked-for shape without touching scores. - resolve_
symbol - Resolve a symbol NAME (e.g.
verify_password,Task) to a concrete node id.