deduplicate_strings
Select semantically unique strings from a list using embeddings and optimization to remove duplicates and find diverse content.
Instructions
Get top-k semantically unique strings from a list using Jina embeddings and submodular optimization. Use this when you have many similar strings and want to select the most diverse subset that covers the semantic space. Perfect for removing duplicates, selecting representative samples, or finding diverse content.
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": {
"strings": "<strings>"
},
"name": "deduplicate_strings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strings | Yes | Array of strings to deduplicate | |
| k | No | Number of unique strings to return. If not provided, automatically finds optimal k by looking at diminishing return |