Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3881

Help to get the right syntax for query statement - from v3 client to v4 client

$
0
0

Happy Friday @pon_raj !

So the Near Text operator is to find objects with the nearest vector to an input text.

Indeed you could insert some unrelated text and still retrieve an object because it vectorize the query input and it tries to find ‘ANN’ approximate nearest neighbor for vector-search queries.

The following operator can explain the distance in such search and shall return a far distance value:

  _additional {
    distance
  }   

See here:

However from what I understood you are trying to achieve, then I would highly recommend you → Hybrid Search which is the key to your case because Hybrid search results can favor the keyword component, the vector component or mix of both.

  • Use alpha operator of 1 is a pure vector search or;
  • An alpha of 0 is a pure keyword search or;
  • Play with the value to lean more towards keyword or vector component!

I hope this helps


Viewing all articles
Browse latest Browse all 3881

Trending Articles