Merge the current index with another IndexFlatL2 instance.
The other IndexFlatL2 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
IndexFlatL2 Index. IndexFlatL2 that stores the full vectors and performs
squared L2
search.Param
The dimensionality of index.