Struct faiss::index::IndexImpl[][src]

pub struct IndexImpl { /* fields omitted */ }
Expand description

Native implementation of a Faiss Index running on the CPU.

Implementations

👎 Deprecated since 0.8.0:

Non-idiomatic name, prefer into_flat instead

Attempt a dynamic cast of an index to the flat index type.

Attempt a dynamic cast of an index to the flat index type.

Attempt a dynamic cast of an index to the IVF flat index type.

Attempt a dynamic cast of an index to the Scalar Quantizer index type.

Attempt a dynamic cast of an index to the IVF Scalar Quantizer index type.

👎 Deprecated since 0.8.0:

Non-idiomatic name, prefer into_lsh instead

Attempt a dynamic cast of an index to the LSH index type.

Attempt a dynamic cast of an index to the LSH index type.

Build a GPU index from the given CPU native index.

Errors

The operation fails if the index type does not provide GPU support.

Build a GPU index from the given CPU native index. The index residing in CPU memory is discarded in the process.

Errors

The operation fails if the index does not provide GPU support.

Build a GPU index from the given CPU native index.

Errors

The operation fails if the number of GPU resources and number of devices do not match, or the index does not provide GPU support.

Build a GPU index from the given CPU native index. The index residing in CPU memory is discarded in the process.

Errors

The operation fails if the number of GPU resources and number of devices do not match, or the index does not provide GPU support.

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

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Create an index using the given pointer to a native object. Read more

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.

Index verbosity level

Set Index verbosity level

Retrieve a pointer to the native index object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.