find_connections
Find paths connecting entities through chains of facts using BFS graph traversal. Map relationships between notes in the knowledge graph.
Instructions
Find connections between entities using BFS graph traversal.
Discovers how entities are related through chains of facts.
Args: source_entity: Starting entity name target_entity: Target entity to find path to (optional) If None, returns all reachable entities up to max_depth source_type: Type of source entity (optional, for disambiguation) target_type: Type of target entity (optional, for disambiguation) max_depth: Maximum path length (1-10, default 3) limit: Maximum paths to return (1-100, default 10)
Returns: List of connection paths, each containing: - path: List of facts connecting the entities - entities: List of entity names in the path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| max_depth | No | ||
| source_type | No | ||
| target_type | No | ||
| source_entity | Yes | ||
| target_entity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |