### LlamaIndex 5-Line Quickstart for Data Querying (Python) Source: https://docs.llamaindex.ai/ A concise Python example demonstrating how to load data from a directory, create a VectorStoreIndex, and query it using LlamaIndex. It requires documents to be placed in a 'data' folder. ```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) ``` -------------------------------- ### Install LlamaIndex Python Library Source: https://docs.llamaindex.ai/ Installs the LlamaIndex Python library using pip. This is a prerequisite for using LlamaIndex in Python projects. ```bash pip install llama-index ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.