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)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter