Expand description
§faiss-next-sys
Raw FFI bindings to Faiss C API.
This crate provides unsafe Rust bindings to the Faiss C library. For a safe, idiomatic API, use faiss-next.
§Features
- Pre-generated bindings for common platforms
- Automatic Faiss version detection
- Multi-version binding support (1.14.x, 1.15.x, …)
- Optional runtime binding generation via
bindgen - CUDA support (Linux and Windows)
§Supported Platforms
| OS | Architecture | CPU | CUDA |
|---|---|---|---|
| macOS (Apple Silicon) | aarch64 (M1/M2/M3) | ✅ | ❌ |
| Linux | x86_64 | ✅ | ✅ |
| Windows | x86_64 | ✅ | ✅ |
Legend:
- ✅ Fully supported with pre-generated bindings
- ❌ Not supported
Notes:
- CUDA is supported on Linux x86_64 and Windows x86_64
§Getting Started
§Prerequisites
Install Faiss with C API enabled:
macOS (Homebrew):
brew install faissLinux (from source):
git clone https://github.com/facebookresearch/faiss.git
cd faiss
mkdir build && cd build
cmake -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON ..
make -j$(nproc)
sudo make install
sudo ldconfigWindows:
Build Faiss from source with C API enabled. A pre-configured build is available at:
git clone -b windows-build https://github.com/yexiangyu/faiss.git
cd faiss
mkdir build && cd build
cmake -A x64 -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON ^
-DFAISS_ENABLE_GPU=ON ^
-DCMAKE_INSTALL_PREFIX=C:/tools/faiss ..
cmake --build . --config Release
cmake --install . --config ReleaseAfter installation, set environment variables:
set FAISS_INCLUDE_DIR=C:\tools\faiss\include
set FAISS_LIB_DIR=C:\tools\faiss\libAlternatively, place Faiss in the default location:
C:\tools\faiss(include:C:\tools\faiss\include, lib:C:\tools\faiss\lib)
Or other supported locations:
C:\faissC:\Program Files\faissC:\Program Files (x86)\faiss
§Installation
This crate is typically used as a dependency of faiss-next. Add to Cargo.toml:
[dependencies]
faiss-next-sys = "0.6"§Environment Variables
| Variable | Description |
|---|---|
FAISS_INCLUDE_DIR | Direct path to Faiss include directory (e.g., C:\faiss\include) |
FAISS_LIB_DIR | Direct path to Faiss lib directory (e.g., C:\faiss\lib) |
FAISS_DIR | Path to Faiss installation root (must contain include/ and lib/) |
LD_LIBRARY_PATH | Linux library search path |
DYLD_LIBRARY_PATH | macOS library search path |
PATH | Windows DLL search path |
Priority order:
FAISS_INCLUDE_DIR+FAISS_LIB_DIR(direct paths, recommended for Windows)FAISS_DIR(installation root)- Platform-specific default paths
§Feature Flags
| Flag | Description |
|---|---|
cuda | Enable CUDA support (Linux x86_64 and Windows x86_64 only) |
bindgen | Generate bindings at compile time |
Platform restrictions:
cudafeature is only available on Linux x86_64 and Windows x86_64- Using
cudafeature on macOS will result in a compile error
Note: The bindgen feature requires LLVM/Clang to be installed:
- Linux:
sudo apt install llvm-dev libclang-dev(Ubuntu/Debian) - macOS:
brew install llvm - Windows: Install LLVM from https://llvm.org/builds/ and ensure
libclangis in your PATH
§Version Detection
The build script automatically detects the installed Faiss version by parsing include/faiss/Index.h:
#define FAISS_VERSION_MAJOR 1
#define FAISS_VERSION_MINOR 14
#define FAISS_VERSION_PATCH 0§Version Compatibility
- Minimum version: 1.14.0
- Loose mode: Versions newer than tested versions work with a compile warning
When a newer Faiss version is detected, the build system:
- Emits a warning about compatibility
- Uses the closest available binding version
- Attempts to compile and run
§Binding Generation
§Pre-generated Bindings
Bindings are pre-generated and committed to the repository:
src/bindings/
├── mod.rs # Version selection
└── v1_14/
├── mod.rs # Platform selection
├── macos_aarch64.rs
├── linux_x86_64.rs
├── linux_x86_64_cuda.rs
├── windows_x86_64.rs
└── windows_x86_64_cuda.rs§Generate New Bindings
To generate bindings for your platform (e.g., when using a custom Faiss version):
cargo build --features bindgen§API Structure
// Types
pub type idx_t = i64;
// Index operations
pub fn faiss_IndexFlat_new(...) -> *mut FaissIndexFlat;
pub fn faiss_Index_add(...);
pub fn faiss_Index_search(...);
// IVF operations
pub fn faiss_IndexIVF_new(...);
pub fn faiss_IndexIVF_set_nprobe(...);
// Distance computations
pub fn faiss_pairwise_L2sqr(...);
pub fn faiss_fvec_inner_products_ny(...);
// ... and more§Linking
The crate links against:
libfaiss- Core Faiss librarylibfaiss_c- C API wrapper
Ensure these libraries are in your library search path.
§Documentation
§License
MIT License
Structs§
- Faiss
Buffer - Faiss
Buffer List_ H - Faiss
Clustering Iteration Stats_ H - Faiss
Clustering Parameters - Faiss
Clustering_ H - Faiss
CustomIO Reader_ H - Faiss
CustomIO Writer_ H - Faiss
Distance Computer_ H - FaissID
Selector And_ H - FaissID
Selector Batch_ H - FaissID
Selector Bitmap_ H - FaissID
Selector Not_ H - FaissID
Selector Or_ H - FaissID
Selector Range_ H - FaissID
SelectorX Or_ H - FaissID
Selector_ H - FaissIO
Reader_ H - FaissIO
Writer_ H - Faiss
Index Binary_ H - Faiss
IndexIVF Stats - Faiss
Index_ H - Faiss
Parameter Range_ H - Faiss
Parameter Space_ H - Faiss
Range Query Result_ H - Faiss
Range Search Partial Result_ H - Faiss
Range Search Result_ H - Faiss
Search Parameters_ H - Faiss
Vector Transform_ H
Enums§
Constants§
Functions§
- faiss_
Buffer ⚠List_ add - faiss_
Buffer ⚠List_ append_ buffer - faiss_
Buffer ⚠List_ buffer_ size - faiss_
Buffer ⚠List_ copy_ range - faiss_
Buffer ⚠List_ free - faiss_
Buffer ⚠List_ new - faiss_
Buffer ⚠List_ wp - faiss_
Centering ⚠Transform_ free - faiss_
Centering ⚠Transform_ new_ with - faiss_
Clustering ⚠Iteration Stats_ imbalance_ factor - faiss_
Clustering ⚠Iteration Stats_ nsplit - faiss_
Clustering ⚠Iteration Stats_ obj - faiss_
Clustering ⚠Iteration Stats_ time - faiss_
Clustering ⚠Iteration Stats_ time_ search - faiss_
Clustering ⚠Parameters_ init - faiss_
Clustering_ ⚠centroids - faiss_
Clustering_ ⚠d - faiss_
Clustering_ ⚠decode_ block_ size - faiss_
Clustering_ ⚠free - faiss_
Clustering_ ⚠frozen_ centroids - faiss_
Clustering_ ⚠int_ centroids - faiss_
Clustering_ ⚠iteration_ stats - faiss_
Clustering_ ⚠k - faiss_
Clustering_ ⚠max_ points_ per_ centroid - faiss_
Clustering_ ⚠min_ points_ per_ centroid - faiss_
Clustering_ ⚠new - faiss_
Clustering_ ⚠new_ with_ params - faiss_
Clustering_ ⚠niter - faiss_
Clustering_ ⚠nredo - faiss_
Clustering_ ⚠seed - faiss_
Clustering_ ⚠spherical - faiss_
Clustering_ ⚠train - faiss_
Clustering_ ⚠update_ index - faiss_
Clustering_ ⚠verbose - faiss_
CustomIO ⚠Reader_ free - faiss_
CustomIO ⚠Reader_ new - faiss_
CustomIO ⚠Writer_ free - faiss_
CustomIO ⚠Writer_ new - faiss_
Distance ⚠Computer_ free - faiss_
Distance ⚠Computer_ set_ query - faiss_
Distance ⚠Computer_ symmetric_ dis - faiss_
Distance ⚠Computer_ vector_ to_ query_ dis - faiss_
IDSelector ⚠And_ new - faiss_
IDSelector ⚠Batch_ mask - faiss_
IDSelector ⚠Batch_ nbits - faiss_
IDSelector ⚠Batch_ new - faiss_
IDSelector ⚠Bitmap_ bitmap - faiss_
IDSelector ⚠Bitmap_ free - faiss_
IDSelector ⚠Bitmap_ n - faiss_
IDSelector ⚠Bitmap_ new - faiss_
IDSelector ⚠Not_ new - faiss_
IDSelector ⚠Or_ new - faiss_
IDSelector ⚠Range_ free - faiss_
IDSelector ⚠Range_ imax - faiss_
IDSelector ⚠Range_ imin - faiss_
IDSelector ⚠Range_ new - faiss_
IDSelectorX ⚠Or_ new - faiss_
IDSelector_ ⚠free - faiss_
IDSelector_ ⚠is_ member - faiss_
IOReader_ ⚠free - faiss_
IOWriter_ ⚠free - faiss_
ITQMatrix_ ⚠free - faiss_
ITQMatrix_ ⚠new_ with - faiss_
ITQTransform_ ⚠do_ pca - faiss_
ITQTransform_ ⚠free - faiss_
ITQTransform_ ⚠new_ with - faiss_
Index ⚠Binary_ add - faiss_
Index ⚠Binary_ add_ with_ ids - faiss_
Index ⚠Binary_ assign - faiss_
Index ⚠Binary_ d - faiss_
Index ⚠Binary_ free - faiss_
Index ⚠Binary_ is_ trained - faiss_
Index ⚠Binary_ metric_ type - faiss_
Index ⚠Binary_ ntotal - faiss_
Index ⚠Binary_ range_ search - faiss_
Index ⚠Binary_ reconstruct - faiss_
Index ⚠Binary_ reconstruct_ n - faiss_
Index ⚠Binary_ remove_ ids - faiss_
Index ⚠Binary_ reset - faiss_
Index ⚠Binary_ search - faiss_
Index ⚠Binary_ search_ with_ params - faiss_
Index ⚠Binary_ set_ verbose - faiss_
Index ⚠Binary_ train - faiss_
Index ⚠Binary_ verbose - faiss_
Index ⚠Flat1D_ cast - faiss_
Index ⚠Flat1D_ free - faiss_
Index ⚠Flat1D_ new - faiss_
Index ⚠Flat1D_ new_ with - faiss_
Index ⚠Flat1D_ update_ permutation - faiss_
Index ⚠FlatIP_ cast - faiss_
Index ⚠FlatIP_ free - faiss_
Index ⚠FlatIP_ new - faiss_
Index ⚠FlatIP_ new_ with - faiss_
Index ⚠Flat L2_ cast - faiss_
Index ⚠Flat L2_ free - faiss_
Index ⚠Flat L2_ new - faiss_
Index ⚠Flat L2_ new_ with - faiss_
Index ⚠Flat_ cast - faiss_
Index ⚠Flat_ compute_ distance_ subset - faiss_
Index ⚠Flat_ free - faiss_
Index ⚠Flat_ new - faiss_
Index ⚠Flat_ new_ with - faiss_
Index ⚠Flat_ xb - faiss_
IndexID ⚠Map2_ cast - faiss_
IndexID ⚠Map2_ construct_ rev_ map - faiss_
IndexID ⚠Map2_ id_ map - faiss_
IndexID ⚠Map2_ new - faiss_
IndexID ⚠Map2_ own_ fields - faiss_
IndexID ⚠Map2_ set_ own_ fields - faiss_
IndexID ⚠Map2_ sub_ index - faiss_
IndexID ⚠Map_ cast - faiss_
IndexID ⚠Map_ id_ map - faiss_
IndexID ⚠Map_ new - faiss_
IndexID ⚠Map_ own_ fields - faiss_
IndexID ⚠Map_ set_ own_ fields - faiss_
IndexID ⚠Map_ sub_ index - faiss_
IndexIVF ⚠Flat_ add_ core - faiss_
IndexIVF ⚠Flat_ cast - faiss_
IndexIVF ⚠Flat_ free - faiss_
IndexIVF ⚠Flat_ new - faiss_
IndexIVF ⚠Flat_ new_ with - faiss_
IndexIVF ⚠Flat_ new_ with_ metric - faiss_
IndexIVF ⚠Flat_ nlist - faiss_
IndexIVF ⚠Flat_ nprobe - faiss_
IndexIVF ⚠Flat_ own_ fields - faiss_
IndexIVF ⚠Flat_ quantizer - faiss_
IndexIVF ⚠Flat_ quantizer_ trains_ alone - faiss_
IndexIVF ⚠Flat_ set_ nprobe - faiss_
IndexIVF ⚠Flat_ set_ own_ fields - faiss_
IndexIVF ⚠Flat_ update_ vectors - faiss_
IndexIVF ⚠Scalar Quantizer_ add_ core - faiss_
IndexIVF ⚠Scalar Quantizer_ cast - faiss_
IndexIVF ⚠Scalar Quantizer_ free - faiss_
IndexIVF ⚠Scalar Quantizer_ new - faiss_
IndexIVF ⚠Scalar Quantizer_ new_ with - faiss_
IndexIVF ⚠Scalar Quantizer_ new_ with_ metric - faiss_
IndexIVF ⚠Scalar Quantizer_ nlist - faiss_
IndexIVF ⚠Scalar Quantizer_ nprobe - faiss_
IndexIVF ⚠Scalar Quantizer_ own_ fields - faiss_
IndexIVF ⚠Scalar Quantizer_ quantizer - faiss_
IndexIVF ⚠Scalar Quantizer_ set_ nprobe - faiss_
IndexIVF ⚠Scalar Quantizer_ set_ own_ fields - faiss_
IndexIVF ⚠Stats_ reset - faiss_
IndexIVF_ ⚠cast - faiss_
IndexIVF_ ⚠copy_ subset_ to - faiss_
IndexIVF_ ⚠free - faiss_
IndexIVF_ ⚠get_ list_ size - faiss_
IndexIVF_ ⚠imbalance_ factor - faiss_
IndexIVF_ ⚠invlists_ get_ ids - faiss_
IndexIVF_ ⚠make_ direct_ map - faiss_
IndexIVF_ ⚠merge_ from - faiss_
IndexIVF_ ⚠nlist - faiss_
IndexIVF_ ⚠nprobe - faiss_
IndexIVF_ ⚠own_ fields - faiss_
IndexIVF_ ⚠print_ stats - faiss_
IndexIVF_ ⚠quantizer - faiss_
IndexIVF_ ⚠quantizer_ trains_ alone - faiss_
IndexIVF_ ⚠search_ preassigned - faiss_
IndexIVF_ ⚠set_ nprobe - faiss_
IndexIVF_ ⚠set_ own_ fields - faiss_
IndexIVF_ ⚠train_ encoder - faiss_
IndexLSH_ ⚠cast - faiss_
IndexLSH_ ⚠code_ size - faiss_
IndexLSH_ ⚠free - faiss_
IndexLSH_ ⚠nbits - faiss_
IndexLSH_ ⚠new - faiss_
IndexLSH_ ⚠new_ with_ options - faiss_
IndexLSH_ ⚠rotate_ data - faiss_
IndexLSH_ ⚠train_ thresholds - faiss_
Index ⚠PreTransform_ cast - faiss_
Index ⚠PreTransform_ free - faiss_
Index ⚠PreTransform_ index - faiss_
Index ⚠PreTransform_ new - faiss_
Index ⚠PreTransform_ new_ with - faiss_
Index ⚠PreTransform_ new_ with_ transform - faiss_
Index ⚠PreTransform_ own_ fields - faiss_
Index ⚠PreTransform_ prepend_ transform - faiss_
Index ⚠PreTransform_ set_ own_ fields - faiss_
Index ⚠Refine Flat_ cast - faiss_
Index ⚠Refine Flat_ free - faiss_
Index ⚠Refine Flat_ k_ factor - faiss_
Index ⚠Refine Flat_ new - faiss_
Index ⚠Refine Flat_ own_ fields - faiss_
Index ⚠Refine Flat_ set_ k_ factor - faiss_
Index ⚠Refine Flat_ set_ own_ fields - faiss_
Index ⚠Replicas_ add_ replica - faiss_
Index ⚠Replicas_ at - faiss_
Index ⚠Replicas_ free - faiss_
Index ⚠Replicas_ new - faiss_
Index ⚠Replicas_ new_ with_ options - faiss_
Index ⚠Replicas_ own_ fields - faiss_
Index ⚠Replicas_ remove_ replica - faiss_
Index ⚠Replicas_ set_ own_ fields - faiss_
Index ⚠Scalar Quantizer_ cast - faiss_
Index ⚠Scalar Quantizer_ free - faiss_
Index ⚠Scalar Quantizer_ new - faiss_
Index ⚠Scalar Quantizer_ new_ with - faiss_
Index ⚠Shards_ add_ shard - faiss_
Index ⚠Shards_ at - faiss_
Index ⚠Shards_ free - faiss_
Index ⚠Shards_ new - faiss_
Index ⚠Shards_ new_ with_ options - faiss_
Index ⚠Shards_ own_ fields - faiss_
Index ⚠Shards_ remove_ shard - faiss_
Index ⚠Shards_ set_ own_ fields - faiss_
Index ⚠Shards_ set_ successive_ ids - faiss_
Index ⚠Shards_ successive_ ids - faiss_
Index_ ⚠add - faiss_
Index_ ⚠add_ with_ ids - faiss_
Index_ ⚠assign - faiss_
Index_ ⚠compute_ residual - faiss_
Index_ ⚠compute_ residual_ n - faiss_
Index_ ⚠d - faiss_
Index_ ⚠free - faiss_
Index_ ⚠is_ trained - faiss_
Index_ ⚠metric_ type - faiss_
Index_ ⚠ntotal - faiss_
Index_ ⚠range_ search - faiss_
Index_ ⚠reconstruct - faiss_
Index_ ⚠reconstruct_ n - faiss_
Index_ ⚠remove_ ids - faiss_
Index_ ⚠reset - faiss_
Index_ ⚠sa_ code_ size - faiss_
Index_ ⚠sa_ decode - faiss_
Index_ ⚠sa_ encode - faiss_
Index_ ⚠search - faiss_
Index_ ⚠search_ with_ params - faiss_
Index_ ⚠set_ verbose - faiss_
Index_ ⚠train - faiss_
Index_ ⚠verbose - faiss_
Linear ⚠Transform_ free - faiss_
Linear ⚠Transform_ have_ bias - faiss_
Linear ⚠Transform_ is_ orthonormal - faiss_
Linear ⚠Transform_ set_ is_ orthonormal - faiss_
Linear ⚠Transform_ transform_ transpose - faiss_
Normalization ⚠Transform_ free - faiss_
Normalization ⚠Transform_ new_ with - faiss_
Normalization ⚠Transform_ norm - faiss_
OPQMatrix_ ⚠free - faiss_
OPQMatrix_ ⚠new_ with - faiss_
OPQMatrix_ ⚠niter - faiss_
OPQMatrix_ ⚠niter_ pq - faiss_
OPQMatrix_ ⚠set_ niter - faiss_
OPQMatrix_ ⚠set_ niter_ pq - faiss_
OPQMatrix_ ⚠set_ verbose - faiss_
OPQMatrix_ ⚠verbose - faiss_
PCAMatrix_ ⚠balanced_ bins - faiss_
PCAMatrix_ ⚠eigen_ power - faiss_
PCAMatrix_ ⚠free - faiss_
PCAMatrix_ ⚠new_ with - faiss_
PCAMatrix_ ⚠random_ rotation - faiss_
PCAMatrix_ ⚠set_ balanced_ bins - faiss_
Parameter ⚠Range_ name - faiss_
Parameter ⚠Range_ values - faiss_
Parameter ⚠Space_ add_ range - faiss_
Parameter ⚠Space_ combination_ name - faiss_
Parameter ⚠Space_ display - faiss_
Parameter ⚠Space_ free - faiss_
Parameter ⚠Space_ n_ combinations - faiss_
Parameter ⚠Space_ new - faiss_
Parameter ⚠Space_ set_ index_ parameter - faiss_
Parameter ⚠Space_ set_ index_ parameter_ binary - faiss_
Parameter ⚠Space_ set_ index_ parameters - faiss_
Parameter ⚠Space_ set_ index_ parameters_ binary - faiss_
Parameter ⚠Space_ set_ index_ parameters_ cno - faiss_
Parameter ⚠Space_ set_ index_ parameters_ cno_ binary - faiss_
Random ⚠Rotation Matrix_ free - faiss_
Random ⚠Rotation Matrix_ new_ with - faiss_
Range ⚠Query Result_ add - faiss_
Range ⚠Query Result_ nres - faiss_
Range ⚠Query Result_ pres - faiss_
Range ⚠Query Result_ qno - faiss_
Range ⚠Search Partial Result_ finalize - faiss_
Range ⚠Search Partial Result_ new - faiss_
Range ⚠Search Partial Result_ new_ result - faiss_
Range ⚠Search Partial Result_ res - faiss_
Range ⚠Search Partial Result_ set_ lims - faiss_
Range ⚠Search Result_ buffer_ size - faiss_
Range ⚠Search Result_ do_ allocation - faiss_
Range ⚠Search Result_ free - faiss_
Range ⚠Search Result_ labels - faiss_
Range ⚠Search Result_ lims - faiss_
Range ⚠Search Result_ new - faiss_
Range ⚠Search Result_ new_ with - faiss_
Range ⚠Search Result_ nq - faiss_
Remap ⚠Dimensions Transform_ free - faiss_
Remap ⚠Dimensions Transform_ new_ with - faiss_
Search ⚠ParametersIVF_ cast - faiss_
Search ⚠ParametersIVF_ free - faiss_
Search ⚠ParametersIVF_ max_ codes - faiss_
Search ⚠ParametersIVF_ new - faiss_
Search ⚠ParametersIVF_ new_ with - faiss_
Search ⚠ParametersIVF_ nprobe - faiss_
Search ⚠ParametersIVF_ sel - faiss_
Search ⚠ParametersIVF_ set_ max_ codes - faiss_
Search ⚠ParametersIVF_ set_ nprobe - faiss_
Search ⚠Parameters_ free - faiss_
Search ⚠Parameters_ new - faiss_
Vector ⚠Transform_ apply - faiss_
Vector ⚠Transform_ apply_ noalloc - faiss_
Vector ⚠Transform_ d_ in - faiss_
Vector ⚠Transform_ d_ out - faiss_
Vector ⚠Transform_ free - faiss_
Vector ⚠Transform_ is_ trained - faiss_
Vector ⚠Transform_ reverse_ transform - faiss_
Vector ⚠Transform_ train - faiss_
clone_ ⚠index - faiss_
clone_ ⚠index_ binary - faiss_
fvec_ ⚠L2sqr_ ny - faiss_
fvec_ ⚠inner_ products_ ny - faiss_
fvec_ ⚠norm_ L2sqr - faiss_
fvec_ ⚠norms_ L2 - faiss_
fvec_ ⚠norms_ L2sqr - faiss_
fvec_ ⚠renorm_ L2 - faiss_
get_ ⚠distance_ compute_ blas_ database_ bs - faiss_
get_ ⚠distance_ compute_ blas_ query_ bs - faiss_
get_ ⚠distance_ compute_ blas_ threshold - faiss_
get_ ⚠distance_ compute_ min_ k_ reservoir - faiss_
get_ ⚠indexIVF_ stats - faiss_
get_ ⚠last_ error - faiss_
index_ ⚠binary_ factory - faiss_
index_ ⚠factory - faiss_
kmeans_ ⚠clustering - faiss_
pairwise_ ⚠L2sqr - faiss_
pairwise_ ⚠L2sqr_ with_ defaults - faiss_
read_ ⚠Vector Transform_ fname - faiss_
read_ ⚠index - faiss_
read_ ⚠index_ binary - faiss_
read_ ⚠index_ binary_ custom - faiss_
read_ ⚠index_ binary_ fname - faiss_
read_ ⚠index_ custom - faiss_
read_ ⚠index_ fname - faiss_
set_ ⚠distance_ compute_ blas_ database_ bs - faiss_
set_ ⚠distance_ compute_ blas_ query_ bs - faiss_
set_ ⚠distance_ compute_ blas_ threshold - faiss_
set_ ⚠distance_ compute_ min_ k_ reservoir - faiss_
write_ ⚠index - faiss_
write_ ⚠index_ binary - faiss_
write_ ⚠index_ binary_ custom - faiss_
write_ ⚠index_ binary_ fname - faiss_
write_ ⚠index_ custom - faiss_
write_ ⚠index_ fname - version_
tuple
Type Aliases§
- FILE
- Faiss
Buffer List - Faiss
Centering Transform - Faiss
Clustering - Faiss
Clustering Iteration Stats - Faiss
CustomIO Reader - Faiss
CustomIO Writer - Faiss
Distance Computer - FaissID
Selector - FaissID
Selector And - FaissID
Selector Batch - FaissID
Selector Bitmap - FaissID
Selector Not - FaissID
Selector Or - FaissID
Selector Range - FaissID
SelectorX Or - FaissIO
Reader - FaissIO
Writer - FaissITQ
Matrix - FaissITQ
Transform - Faiss
Index - Faiss
Index Binary - Faiss
Index Flat - Faiss
Index Flat1D - Faiss
Index FlatIP - Faiss
Index Flat L2 - Faiss
IndexID Map - Faiss
IndexID Map2 - Faiss
IndexIVF - Faiss
IndexIVF Flat - Faiss
IndexIVF Scalar Quantizer - Faiss
IndexLSH - Faiss
Index PreTransform - Faiss
Index Refine Flat - Faiss
Index Replicas - Faiss
Index Scalar Quantizer - Faiss
Index Shards - Faiss
Linear Transform - Faiss
Normalization Transform - FaissOPQ
Matrix - FaissPCA
Matrix - Faiss
Parameter Range - Faiss
Parameter Space - Faiss
Random Rotation Matrix - Faiss
Range Query Result - Faiss
Range Search Partial Result - Faiss
Range Search Result - Faiss
Remap Dimensions Transform - Faiss
Search Parameters - Faiss
Search ParametersIVF - Faiss
Vector Transform - faiss_
idx_ t - idx_t