docs = simpleDirectoryReader().load_data() for doc in docs: index.insert(doc)
index.insert_nodes([list of nodes])