How to initialize a new cache instance after one was already initialized during run time? #587
Answered
by
mayalinetsky-kryon
mayalinetsky-kryon
asked this question in
Q&A
-
I have a loop, and in each iteration I simulate conversations using a semantic cache, but each time with a different similarity threshold.
How do I reset the cache for the second loop? |
Beta Was this translation helpful? Give feedback.
Answered by
mayalinetsky-kryon
Dec 11, 2023
Replies: 1 comment 3 replies
-
When you use the cache api, you can try the If the current similarity threshold is 0.8, set cache_factor to 0.5, and the similarity threshold for this request will be 0.4 Take
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the end I manually manipulated the sqlite database using this function:
The question is - does this truly behave as though the cache was recreat…