-
Notifications
You must be signed in to change notification settings - Fork 0
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
CrateDB vector: Add CrateDBVectorSearchMultiCollection
#15
Conversation
51ec5a2
to
e99f9f4
Compare
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.
I left some comments an questions as I don't understand how the tests have changed.
db272af
to
7aeedff
Compare
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.
Thanks a lot for your responses!
Left a minor suggestion, but LGTM.
@@ -367,11 +364,12 @@ def test_cratedb_collection_with_metadata() -> None: | |||
|
|||
|
|||
def test_cratedb_collection_no_embedding_dimension() -> None: | |||
"""Test end to end collection construction""" | |||
""" | |||
Verify that accessing a collection fails when addressed without dimensionality. |
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.
Verify that accessing a collection fails when addressed without dimensionality. | |
Verify that accessing a collection fails when addressed without specifying dimensios. |
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.
Thanks. Addressed by amending 153d178280c7:
Verify that addressing collections fails when not specifying dimensions.
153d178
to
84161f7
Compare
9e6e799
to
e32a572
Compare
It is a special adapter which provides similarity search across multiple collections. It can not be used for indexing documents.
The CrateDB adapter works a bit different compared to the pgvector adapter it is building upon: Because the dimensionality of the vector field needs to be specified at table creation time, but because it is also a runtime parameter in LangChain, the table creation needs to be delayed. In some cases, the tables do not exist yet, but this is only relevant for the case when the user requests to pre-delete the collection, using the `pre_delete_collection` argument. So, do the error handling only there instead, and _not_ on the generic data model utility functions.
84161f7
to
d8ecebe
Compare
About
It is a special adapter which provides similarity search across multiple collections. It can not be used for indexing documents.
Synopsis
References
This patch has been conceived based on a feature request by @thunderbug1. Thanks!