Is there a way to find dissimilar objects from weaviate
Yes, there is (kind of - depending on whether you mean “least similar”, or opposite/antonyms - antonyms are harder).
Please take a look at this: Similarity / Vector search | Weaviate - vector database
Thanks for the quick reply ! Could you please share how to query these negative vectors as mentioned in the link to find least similar objects? Didn’t find any example
Could someone please assist on how to find dissimilar objects? Need some python code examples to query negative vectors.
Thanks in advance.
Hi @sriparna - by negative vectors we mean a negative of the vector object - so if it’s [0.1, 0.2, -0.4]
a negative would be [-0.1, -0.2, 0.4]
If you have it as a Python list like vector
you can get the negative by:
neg_vector = [-i for i in vector]
So you could grab the vector of the query like shown here: (Read objects | Weaviate - vector database)
And run a vector search like:
(Similarity / Vector search | Weaviate - vector database)