XVector
xvec_ivf_rabitq_index.hpp File Reference

C++ RAII wrapper for the XVECTOR IVF-RaBitQ index. More...

#include <string>
#include <xvector_cpp/xvec_error.hpp>
#include "xvector/xvec_ivf_rabitq.h"
#include "xvector/xvec_types.h"
Include dependency graph for xvec_ivf_rabitq_index.hpp:

Go to the source code of this file.

Classes

class  xvec::IvfRaBitQIndex
 RAII wrapper for xvecIvfRaBitQIndexTag. More...
 

Namespaces

 xvec
 

Detailed Description

C++ RAII wrapper for the XVECTOR IVF-RaBitQ index.

// Load from Faiss file (RAII)
auto index = xvec::IvfRaBitQIndex::fromFaissFile(ctx.handle(), "index.faiss");
// Use raw handle for C API interop
xvecIvfRaBitQSearchFineSearchOnly(ctx.handle(), index.handle(), &query, resultBuf, &timing);
// Index is automatically destroyed when out of scope
static IvfRaBitQIndex fromFaissFile(xvecExecutionContextTag *context, const std::string &path)
Load an IVF-RaBitQ index from a Faiss file.
xvecStatus xvecIvfRaBitQSearchFineSearchOnly(xvecExecutionContextTag *context, xvecIvfRaBitQIndexTag *indexHandle, xvecIvfRaBitQFineSearchQueryFloat32 *fineSearchQuery, xvecBufferTag *resultsBufferHandle, xvecIvfRaBitQSearchTiming *outTiming)
Performs an IVF-RaBitQ fine search only (skips coarse search).
C++ RAII wrapper for the XVECTOR IVF-RaBitQ index.

Definition in file xvec_ivf_rabitq_index.hpp.