Skip to content
1 min read · 74 words

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 whose default is the class.

Type Parameters ​

Type ParameterDefault type
O extends BaseVectorStoreOptionsBaseVectorStoreOptions