CreateIndexParams
Parameters for creating a vector index.
Properties
Section titled “Properties”dimension
Section titled “dimension”dimension: number;Dimensionality of the vectors. Must match the embedder’s output.
indexName
Section titled “indexName”indexName: string;Name of the index to create.
metric?
Section titled “metric?”optional metric?: "cosine" | "euclidean" | "dotproduct";Distance metric for similarity computation. Default: ‘cosine’.