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<nLists>,Flat.
From ArangoDB 3.12.10 onward, the centroid count can be represented by
a {} placeholder, which the server replaces with the resolved
nLists value for each shard.
Whether to use cosine, l2 (Euclidean), or innerProduct distance. innerProduct was introduced in ArangoDB 3.12.6.
Optional nNumber of Voronoi cells (centroids) for IVF, or options for computing the number from the document count at training time.
Up to ArangoDB 3.12.9, this is required and must be a number. From ArangoDB 3.12.10 onward, it can be an object and can be omitted to use the server's default scaling options.
Optional numberMaximum number of vectors per centroid to include in the training sample.
Default: 100
Introduced in: ArangoDB 3.12.10
Optional trainingTraining iterations for index build. Default is 25.
Optional sparse?: booleanWhether to create a sparse index that excludes documents with the
attribute for indexing missing or set to null.
Default: false
Optional storedAn array of attribute paths that will be stored in the index for efficient filtering. From ArangoDB 3.12.10 onward, these can also cover projections so the attributes can be returned without materializing the documents.
The maximum number of attributes that you can use in storedValues is 32.
Introduced in: ArangoDB 3.12.7
Options for creating a vector index.