interface VectorStoreInterface {
    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>;
    delete(_params?): Promise<void>;
    similaritySearch(query, k?, filter?, callbacks?): Promise<DocumentInterface<Record<string, any>>[]>;
    similaritySearchVectorWithScore(query, k, filter?): Promise<[DocumentInterface<Record<string, any>>, number][]>;
    similaritySearchWithScore(query, k?, filter?, callbacks?): Promise<[DocumentInterface<Record<string, any>>, number][]>;
    toJSON(): Serialized;
    toJSONNotImplemented(): SerializedNotImplemented;
    maxMarginalRelevanceSearch?(query, options, callbacks): Promise<DocumentInterface<Record<string, any>>[]>;
}

Hierarchy (view full)

Implemented by

Properties

FilterType: string | object

Methods

Generated using TypeDoc