### Install LlamaIndex Source: https://docs.llamaindex.ai/en/stable Use pip to install the LlamaIndex library in your Python environment. ```bash pip install llama-index ``` -------------------------------- ### Query Data with LlamaIndex Source: https://docs.llamaindex.ai/en/stable A 5-line starter script to load documents from a directory, index them, and perform a query. ```python from llama_index.core import VectorStoreIndex, SimpleDirectoryReader documents = SimpleDirectoryReader("data").load_data() index = VectorStoreIndex.from_documents(documents) query_engine = index.as_query_engine() response = query_engine.query("Some question about the data should go here") print(response) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.