Executes a retrieval operation.
invoke(
input: string,
options: RunnableConfig<Record<string, any>>
): Promise<DocumentInterface<Record<string, any>>[]>| Name | Type | Description |
|---|---|---|
input* | string | The query string used to search for relevant documents. |
options | RunnableConfig<Record<string, any>> | (optional) Configuration options for the retrieval run, which may include callbacks, tags, and metadata. |