Nodes - print notes and their metada
Tue Sep 05 2023 23:03:05 GMT+0000 (Coordinated Universal Time)
Saved by
@larksa
from llama_index.node_parser import SimpleNodeParser
## had been set from here
## data = SimpleDirectoryReader(input_dir="data4").load_data()
## node_parser = SimpleNodeParser.from_defaults(chunk_size=500, chunk_overlap=30)
nodes = node_parser.get_nodes_from_documents(documents=data)
print(nodes)
content_copyCOPY
Meant could see the nodes, overlap, and metadata for the document
https://gpt-index.readthedocs.io/en/stable/core_modules/data_modules/documents_and_nodes/usage_nodes.html
Comments