CacheStats
Counters for one SemanticCache instance, from creation to now.
The breakdown of misses is the part worth watching. A high belowThreshold means your traffic repeats less than you assumed, or your threshold is too tight for your embedding model. A high guardRejections means the opposite: prompts are landing close together and the guards are catching near-misses your threshold alone would have served.
Constructors
Properties
Misses where the best candidate scored below the threshold.
Fraction of lookups that reached a guard and were stopped there, in [0.0, 1.0].
Misses where a guard vetoed a candidate that had cleared the threshold.
guardRejections broken down by the dev.kmemo.guard.MatchGuard.name that fired.
Total SemanticCache.lookup and SemanticCache.getOrPut calls.
Misses where the verifier vetoed a candidate that had cleared threshold and guards.
Entries written through SemanticCache.put or SemanticCache.getOrPut.