AnnoySearch | R Documentation |
Search an Annoy approximate nearest neighbor index
AnnoySearch(index, query, k, search.k = -1, include.distance = TRUE)
query |
A set of data to be queried against the index |
k |
Number of neighbors |
search.k |
During the query it will inspect up to search_k nodes which gives you a run-time tradeoff between better accuracy and speed. |
include.distance |
Include the corresponding distances in the result |
Annoy |
index, built with AnnoyBuildIndex |
A list with 'nn.idx' (for each element in 'query', the index of the nearest k elements in the index) and 'nn.dists' (the distances of the nearest k elements)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.