News for hackers. Stuff that matters.
Re:Show HN: GPTCache – Redis for LLMs by quickthrower2 on Wednesday April 12, 2023 @11:58PM (#35550755)
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?

Re:Show HN: GPTCache – Redis for LLMs by redskyluan on Friday April 14, 2023 @02:21PM (#35572886)
You are right, most LLM queries won't be exact match, so you will need semantic search for hit those similar but not same questions