run-llama/llama_index
Framework for indexing data and building RAG / agent apps
What
Framework for loading, indexing and querying your data with LLMs; connectors, retrievers, agents and workflows.
How to use
# pip install llama-index
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
docs = SimpleDirectoryReader("data").load_data()
index = VectorStoreIndex.from_documents(docs)
print(index.as_query_engine().query("What is this about?"))Reach for it when
you are coding a custom RAG or document agent in Python.