gate402_dedup
Look up queries in a semantic vector cache to find exact or 0.88 cosine similarity matches, returning a hit or miss in under 10ms to reduce token usage.
Instructions
Semantic vector-cache lookup: exact-match then 0.88 cosine similarity. Returns a cache hit/miss for a query, sub-10ms. Pay-per-call ($0.001 hit / $0.003 miss).
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": {
"query": "<query>"
},
"name": "gate402_dedup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text to look up in the cache. | |
| vector | No | Optional embedding to store on a miss. | |
| namespace | No | Optional cache namespace. | |
| storeOnMiss | No | Store the query on a miss for future hits. |