fix: adhere UnstructuredDocument.read() to Document
This commit is contained in:
parent
4cee9a16ce
commit
dbc33a6478
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue