cache_threshold_recommendation
Recommends a tuning threshold for a semantic cache by analyzing rolling similarity scores to improve cache hit rates.
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 |
|---|---|---|---|
| category | No | Restrict to a single category; omit for the global threshold | |
| cache_name | Yes | Cache name as registered in __betterdb:caches (e.g. 'betterdb_scache_prod'). | |
| instanceId | No | Connection ID; defaults to the active instance | |
| minSamples | No | Minimum samples required (default 100) |