Function faiss::index::io::read_index

source ·
pub fn read_index<P>(file_name: P) -> Result<IndexImpl>where
    P: AsRef<str>,
Expand description

Read an index from a file.

Error

This function returns an error if the description contains any byte with the value \0 (since it cannot be converted to a C string), or if the internal index reading operation fails.