Language model to use for responding.
Prompt template. Must contain input variable "context", which will be used for passing in the formatted documents.
Output parser. Defaults to StringOutputParser
.
Prompt used for formatting each document into a string. Input
variables can be "page_content" or any metadata keys that are in all documents.
"page_content" will automatically retrieve the Document.page_content
, and all
other inputs variables will be automatically retrieved from the Document.metadata
dictionary. Default to a prompt that only contains Document.page_content
.
String separator to use between formatted document strings.
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.
Generated using TypeDoc
Create a chain that passes a list of documents to a model.