Scripts2026年3月29日·1 分钟阅读

LlamaIndex — Data Framework for LLM Applications

Connect your data to large language models. The leading framework for RAG, document indexing, knowledge graphs, and structured data extraction.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

pip install llama-index

介绍

LlamaIndex (formerly GPT Index) is the go-to framework for connecting custom data to LLMs. Ingest data from 160+ sources, build indexes for fast retrieval, and create production-ready RAG pipelines.

Best for: Document Q&A, knowledge base search, data extraction, enterprise RAG Works with: OpenAI, Anthropic, Google, Ollama, HuggingFace


Key Features

Data Connectors

Ingest from PDFs, databases, APIs, Notion, Slack, Google Drive, and 160+ sources:

from llama_index.core import SimpleDirectoryReader
documents = SimpleDirectoryReader("./data").load_data()

Indexing & Retrieval

from llama_index.core import VectorStoreIndex
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What is the revenue trend?")

Agents

Build data-aware agents that can query multiple data sources, use tools, and maintain conversation state.


🙏

来源与感谢

Created by LlamaIndex. Licensed under MIT. run-llama/llama_index — 38K+ GitHub stars

相关资产