get_knowledge_graph
Build a knowledge graph around a specific item, revealing connections to other items in your corpus with typed edges and confidence scores. Specify depth for direct or broader network exploration.
Instructions
Build a knowledge graph around a specific item, showing how it connects to other items in your corpus via knowledge_edges. Returns the center item, connected nodes with metadata, and typed edges with confidence scores. Use depth=1 for direct connections, depth=2-3 for wider neighbourhood exploration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Graph traversal depth (default 1). Depth 2-3 expands to neighbours of neighbours. | |
| item_id | Yes | UUID of the center item to build the graph around |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| stats | Yes | ||
| center_item | Yes |