Query n vectors of dimension d to the index. return at most k vectors. If there are not enough results for a query, the result array is padded with -1s.
Output of the search result.
Input vectors to search, size n * d.
The number of nearest neighbors to search for.
Static
fromStatic
fromConstruct an index from factory descriptor.
The index read.
Buffer to create index from.
Factory descriptor.
Optional
metric: MetricTypeMetric type (defaults to L2).
Static
readGenerated using TypeDoc
Index. Index that stores the full vectors and performs exhaustive search.
Param
The dimensionality of index.