Interface VectorStoreInterface<Metadata>

interface VectorStoreInterface<Metadata> {
    FilterType: string | object;
    embeddings: EmbeddingsInterface;
    addDocuments(documents, options?): Promise<void | string[]>;
    addVectors(vectors, documents, options?): Promise<void | string[]>;
    asRetriever(kOrFields?, filter?, callbacks?, tags?, metadata?, verbose?): VectorStoreRetriever<VectorStoreInterface<Metadata>, Metadata>;
    delete(_params?): Promise<void>;
    similaritySearch(query, k?, filter?, callbacks?): Promise<DocumentInterface<Metadata>[]>;
    similaritySearchVectorWithScore(query, k, filter?): Promise<[DocumentInterface<Metadata>, number][]>;
    similaritySearchWithScore(query, k?, filter?, callbacks?): Promise<[DocumentInterface<Metadata>, number][]>;
    toJSON(): Serialized;
    toJSONNotImplemented(): SerializedNotImplemented;
    maxMarginalRelevanceSearch?(query, options, callbacks): Promise<DocumentInterface<Metadata>[]>;
}

Type Parameters

  • Metadata extends Record<string, any> = Record<string, any>

Hierarchy (view full)

Implemented by

Properties

FilterType: string | object

Methods

Generated using TypeDoc