Type Definition faiss::index::flat::FlatIndex

source ·
pub type FlatIndex = FlatIndexImpl;
Expand description

Alias for the native implementation of a flat index.

Implementations§

Create an independent clone of this index.

Errors

May result in a native error if the clone operation is not supported for the internal type of index.

Trait Implementations§

Whether the Index does not require training, or if training is done already
The total number of vectors indexed
The dimensionality of the indexed vectors
The metric type assumed by the index
Add new data vectors to the index. This assumes a C-contiguous memory slice of vectors, where the total number of vectors is x.len() / d. Read more
Add new data vectors to the index with IDs. This assumes a C-contiguous memory slice of vectors, where the total number of vectors is x.len() / d. Not all index types may support this operation. Read more
Train the underlying index with the given data.
Similar to search, but only provides the labels.
Perform a search for the k closest vectors to the given query vectors.
Perform a ranged search for the vectors closest to the given query vectors by the given radius. Read more
Clear the entire index.
Remove data vectors represented by IDs.