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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"texts": "<texts>"
},
"name": "smart_dedup"
}
}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 |