Skip to content
1 min read · 111 words

Interface: VectorRecord ​

Defined in: src/batteries/vector/types.ts:28

A stored vector record. All fields are optional; at minimum, an id is required.

Properties ​

PropertyTypeDescriptionDefined in
document?stringThe source document/text associated with the record.src/batteries/vector/types.ts:34
idstringUnique record identifier within its collection.src/batteries/vector/types.ts:30
metadata?VectorMetadataArbitrary metadata attached to the record.src/batteries/vector/types.ts:36
vector?number[]The embedding vector; omit to let the backend encode document server-side.src/batteries/vector/types.ts:32