Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill llamaindexgit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/llamaindex)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/llamaindex"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/llamaindex/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/llamaindex"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/llamaindex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.05237 |
| Opus 5.5 | $0.00043 | $0.02095 |
| Sonnet 5.5 | $0.00021 | $0.01047 |
| Haiku 4.5 | $0.00011 | $0.00524 |
Grade A, and why
llamaindex scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
resp = requests.get( How it starts
The opening of the file, as written. The whole thing — 443 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/run-llama/llama_index
官方文档: https://docs.llamaindex.ai/(2026 年起 301 重定向至 https://developers.llamaindex.ai/python/framework/)
许可证: MIT
最新版本: llama-index 0.14.25、llama-index-core 0.14.25(截至 2026-11,PyPI 与 GitHub Release 标签
v0.14.25实测,仍未发新版;集成包按组件独立发版)
概述
LlamaIndex 是连接大语言模型与私有数据的 Python 框架,核心流程是把文档切分为节点(Node)、建立索引并对外暴露查询与对话接口。
- 数据加载:
SimpleDirectoryReader等 Reader 把 PDF / Markdown / Word / 网页等解析为Document - 切分:
SentenceSplitter、TokenTextSplitter等 Node Parser 把Document切成带元数据的Node - 索引:
VectorStoreIndex建立向量索引,另有SummaryIndex、KeywordTableIndex等 - 存储:
StorageContext统一挂载向量库、文档库、索引库,可持久化到磁盘或外部数据库 - 检索与合成:Retriever 召回节点,Response Synthesizer 按响应模式(response_mode)合成答案
- 上层接口:Query Engine(单轮)、Chat Engine(多轮)、Router(多路选择)、Workflows(事件驱动)、Agent(工具调用)
包拆分(2026-10,pip install llama-index 元包仅拉取以下四项):
| 包 | 内容 | 当前版本 |
|---|---|---|
| llama-index | 元包:core + OpenAI LLM/嵌入集成 + nltk | 0.14.25 |
| llama-index-core | 索引、检索、Workflows、Agent 等核心 | 0.14.25 |
| llama-index-llms-openai | OpenAI / Azure LLM 集成 | 0.8.3 |
| llama-index-embeddings-openai | OpenAI 嵌入集成 | 0.7.0 |
其余向量库、嵌入、LLM 集成均为独立包,按需安装。
环境准备
安装
# 元包:含 core 与 OpenAI 集成,开箱即用(要求 Python >= 3.10)
pip install llama-index
pip install llama-index-core
# 常用集成(按需)
pip install llama-index-embeddings-huggingface # 本地嵌入模型
pip install llama-index-llms-ollama # 本地 LLM
pip install llama-index-vector-stores-chroma # Chroma
pip install llama-index-vector-stores-postgres # PostgreSQL / pgvector
pip install llama-index-vector-stores-qdrant # Qdrant
API Key 配置
export OPENAI_API_KEY="sk-..." # Linux / macOS
set OPENAI_API_KEY=sk-... # Windows cmd
在代码中加载 .env(需 pip install python-dotenv):
from dotenv import load_dotenv
load_dotenv()
验证安装
python -c "import llama_index.core; print(llama_index.core.__version__)"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 21d ago Changed · -7 lines f3d83d084475
- 1mo ago Changed · -1 lines 481d7410c140
- 1mo ago First seen · 451 lines · 107 tokens per session scan A 1f393e07a936
llamaindex is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 107 tokens to every session and 5,237 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
llamaindex compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| llamaindexznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | A | 107 | Claude Code, Codex |
| dspyopenamer/openamer | Skill | 10 | yesterday | Apache-2.0 | A | 19 | Claude Code, Codex |
| dspyNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 19 | Claude Code, Codex |
| ai-engineering-toolkitsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 47 | Claude Code |
| llm-app-patternsdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 54 | Claude Code, Codex |
| thinking-out-loudShubhamsaboo/awesome-llm-apps | Skill | 146k | yesterday | Apache-2.0 | A | 206 | Claude Code, Codex |
| ai-productsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 22 | Claude Code |