dont know how to visualise/view chunking of pdf #219

Open
opened 2026-02-16 00:17:10 -05:00 by yindo · 0 comments
Owner

Originally created by @gopi-tookitaki on GitHub (Jul 31, 2024).

from llama_index.core.node_parser import SimpleFileNodeParser
from llama_index.readers.file import FlatReader
from pathlib import Path

md_docs = FlatReader().load_data(Path("filepath"))

parser = SimpleFileNodeParser()
md_nodes = parser.get_nodes_from_documents(md_docs)
print(md_nodes[0])

so after it chunks my pdf how do i view how the chunk outputs?

Originally created by @gopi-tookitaki on GitHub (Jul 31, 2024). ``` from llama_index.core.node_parser import SimpleFileNodeParser from llama_index.readers.file import FlatReader from pathlib import Path md_docs = FlatReader().load_data(Path("filepath")) parser = SimpleFileNodeParser() md_nodes = parser.get_nodes_from_documents(md_docs) print(md_nodes[0]) ``` so after it chunks my pdf how do i view how the chunk outputs?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#219