faiss.index_io

Undocumented in source.

Members

Functions

faiss_read_index
int faiss_read_index(FILE* f, int io_flags, FaissIndex** p_out)

Read index from a file. This is equivalent to faiss:read_index when a file descriptor is given.

faiss_read_index_fname
int faiss_read_index_fname(const(char)* fname, int io_flags, FaissIndex** p_out)

Read index from a file. This is equivalent to faiss:read_index when a file path is given.

faiss_write_index
int faiss_write_index(const(FaissIndex)* idx, FILE* f)

Write index to a file. This is equivalent to faiss::write_index when a file descriptor is provided.

faiss_write_index_fname
int faiss_write_index_fname(const(FaissIndex)* idx, const(char)* fname)

Write index to a file. This is equivalent to faiss::write_index when a file path is provided.

Manifest constants

FAISS_IO_FLAG_MMAP
enum FAISS_IO_FLAG_MMAP;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FAISS_IO_FLAG_READ_ONLY
enum FAISS_IO_FLAG_READ_ONLY;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta