Skip to main content
Version: 0.11.x

Type Alias: VectorStoreOptions

VectorStoreOptions = object

Defined in: extensions/vectorStore.ts:22

Options for createVectorStore.

Properties​

dimension?​

readonly optional dimension: number

Defined in: extensions/vectorStore.ts:27

The length every vector must have. When omitted, the first vector added fixes it.


metric?​

readonly optional metric: VectorStoreMetric

Defined in: extensions/vectorStore.ts:29

The similarity metric used by VectorStore.query. Defaults to 'cosine'.

We are Software Mansion.