save_to_file


Description:

public void save_to_file (string filename) throws Error

Saves the FAISS index to a file.

This method is thread-safe and should be used instead of directly calling Faiss.write_index_fname() on the result of get_faiss_index().

Parameters:

filename

Path to the file where the index should be saved