Graph Relate
graph_relateLink entities with relationships; batch mode atomically extracts multiple facts from transcripts without creating orphan nodes.
Instructions
Create or strengthen a relationship between entities. Creates the endpoint entities if they don't exist. Use single mode (from_name/to_name/relation) for one fact at a time. Use batch mode when extracting from a transcript or document — it's atomic, so a partial failure won't leave dangling nodes. Idempotent: re-asserting an existing edge boosts its weight rather than duplicating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_name | No | Source entity name (single mode) | |
| from_type | No | Source entity type (single mode) | |
| to_name | No | Target entity name (single mode) | |
| to_type | No | Target entity type (single mode) | |
| relation | No | Relationship type (single mode) | |
| weight | No | Edge weight 0.0-1.0 | |
| properties | No | Additional properties | |
| evidence | No | Why this relationship exists | |
| valid_at | No | When this fact became true | |
| source_session | No | Session ID for provenance | |
| source_transcript | No | Transcript path for provenance | |
| source_type | No | Source type: conversation, ingest, manual, bootstrap | |
| batch | No | Batch mode: create multiple entities and relationships atomically |