94 xvecKnnExactIndexTag*
handle() const noexcept;
99 xvecExecutionContextTag* context_ =
nullptr;
100 xvecKnnExactIndexTag* handle_ =
nullptr;
RAII wrapper for xvecKnnExactIndexTag.
KnnExactIndex(KnnExactIndex &&other) noexcept
KnnExactIndex(const KnnExactIndex &)=delete
KnnExactIndex & operator=(const KnnExactIndex &)=delete
KnnExactIndex & operator=(KnnExactIndex &&other) noexcept
static KnnExactIndex fromFaissFile(xvecExecutionContextTag *context, const std::string &path)
Load a KNN index from a Faiss file.
static KnnExactIndex fromRawVectors(xvecExecutionContextTag *context, const xvecFloat32 *vectors, xvecVectorIdType vectorCount, xvecDimensionType dimension, xvecDistanceType distanceType)
Load a KNN index from raw float32 vectors.
xvecKnnExactIndexTag * handle() const noexcept
Get the underlying C API handle.
Exception types for C++ XVECTOR wrappers.
Core types, enums, and structures for the XVector library.
uint32_t xvecDimensionType
Type for vector dimension.
xvecDistanceType
Distance/similarity metrics for vector search.
float xvecFloat32
32-bit floating point type for vector components.
uint64_t xvecVectorIdType
Type for vector identifiers.