Byte size of each encoded vector.
Encoded dataset, size ntotal * codeSize.
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.
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 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.
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
readRead index from a file.
File path to read.
The index read.
Generated using TypeDoc
IndexFlatIP Index. Index that stores the full vectors and performs
maximum inner product
search.Param
The dimensionality of index.