Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to FAQ, farthest neighbor #3334

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions en/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,14 @@ $ vespa query 'select * from music where true' \
#### Some of the query results have too many hits from the same source, how to create a diverse result set?
See [result diversity](/en/result-diversity.html) for strategies on how to create result sets from different sources.

#### How to find most distant neighbor in a embedding field called clip_query_embedding?
If you want to search for the most dissimilar items,
you can with angular distance multiply your `clip_query_embedding` by the scalar -1.
Then you are searching for the points that are closest to the point
which is the farthest away from your `clip_query_embedding`.

Also see a [pyvespa example](https://pyvespa.readthedocs.io/en/latest/examples/pyvespa-examples.html#Neighbors).


{:.faq-section}
### Feeding
Expand Down
Loading