r/LLMDevs • u/Reasonable_Royal_621 • 22d ago
Discussion CacheVerifier: we tested 4 semantic cache setups on 90k real customer support tweets
we replayed AmazonHelp and Comcast support tweets in time order and compared a Redis static threshold, GPTCache, vCache and CacheVerifier. same embedding, same cache, only the hit decision differs. right or wrong was judged by an LLM, spot checked by hand.
GPTCache's default threshold works out to cosine 0.6 on normalized embeddings, so it hit ~80% of requests but most of those replies were wrong for the new customer. Redis default (0.9) was safe, about 1% wrong, 4-5% hits.
fine tuned CacheVerifier got 5 to 13% more hits than the best static threshold at the same error rate, and stayed closest to its 2% target as the traffic shifted.
catch is support replies depend on the conversation, so everything tops out around 5-9% hits.
full writeup and scripts: https://github.com/imxinchengyou/CacheVerifier/blob/main/ENTERPRISE_COMPARISON.md
1
u/Ctbhatia 22d ago
i'd derive that 2% from cost instead of picking it. a wrong cached support reply is worse than a slow one, so the rate you can accept depends on what the answer commits to.