langchain.chains.combine_documents.reduce
.split_list_of_docs¶
- langchain.chains.combine_documents.reduce.split_list_of_docs(docs: List[Document], length_func: Callable, token_max: int, **kwargs: Any) List[List[Document]] [source]¶
将文档分成子集,每个子集的累计长度符合约束。