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).
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. |