File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,14 @@ $ vespa query 'select * from music where true' \
406
406
#### Some of the query results have too many hits from the same source, how to create a diverse result set?
407
407
See [ result diversity] ( /en/result-diversity.html ) for strategies on how to create result sets from different sources.
408
408
409
+ #### How to find most distant neighbor in a embedding field called clip_query_embedding?
410
+ If you want to search for the most dissimilar items,
411
+ you can with angular distance multiply your ` clip_query_embedding ` by the scalar -1.
412
+ Then you are searching for the points that are closest to the point
413
+ which is the farthest away from your ` clip_query_embedding ` .
414
+
415
+ Also see a [ pyvespa example] ( https://pyvespa.readthedocs.io/en/latest/examples/pyvespa-examples.html#Neighbors ) .
416
+
409
417
410
418
{:.faq-section}
411
419
### Feeding
You can’t perform that action at this time.
0 commit comments