acollapse_docs(
docs: list[Document],
combine_document_func: AsyncCombineDocsProtocol,
**kwargs: Any| Name | Type | Description |
|---|---|---|
docs* | list[Document] | |
combine_document_func* | AsyncCombineDocsProtocol | |
**kwargs | Any | Default: {} |
Execute a collapse function on a set of documents and merge their metadatas.
A list of Document objects to combine.
A function that takes in a list of Document objects and
optionally addition keyword parameters and combines them into a single
string.
Arbitrary additional keyword params to pass to the
combine_document_func.