60 const char* indexFilePath,
61 xvecIvfFlatIndexTag** outIndexHandle);
108 xvecIvfFlatIndexTag** outIndexHandle);
125 xvecIvfFlatIndexTag* indexHandle);
181 xvecIvfFlatIndexTag* indexHandle,
183 xvecBufferTag* resultsBufferHandle,
FAISS-free description of an IVF-Flat index.
xvecDistanceType distanceType
Distance metric.
xvecClusterIdType numClusters
Number of IVF clusters (nlist).
const xvecVectorIdType * listSizes
Vectors per cluster [numClusters]; entries sum to numVectors.
const xvecVectorIdType * ids
Original id per vector [numVectors], in the same grouped order.
const xvecFloat32 * vectors
Vectors grouped by cluster, row-major [numVectors * dimension].
const xvecFloat32 * centroids
Cluster centroids, row-major [numClusters * dimension].
xvecDimensionType dimension
Dimension of each vector (d).
xvecVectorIdType numVectors
Total number of vectors; must equal the sum of listSizes.
Search query parameters for IVF-Flat fine search only.
xvecStatus xvecIvfFlatLoadIndexFromFaissFile(xvecExecutionContextTag *context, const char *indexFilePath, xvecIvfFlatIndexTag **outIndexHandle)
Loads an IVF-Flat index from a Faiss index file.
xvecStatus xvecIvfFlatPrepareKernel(xvecExecutionContextTag *context)
Pre-initializes PXL resources (Job, Module, Function) for IVF-Flat search.
struct xvecIvfFlatDescriptor xvecIvfFlatDescriptor
FAISS-free description of an IVF-Flat index.
xvecStatus xvecIvfFlatSearchFineSearchOnly(xvecExecutionContextTag *context, xvecIvfFlatIndexTag *indexHandle, xvecIvfFlatFineSearchQueryFloat32 *fineSearchQuery, xvecBufferTag *resultsBufferHandle, xvecIvfFlatSearchTiming *outTiming)
Performs an IVF-Flat fine search only (skips coarse search).
xvecStatus xvecIvfFlatDestroyIndex(xvecExecutionContextTag *context, xvecIvfFlatIndexTag *indexHandle)
Destroys an IVF-Flat index handle and releases its host-side data.
xvecStatus xvecIvfFlatLoadIndexFromDescriptor(xvecExecutionContextTag *context, const xvecIvfFlatDescriptor *descriptor, xvecIvfFlatIndexTag **outIndexHandle)
Loads an IVF-Flat index from a FAISS-free descriptor.
struct xvecIvfFlatSearchTiming xvecIvfFlatSearchTiming
Core types, enums, and structures for the XVector library.
uint64_t xvecClusterIdType
Type for cluster identifiers in IVF indices.
uint32_t xvecDimensionType
Type for vector dimension.
xvecStatus
Status codes returned by XVector API functions.
xvecDistanceType
Distance/similarity metrics for vector search.
float xvecFloat32
32-bit floating point type for vector components.
uint64_t xvecVectorIdType
Type for vector identifiers.