from llama_index import VectorStoreIndex, SimpleDirectoryReader # Load documents documents = SimpleDirectoryReader('data').load_data() # Create an index index = VectorStoreIndex.from_documents(documents) query_engine = index.as_query_engine() response = query_engine.query("What did the author do growing up?") print(response)