cache_threshold_recommendation
Recommends an optimal threshold for a semantic cache by analyzing rolling similarity scores. Specify a cache name; optionally restrict to a category or set minimum samples.
Instructions
Threshold-tuning recommendation for a semantic_cache, based on the rolling similarity-score window. Errors with INVALID_CACHE_TYPE on agent_cache.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache_name | Yes | Cache name as registered in __betterdb:caches (e.g. 'betterdb_scache_prod'). | |
| category | No | Restrict to a single category; omit for the global threshold | |
| minSamples | No | Minimum samples required (default 100) | |
| instanceId | No | Connection ID; defaults to the active instance |