support images and tables extract from docx (#4619)
This commit is contained in:
parent
5893ebec55
commit
233c4150d1
10 changed files with 163 additions and 23 deletions
|
|
@ -94,7 +94,7 @@ class TextSplitter(BaseDocumentTransformer, ABC):
|
|||
documents.append(new_doc)
|
||||
return documents
|
||||
|
||||
def split_documents(self, documents: Iterable[Document] ) -> list[Document]:
|
||||
def split_documents(self, documents: Iterable[Document]) -> list[Document]:
|
||||
"""Split documents."""
|
||||
texts, metadatas = [], []
|
||||
for doc in documents:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue