Define vector store interface#969
Conversation
35194a2 to
33cf8ec
Compare
|
@o-love Any need for pure filtered search without similarity score? I think just SQL would be better for that. I've removed the filter-only search. |
33cf8ec to
86c39a1
Compare
| self, | ||
| *, | ||
| collection: str, | ||
| query_vector: list[float], |
There was a problem hiding this comment.
I was wondering if its possible to accept and array as well as a list with the Sequence[float] type.
I feel like we are generally overusing/enforcing python's lists instead of using arrays (either numpy or stdlib arrays).
There was a problem hiding this comment.
Numpy arrays don't work with Sequence[float].
I was thinking to use list[float] because it's easy to guarantee behaviors work.
If we allow NumPy/PyTorch, it's more work to check the type at runtime, since the type hint would say nothing about the dimensions of the NDArray/Tensor.
There was a problem hiding this comment.
I've changed it to Sequence to support tuples and array.array.
|
Before merge, I want to review the index creation parameters. |
a05d1f0 to
3cc5c7e
Compare
|
@edwinyyyu do you want to merge it? |
|
I reviewed several vector databases and it appears that there's a mix of ones that can take a collection name directly for performing data operations and ones that return a handle to a collection. I will change this to use handles. |
|
Making it very barebones because there's a lot of fragmentation between different vector database providers. |
|
Notes:
|
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
Signed-off-by: Edwin Yu <[email protected]>
745acd0 to
a41437c
Compare
Purpose of the change
Whereas:
VectorGraphStoreinterface is harder to implement with a pure vector database.Thus:
Description
Add a new ABC named
VectorStoreto wrap vector databases.Will be part of larger refactor.
Type of change
[Please delete options that are not relevant.]
How Has This Been Tested?
No tests for interface.
Checklist
Maintainer Checklist