Python API documentation for FAISS

2.4k views Asked by At

I am searching for a Python API documentation for FAISS, unable to find it. The wiki page says the python translation is very close to the C++ classes whose documentation can be found here

1

There are 1 answers

0
noe On

The Python version of Faiss contains just wrappers to the C++ functions (generated with Swig), so the Python functions match the C++ ones. From their wiki:

Most examples are in Python for brievity, but the C++ API is exactly the same, so the translation for one to the other is trivial most of the times.

You can use their "getting stated" page, which contains Python examples, as well as their "Python-C++ code-snippets" page, which contains links to jupyter notebooks with sample Python code.