Enable different chunking methods
This commit is contained in:
parent
1070a09806
commit
920fc0232c
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ from cognee.modules.data.processing.document_types.PdfDocument import PdfDocumen
|
|||
|
||||
if __name__ == "__main__":
|
||||
test_file_path = os.path.join(os.path.dirname(__file__), "artificial-inteligence.pdf")
|
||||
pdf_doc = PdfDocument("Test document.pdf", test_file_path)
|
||||
pdf_doc = PdfDocument("Test document.pdf", test_file_path, chunking_strategy="paragraph")
|
||||
reader = pdf_doc.get_reader()
|
||||
|
||||
for paragraph_data in reader.read():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue