faiss.meta_indexes

Undocumented in source.

Members

Aliases

FaissIndexIDMap
alias FaissIndexIDMap = FaissIndex_H
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
FaissIndexIDMap2
alias FaissIndexIDMap2 = FaissIndex_H

same as IndexIDMap but also provides an efficient reconstruction implementation via a 2-way index

Functions

faiss_IndexIDMap2_cast
FaissIndexIDMap2* faiss_IndexIDMap2_cast(FaissIndex* )

attempt a dynamic cast to a IDMap2, thus checking check whether the underlying index type is IndexIDMap.

faiss_IndexIDMap2_construct_rev_map
int faiss_IndexIDMap2_construct_rev_map(FaissIndexIDMap2* index)

make the rev_map from scratch

faiss_IndexIDMap2_id_map
void faiss_IndexIDMap2_id_map(FaissIndexIDMap2* index, idx_t** p_id_map, size_t* p_size)

get a pointer to the index map's internal ID vector (the id_map field). The outputs of this function become invalid after any operation that can modify the index.

faiss_IndexIDMap2_new
int faiss_IndexIDMap2_new(FaissIndexIDMap2** p_index, FaissIndex* index)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap2_own_fields
int faiss_IndexIDMap2_own_fields(const(FaissIndexIDMap2)* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap2_set_own_fields
void faiss_IndexIDMap2_set_own_fields(FaissIndexIDMap2* , int )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap2_sub_index
FaissIndex* faiss_IndexIDMap2_sub_index(FaissIndexIDMap2* index)

get a pointer to the sub-index (the index field). The outputs of this function become invalid after any operation that can modify the index.

faiss_IndexIDMap_cast
FaissIndexIDMap* faiss_IndexIDMap_cast(FaissIndex* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap_id_map
void faiss_IndexIDMap_id_map(FaissIndexIDMap* index, idx_t** p_id_map, size_t* p_size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap_new
int faiss_IndexIDMap_new(FaissIndexIDMap** p_index, FaissIndex* index)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap_own_fields
int faiss_IndexIDMap_own_fields(const(FaissIndexIDMap)* )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap_set_own_fields
void faiss_IndexIDMap_set_own_fields(FaissIndexIDMap* , int )
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
faiss_IndexIDMap_sub_index
FaissIndex* faiss_IndexIDMap_sub_index(FaissIndexIDMap* index)

get a pointer to the sub-index (the index field). The outputs of this function become invalid after any operation that can modify the index.

Structs

FaissIndex_H
struct FaissIndex_H

get a pointer to the index map's internal ID vector (the id_map field). The outputs of this function become invalid after any operation that can modify the index.

Meta