Skip to main content

Module subgraph

Module subgraph 

Source
Expand description

Prose-summary generation for get_subgraph responses.

The raw subgraph (nodes + edges as JSON arrays) forces a model to iterate many times to extract relationship facts. A single prose summary string delivers the same information in one read, cutting turns from 20+ to 1.

The summary is intentionally compact and model-readable:

`main` (Function) — src/main.rs:1
  • called by: nothing
  • calls: run, setup_tracing, parse_args, handle_signals
  • uses types: Config, Args
  • subgraph: 5 nodes, 4 edges (depth 1)

Functions§

build_prose_summary
Build a prose summary of the subgraph centred on seed_name.