smart_dedup
Purpose: Semantic deduplication across multiple text passages (SemHash). When to use: Several chunks or search results overlap heavily. When NOT to use: A single string or unrelated documents. Returns: JSON string with kept/removed indices or deduped texts. Composes with: after smart_search or before smart_context_gate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| texts | Yes | List of text passages to deduplicate. | |
| threshold | No | Similarity threshold (0.0–1.0); higher keeps fewer duplicates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |