consolidate_relations
Detect duplicate relations in the knowledge graph and, when apply is enabled, merge tier 1+2 duplicates into one canonical relation while summing confirmation counts.
Instructions
Run relation-duplicate analysis and — when apply=true — merge tier 1+2 duplicate groups (delete variants, create the canonical survivor with summed confirmationCount). apply=false (default) is identical to analyze_relation_duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Apply tier 1+2 merges (default false = dry-run) |