# Deduplicate

> Detect duplicate entities, duplicate groups, and relationship duplicates in Semantica using fuzzy matching, schema heuristics, and graph similarity.

- Skill: `semantica-agi/deduplicate` (Agent Skill)
- Install (CLI): `npx skillmds@latest add semantica-agi/deduplicate`
- Raw SKILL.md: https://api.skillmd.com/api/skills/semantica-agi/deduplicate/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: semantica-agi (https://skillmd.com/u/semantica-agi)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/semantica-agi/deduplicate

---


# /semantica:deduplicate

Remove duplicates from the knowledge graph. Usage: `/semantica:deduplicate <strategy> [args]`

`$ARGUMENTS` = deduplication strategy + optional entity or threshold.

---

## `entities [--threshold <score>] [--field <name>]`

Detect duplicate entities and group them by similarity.

```python
from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
candidates = finder.detect_duplicates(entities, threshold=threshold)
groups = finder.detect_duplicate_groups(entities, threshold=threshold)
```

Output: duplicate candidate list, duplicate groups, and representative merge recommendations.

---

## `relations [--similarity <score>]`

Detect duplicate relationships and normalize edge representations.

```python
from semantica.deduplication import DuplicateDetector

finder = DuplicateDetector()
relations = finder.detect_duplicates(relation_list, threshold=similarity)
```

Result: duplicate relation candidates, normalized relationship groups, and cleanup summary.

