ChrisOdney
ChrisOdney

Reputation: 6404

Python API documentation for FAISS

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

Upvotes: 3

Views: 5059

Answers (1)

noe
noe

Reputation: 2144

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.

Upvotes: 4

Related Questions