Skip to main content

Interface: VectorIndexConfig<VectorField, FilterFields>

server.VectorIndexConfig

The configuration for a vector index.

Type parameters

NameType
VectorFieldextends string
FilterFieldsextends string

Properties

vectorField

vectorField: VectorField

The field to index for vector search.

This must be a field of type v.array(v.float64()) (or a union)

Defined in

server/schema.ts:113


dimensions

dimensions: number

The length of the vectors indexed. This must be between 2 and 2048 inclusive.

Defined in

server/schema.ts:117


filterFields

Optional filterFields: FilterFields[]

Additional fields to index for fast filtering when running vector searches.

Defined in

server/schema.ts:121