The dimensionality of vectors.
Vector identifiers, size ntotal.
The type of index.
returns a boolean that indicates whether training is required.
Whether training is required.
Argument of the metric type.
The metric of the index.
Cells to search.
Cells to search.
The value to set.
The number of verctors currently indexed.
Add n vectors of dimension d to the index using the provided labels.
Input matrix, size n * d
Vector identifiers
Add n vectors of dimension d to the index with ID's.
Input matrix, size n * d
Vector identifiers
Merge the current index with another IndexIVFFlat instance.
The other IndexIVFFlat 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.
Input vectors to search, size n * d.
The number of nearest neighbors to search for.
Output of the search result.
Static
fromRead index from buffer.
Buffer to create index from.
The index read.
Static
fromStatic
mergeStatic
readRead index from a file.
File path to read.
The index read.
Generated using TypeDoc
IndexIVFFlat Index. Inverted file with stored vectors.
Param
Param
The dimensionality of index.
Param
Number of clusters.
Param
Metric type (defaults to L2).