Skip to content

distances of vectors in the database #38374

Discussion options

You must be logged in to vote

Currently, there is no such interface.
If we don't return the embeddings, how can we know which entity is returned by query(X1<attribute<X2 and class=A, limit =1000)? Then how can we know the results belong to which entity?

If you are using in-memory index, the embeddings are loaded into memory, performance of query() is ok to return embeddings, maybe hundreds of milliseconds.

By the way, as the embeddings belong to different classes A B C, why not create a collection for each class?
collection_A for class A
collection_B for class B

embeddings = query(X1<attribute<X2, limit =1000)
results = collection_A.search(embeddings, filter = X1<with artibute <X2)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by maxshatskiy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@maxshatskiy
Comment options

@xiaofan-luan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants