Explain Connection
Explain how two entities are connected in your knowledge graph.What it does
Traces relationships between two entities to show direct connections and indirect paths through intermediaries. Returns direct relationships, multi-hop paths, and supporting memories that establish the connections.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
entityA | string | Yes | First entity (e.g., “Sarah”, “API”, “authentication”) |
entityB | string | Yes | Second entity (e.g., “database”, “frontend”, “Q2 goals”) |
Returns
Returns connection information containing:- directRelations: Direct relationships between the entities (if any)
- indirectPaths: Multi-hop paths through intermediaries
- supportingMemories: Memories that establish the connections
Examples
Find direct connection
Trace organizational structure
Understand data flow
When to use
- Understand relationships — When you need to see how different entities relate to each other
- Trace dependencies — Find how changes to one system might impact another
- Clarify organizational structure — See how people, teams, and projects connect
- Audit impact — Before making changes, understand what else might be affected
- Onboard new team members — Show how different components and people relate
Errors
| Error | Cause | Resolution |
|---|---|---|
entityA is required | Missing first entity | Provide both entity names |
entityB is required | Missing second entity | Provide both entity names |
| No connections found | Entities don’t have a relationship in the graph | Check entity names; add memories to establish connections |
Notes
- Direct relationships are found first; indirect paths use multi-hop traversal
- Confidence scores indicate the strength of each relationship
- Paths are ordered by likely relevance (shorter paths typically appear first)
- Supporting memories show which observations or decisions established the connections
- API-key clients use a recall-based fallback if the full graph query is unavailable
- If both entities exist but are unconnected, the response will show “No direct relationships” and “No indirect paths”
