Interface VectorStoreRetrieverInterface<V>

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

Should not change on patch releases.

Type Parameters

Hierarchy

Implemented by

Properties

vectorStore: V

Methods

  • Parameters

    • documents: DocumentInterface<Record<string, any>>[]
    • Optional options: AddDocumentOptions

    Returns Promise<void | string[]>

  • Parameters

    Returns Promise<DocumentInterface<Record<string, any>>[][]>

  • Parameters

    Returns Promise<(Error | DocumentInterface<Record<string, any>>[])[]>

  • Parameters

    Returns Promise<(Error | DocumentInterface<Record<string, any>>[])[]>

  • Parameters

    • query: string
    • Optional config: BaseCallbackConfig | Callbacks

    Returns Promise<DocumentInterface<Record<string, any>>[]>

  • Parameters

    Returns Promise<DocumentInterface<Record<string, any>>[]>

  • Parameters

    Returns Promise<IterableReadableStreamInterface<DocumentInterface<Record<string, any>>[]>>

  • Parameters

    • generator: AsyncGenerator<string, any, unknown>
    • options: Partial<RunnableConfig>

    Returns AsyncGenerator<DocumentInterface<Record<string, any>>[], any, unknown>

Generated using TypeDoc