Graph Inspection and Querying
Inspect graph entities, facts, traces, and retrieval behavior while tuning graph-weighted search.
1
Use graph.explore for Debugging
graph.explore() is an inspection API. Use it to inspect anchors, candidate entities, facts, and trace details without building a full prompt-oriented search response.
graph-explore.ts
2
Use search for Retrieval
Production retrieval should usually go through typegraph.search(). Include graph-backed resources and set weights.graph to control graph influence.
graph-search.ts
3
Inspect Entities and Edges
Use graph read APIs when you need direct graph objects for dashboards, debugging, curation, or admin tools.
entities-and-edges.ts
4
Fetch a Subgraph
Subgraph reads are lower-level topology tools. They are useful for visualization and auditing, but they are not a replacement for ranked search.
subgraph.ts