4 ms·
Smart: > However, using an exact match approach for LLM caches is less effective due to the complexity and variability of LLM queries, resulting in a low cache
by quickthrower2 4y ago
Smart:
> However, using an exact match approach for LLM caches is less effective due to the complexity and variability of LLM queries, resulting in a low cache hit rate. To address this issue, GPTCache adopt alternative strategies like semantic caching. Semantic caching identifies and stores similar or related queries, thereby increasing cache hit probability and enhancing overall caching efficiency.
> GPTCache employs embedding algorithms to convert queries into embeddings and uses a vector store for similarity search on these embeddings. This process allows GPTCache to identify and retrieve similar or related queries from the cache storage, as illustrated in the Modules section.
While I wont pretend to fully understand this I assume it means more cache hits for similar but not exactly the same queries?
- redskyluan 4y agoYou are right, most LLM queries won't be exact match, so you will need semantic search for hit those similar but not same questions