Closed mooreniemi closed 2 years ago
Hmm yes, I suppose this was either an oversight or a wish to keep things simple back then. In any case, a pull request for a function read_index_with_flags
and a safe IoFlag
abstraction would be appreciated.
K I will send PR. Is it expected binding generation wouldn't catch these const
s? I will recreate them manually unless they should be generated automatically somehow already.
Ah I see I should be checking the c_api
, right. So this:
https://github.com/facebookresearch/faiss/blob/main/c_api/index_io_c.h#L34
Reading Faiss documentation and related issues:
So I wanted to send an I/O flag in to
read_index
, as in this example.But currently, that doesn't appear possible with this crate's
read_index
method. Am I missing some other way of accomplishing this? Would you accept a PR to make available?