Skip to content
1 min read · 121 words

Interface: VectorStoreConstructor<O> ​

Defined in: src/batteries/vector/factory.ts:11

The adapter class shape the factory accepts as client — a constructor with an optional availability probe.

Type Parameters ​

Type ParameterDefault type
O extends BaseVectorStoreOptionsBaseVectorStoreOptions

Constructors ​

Constructor ​

ts
new VectorStoreConstructor(options: O): BaseVectorStore;

Defined in: src/batteries/vector/factory.ts:13

Construct the adapter from its options.

Parameters ​

ParameterType
optionsO

Returns ​

BaseVectorStore

Properties ​

PropertyTypeDescriptionDefined in
isAvailable?() => booleanOptional static probe: false short-circuits creation with a driver-unavailable error.src/batteries/vector/factory.ts:15