analyze_relation_duplicates
Find duplicate relations in a knowledge graph by detecting relationType spelling variants, redundant bidirectional mirrors, and semantically equivalent same-pair links. Provides a dry-run report without changing the graph.
Instructions
Dry-run the three-tier relation janitor: tier 1 finds trivial relationType spelling variants (WorksAt/works-at/works_at) and redundant bidirectional mirrors; tier 2 (when an embedding provider is configured) finds semantically equivalent same-pair relations. Report-only — never mutates the graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||