Ask a question to get started
Enter to sendā¢Shift+Enter new line
combine_docs( self, docs: list[Document], token_max: int | None = None
docs
list[Document]
List of documents to combine, assumed that each one is less than token_max.
token_max
int | None
None
Recursively creates groups of documents less than this number of tokens.
callbacks
Callbacks
**kwargs
Any
{}
Combine multiple documents recursively.
Callbacks to be passed through
additional parameters to be passed to LLM calls (like other input variables besides the documents)