Enable Caching even after process restart #544
-
I understand below code can use cache stored in database for subsequent same questions based on similarity score. from gptcache.adapter import openai d = 8 def mock_embeddings(data, **kwargs): def run():
if name == 'main': |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
yes, after the process restart, the cache is also effective. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
@prakashpatidarcoindcx because the embedding is random and before running the test case, i delete the faiss.index file