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