Faiss/en
Faiss is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any size, up to ones that possibly do not fit in RAM. It also contains supporting code for evaluation and parameter tuning. Faiss is written in C++ with complete wrappers for Python (versions 2 and 3). Some of the most useful algorithms are implemented on GPU. It is developed primarily at Meta AI Research with help from external contributors.
Python bindings¶
The module contains bindings for multiple Python versions. To discover which are the compatible Python versions, run
Or search directlyfaiss-cpu, by running
where X.Y.Z represents the desired version.
Usage¶
-
Load the required modules.
whereX.Y.Zrepresents the desired version. -
Import Faiss.
Tip
If the command displays nothing, the import was successful.
Available Python packages¶
Other Python packages depend on faiss-cpu or faiss-gpu bindings in order to be installed.
The faiss module provides:
* faiss
* faiss-gpu
* faiss-cpu
With the faiss module loaded, package dependency for the above extensions will be satisfied.