Execute a collapse function on a set of documents and merge their metadatas.
collapse_docs(
docs: list[Document],
combine_document_func: CombineDocsProtocol,
**kwargs: Any = {}
) -> Document| Name | Type | Description |
|---|---|---|
docs* | list[Document] | A list of |
combine_document_func* | CombineDocsProtocol | A function that takes in a list of |
**kwargs | Any | Default: {}Arbitrary additional keyword params to pass to the
|