Base interface implemented by all runnables. Used for cross-compatibility between different versions of LangChain core.

Should not change on patch releases.

interface VectorStoreRetrieverInterface<V> {
    vectorStore: V;
    addDocuments(documents, options?): Promise<void | string[]>;
    batch(inputs, options?, batchOptions?): Promise<DocumentInterface<Record<string, any>>[][]>;
    batch(inputs, options?, batchOptions?): Promise<(Error | DocumentInterface<Record<string, any>>[])[]>;
    batch(inputs, options?, batchOptions?): Promise<(Error | DocumentInterface<Record<string, any>>[])[]>;
    getName(suffix?): string;
    getRelevantDocuments(query, config?): Promise<DocumentInterface<Record<string, any>>[]>;
    invoke(input, options?): Promise<DocumentInterface<Record<string, any>>[]>;
    stream(input, options?): Promise<IterableReadableStreamInterface<DocumentInterface<Record<string, any>>[]>>;
    transform(generator, options): AsyncGenerator<DocumentInterface<Record<string, any>>[], any, unknown>;
}

Type Parameters

Hierarchy (view full)

Implemented by

Properties

vectorStore: V

Methods

Generated using TypeDoc