-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
community[minor]: VectorStore integration for SAP HANA Cloud Vector Engine #4984
Conversation
… insert user-defined vectors into the collection.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @cinqisap, thanks so much for this! The SAP client dep is quite large (186MB!) and I'm worried it'll slow down our CI. I see that it's only being used as a type in the connector itself - is there any lighter variant? |
Yeah, it adds a full minute to our If there is no lighter version, what we can do is split it out into a partner package that is versioned separately, and skip building it in CI. The other option I see is to inline the What do you prefer? |
hi, @jacoblee93, thanks for the suggestion! I pushed a new commit to address this issue. My solution is to add support for another HANA Node.js driver Now the client type is defined as any and can represent both drivers. Looking forward to hearing more if the current solution is not as desired. |
Yes that's a great solution! Thank you, I'll look shortly. |
@@ -0,0 +1 @@ | |||
declare module "hdb"; |
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.
Fine to add this as a dep to examples/
- will do that shortly.
Ah, sorry missed the part about the declaration. Will fix. |
Thank you! |
Description:
This PR adds a VectorStore integration for SAP HANA Cloud Vector Engine, which is an upcoming feature in the SAP HANA Cloud database (https://blogs.sap.com/2023/11/02/sap-hana-clouds-vector-engine-announcement/).
This typescript version is as close as Python version integration (community: VectorStore integration for SAP HANA Cloud Vector Engine langchain#16514)
Issue: N/A
Dependencies: SAP HANA Node.js Client
Twitter handle: @sapopensource
Implementation of the integration:
libs/langchain-community/src/vectorstores/hanavector.ts
Unit tests:
libs/langchain-community/src/vectorstores/tests/hanavector.test.ts
Integration tests:
libs/langchain-community/src/vectorstores/tests/hanavector.int.test.ts
Examples:
examples/src/indexes/vector_stores/hana_vector/
Documentation:
docs/core_docs/docs/integrations/vectorstores/hanavector.mdx
Integration tests and examples were run successfully.
Access credentials for the execution of the integration tests can be provided to the maintainers.