Use RcppAnnoy to rapidly retrieve the n
most closest representation of a text.
1 | get_neighbors_from_vector(vec, annoy_model, n, search_k)
|
vec |
numeric containing the pivot vector |
annoy_model |
RcppAnnoy model |
n |
number of elements to retrieve |
search_k |
number of nodes to search in (RcppAnnoy parameter). Higher is better and slower. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.