document_reader = SimpleDirectoryReader(input_files=[file], filename_as_id=True)
documents = document_reader.load_data(show_progress=True)
for doc in documents:
doc.id_ = filename
doc.metadata["user"] = user
splitter = SentenceSplitter(chunk_size=1024)
nodes = splitter.get_nodes_from_documents(documents, show_progress=True)
index = VectorStoreIndex(nodes=nodes, storage_context=storage_context, show_progress=True)