From dbc33a6478944991f93223a3e443c3acf12460a7 Mon Sep 17 00:00:00 2001 From: lxobr <122801072+lxobr@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:23:55 +0100 Subject: [PATCH] fix: adhere UnstructuredDocument.read() to Document --- .../data/processing/document_types/UnstructuredDocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/modules/data/processing/document_types/UnstructuredDocument.py b/cognee/modules/data/processing/document_types/UnstructuredDocument.py index 62632cd08..8da065ff5 100644 --- a/cognee/modules/data/processing/document_types/UnstructuredDocument.py +++ b/cognee/modules/data/processing/document_types/UnstructuredDocument.py @@ -8,7 +8,7 @@ from cognee.modules.data.exceptions import UnstructuredLibraryImportError class UnstructuredDocument(Document): type: str = "unstructured" - def read(self, chunk_size: int): + def read(self, chunk_size: int, chunker = str) -> str: def get_text(): try: from unstructured.partition.auto import partition