Skip to content

CreateIndexParams

Parameters for creating a vector index.

dimension: number;

Dimensionality of the vectors. Must match the embedder’s output.


indexName: string;

Name of the index to create.


optional metric?: "cosine" | "euclidean" | "dotproduct";

Distance metric for similarity computation. Default: ‘cosine’.