documents = SimpleDirectoryReader("data").load_data()
data
in the same place where your .py
file is present. pip install llama-index
# Do this first pip install llama-index # Now import them like this from llama_index.core import VectorStoreIndex, Document from llama_index.llms.openai import OpenAI from llama_index.core.tools import FunctionTool from llama_index.core.agent import ReActAgent
from llama_index import ( VectorStoreIndex, Document, OpenAI, FunctionTool, ReActAgent )