Type Alias: VectorStoreClient<O>
ts
type VectorStoreClient<O> =
| VectorStoreConstructor<O>
| (() =>
| VectorStoreConstructor<O>
| {
default: VectorStoreConstructor<O>;
})
| (() => Promise<
| VectorStoreConstructor<O>
| {
default: VectorStoreConstructor<O>;
}
>);Defined in: src/batteries/vector/factory.ts:25
client is one of:
- the adapter class itself —
QdrantVectorStore - a sync resolver —
() => QdrantVectorStore - an async resolver / dynamic import —
() => import('…/qdrant').then(m => m.QdrantVectorStore)A resolver may also return a module namespace whosedefaultis the class.
Type Parameters
| Type Parameter | Default type |
|---|---|
O extends BaseVectorStoreOptions | BaseVectorStoreOptions |