When you call this endpoint, it selects num
random vectors that were previously inserted.
For each of these vectors, it performs an ANN index search as well as a ground truth exhaustive search.
Recall is calculated as the ratio of matching vectors between the two search results. This endpoint also returns the average number of results returned from both the ANN index search and the exhaustive search (ideally, these are equal).
number of searches to run.
search for top_k nearest neighbors.
filter by attributes, see filtering parameters for more info.
use specific query vectors for the measurement. if omitted, sampled from index.
// Request payload
{
"num": 5,
"top_k": 10
}
// Response payload
{
"avg_recall": 1.0,
"avg_exhaustive_count": 10.0,
"avg_ann_count": 10.0
}
How to interpret this response:
avg_ann_count
equals avg_exhaustive_count
, meaning the approximate search returned the same number of results as the exhaustiveNote: To avoid abuse, recall queries are billed as N search queries, where N = num
* number of vectors in your index / 10,000. We only bill if the average recall is >0.9.