Optional parallelism?: numberThe number of threads to use for indexing. Default is 2.
Vector index parameters, following Faiss configuration.
Optional defaultNProbe?: numberHow many neighboring centroids to probe by default. Higher = slower, better recall.
Vector dimension. Must match the length of vectors in documents.
Optional factory?: stringAdvanced Faiss index factory string.
If not specified, defaults to IVF
Whether to use cosine or l2 (Euclidean) distance.
Number of Voronoi cells (centroids) for IVF. Affects accuracy and index build time.
Optional trainingTraining iterations for index build. Default is 25.
Options for creating a vector index.