Parameters
- __namedParameters: {
documentPrompt?: BasePromptTemplate<any, BasePromptValueInterface, any>;
documentSeparator?: string;
llm: LanguageModelLike;
outputParser?: BaseOutputParser<RunOutput>;
prompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
}Optional
documentPrompt?: BasePromptTemplate<any, BasePromptValueInterface, any>
Optional
documentSeparator?: string
llm: LanguageModelLike
Optional
outputParser?: BaseOutputParser<RunOutput>
prompt: BasePromptTemplate<any, BasePromptValueInterface, any>
Returns Promise<RunnableSequence<Record<string, unknown>, Exclude<RunOutput, Error>>>
An LCEL Runnable
chain.
Expects a dictionary as input with a list of Document
s being passed under
the "context" key.
Return type depends on the output_parser
used.
Create a chain that passes a list of documents to a model.