-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cosmosdbnosql): Add Semantic Cache Integration #7033
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
…ngchainjs into add-semanticCache
One more thing you may want to consider - happy to merge but you may want to return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @aditishree1 .
make sense. Any suggestion on what should be the threshold score? |
No good intuition - would try it with some things you'd expect to be cached and allow the user to override it |
Hi @jacoblee93 @sinedied @aayush3011, I have added similarity score threshold in the last commit. I have set the default threshold as 0.6 by trying out some prompts. Also added the tests. Pls review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I put a minor comment regarding the tests to make it work with any embedding model
examples/src/caches/azure_cosmosdb_nosql/azure_cosmosdb_nosql.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Yohan Lasorsa <noda@free.fr>
7b92a45
to
2156145
Compare
Hi @jacoblee93, I have added changes to set a threshold score. Please have a look. |
Awesome, thanks will merge and ship a new package version once it's in! |
Co-authored-by: Yohan Lasorsa <noda@free.fr> Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
This PR adds following changes: