Merge the current index with another IndexFlatIP instance.
The other IndexFlatIP instance to merge from.
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 fromRead index from buffer.
The index read.
Buffer to create index from.
Static fromConstruct an index from factory descriptor.
The index read.
Buffer to create index from.
Factory descriptor.
Optional metric: MetricTypeMetric type (defaults to L2).
Static readRead index from a file.
The index read.
File path to read.
Generated using TypeDoc
IndexFlatIP Index. Index that stores the full vectors and performs
maximum inner productsearch.Param
The dimensionality of index.