brain_knowledge_graph
Export the product knowledge graph (entities + typed relations) as nodes and edges; truncation keeps the highest-degree nodes, so a small limit returns the hub concepts
Export the product knowledge graph (entities + typed relations) as nodes and edges; truncation keeps the highest-degree nodes, so a small limit returns the hub concepts
Behavior
- HTTP
GET /brain/knowledge/graph
Arguments
Name | Type | Required | Description |
|---|---|---|---|
limit | integer | — | Max nodes (default 5000). When the cap applies, the highest-degree nodes are kept, so a small limit (e.g. 100) returns the hub concepts. |
scope | string | — | Read scope; 'both' (default) unions shared + your private |
Response
Field | Type | Always | Description |
|---|---|---|---|
edges | array | • | The typed relations between those entities |
nodes | array | • | The entities in the exported graph |
totals | object | • | Sizes of what was actually returned |
truncated | boolean | • | True when `limit` cut the export short — the highest-degree nodes were kept, so what you get is the hubs |
elapsed_ms | number | • | How long the engine took to answer, milliseconds |
request_id | string | • | Engine request id for this call — quote it when reporting a problem |
Try it
Export the product knowledge graph (entities + typed relations) as nodes and edges; truncation keeps the highest-degree nodes, so a small limit returns the hub concepts.