(
document: list[Document],
chunk_size: int=300,
chunk_overlap: int=0
)
| 57 | |
| 58 | @staticmethod |
| 59 | def split_documents( |
| 60 | document: list[Document], |
| 61 | chunk_size: int=300, |
| 62 | chunk_overlap: int=0 |
| 63 | ) -> list: |
| 64 | splitter = RecursiveCharacterTextSplitter( |
| 65 | chunk_size=chunk_size, |
| 66 | chunk_overlap=chunk_overlap |
| 67 | ) |
| 68 | |
| 69 | return splitter.split_documents(document) |
| 70 | |
| 71 | @staticmethod |
| 72 | def split_documents_2texts( |
no outgoing calls
no test coverage detected