Enable different chunking methods
This commit is contained in:
parent
e80d39167b
commit
7c7b8a319b
2 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ from cognee.tasks.chunking.chunking_registry import get_chunking_function
|
|||
class AudioReader:
|
||||
id: UUID
|
||||
file_path: str
|
||||
chunking_function:callable
|
||||
chunking_strategy:str
|
||||
|
||||
def __init__(self, id: UUID, file_path: str, chunking_strategy:str = "paragraph"):
|
||||
self.id = id
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ from .Document import Document
|
|||
class PdfReader():
|
||||
id: UUID
|
||||
file_path: str
|
||||
chunking_strategy: str
|
||||
|
||||
def __init__(self, id: UUID, file_path: str, chunking_strategy:str = "paragraph"):
|
||||
self.id = id
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue