fix: adhere UnstructuredDocument.read() to Document

This commit is contained in:
lxobr 2025-01-06 11:23:55 +01:00
parent 4cee9a16ce
commit dbc33a6478

View file

@ -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