llamacloud-index
БесплатноБез исполняемых скриптовНе проверенUse this skill whenever a question should be answered from documents stored in a LlamaCloud Index v2 knowledge base — retrieving passages, locating indexed…
от run-llama★ 86 звёзд на GitHubОб этом скилле
LlamaCloud Index v2 — Agentic Retrieval Guide
Answer questions from documents stored in Index v2, the managed knowledge base of the LlamaParse Platform. Every operation is a single authenticated HTTP call, so from a shell the cheapest interface is curl + jq: you can compose calls, batch independent lookups into one command, and bound exactly how much output enters the conversation.
Index v2 is built for agentic retrieval: beyond semantic search, it gives you file-system-like access to the underlying documents (PDFs, Office documents, images, and other unstructured files). This skill is about using that access well — navigating the index the way you would a file system, instead of firing a single one-shot RAG query and hoping the top results contain the answer.
Setup
export LLAMA_BASE="https://api.cloud.llamaindex.ai/api/v1" # EU accounts: https://api.cloud.eu.llamaindex.ai/api/v1
AUTH=(-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" -H "Content-Type: application/json")
If a call returns 401/403, ask the user to check LLAMA_CLOUD_API_KEY (and the region) — do not retry in a loop.
The API
| Operation | Call | Key body fields |
|---|---|---|
| List indexes | GET /indexes |
— |
| Retrieve passages | POST /retrieval/retrieve |
index_id, query, top_k, rerank ({enabled, top_n}, enabled by default), score_threshold, static_filters, custom_filters |
| Find files | POST /retrieval/files/find |
index_id, file_name_contains (substring, recommended) or file_name (exact) |
| Grep a file | POST /retrieval/files/grep |
index_id, file_id, pattern (regex), context_chars |
| Read a file | POST /retrieval/files/read |
index_id, file_id, offset, max_length (chars; omit for full file) |
file_id values come from the find and retrieve responses. Full parameter reference: retrieval · file operations.
Step 0 — Pick an Index
Discover once per conversation, not before every query:
curl -s "${AUTH[@]}" "$LLAMA_BASE/indexes" | jq '.items[] | {id, name, description}'
If more than one index plausibly matches the user's question, ask the user which one to use — do not silently query the wrong knowledge base. If the user already gave you an index ID, skip discovery entirely.
The Agentic Retrieval Loop
Treat the index like a file system you can explore, not a black box you query once:
- Discover —
GET /indexesto find the right index. - Locate —
findto identify the files relevant to the question. - Search —
grepfor exact patterns within a file. - Retrieve —
retrievefor hybrid (sparse + dense) semantic search. - Inspect —
reada bounded window of a file when you need surrounding context.
You rarely need all five steps for one question. The skill is choosing the right entry point (below) and iterating: a first retrieval that names a promising document is a reason to grep inside it, not a reason to stop.
Choosing the Right Call
| Situation | Start with |
|---|---|
| Open or conceptual question ("what does the report say about churn?") | retrieve |
| Question spans multiple documents or you don't know the wording used | retrieve |
| Looking for an exact term, identifier, figure, or section heading in a known file | grep |
| The user names or implies a specific document ("in the Q3 report…") | find, then grep/retrieve within it |
| You need continuous context around a passage you already located | read with offset/max_length |
Rules of thumb:
retrievematches meaning;grepmatches patterns. Use retrieval when you know what you mean but not how the document phrases it. Use grep when you know the literal string (a product name, an account code, "Section 4.2").- Verification flows are grep-shaped. "Does the contract mention X?" is a grep in the located file, not a retrieval.
- Scope retrieval to one file with a filter instead of reading it whole:
"static_filters": {"parsed_directory_file_id": {"operator": "eq", "value": "<file-id>"}}runs semantic search inside just that document. - Bound every call. Set
top_kfor retrieval (andrerank.top_nto cap what the reranker returns),context_charsfor grep,offset/max_lengthfor reads. Never let an unbounded response into the conversation.
Working Examples
# Retrieve passages (bounded, with file and page provenance)
curl -s "${AUTH[@]}" -X POST "$LLAMA_BASE/retrieval/retrieve" -d '{
"index_id": "<index-id>", "query": "carbon intensity targets", "top_k": 5
}' | jq -r '.results[] | "== file \(.static_fields.parsed_directory_file_id) pp.\(.static_fields.page_range_start)-\(.static_fields.page_range_end) score \(.score)\n\(.content)"'
# Locate a document by n
Установить llamacloud-index в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл llamacloud-index?
Use this skill whenever a question should be answered from documents stored in a LlamaCloud Index v2 knowledge base — retrieving passages, locating indexed files, or searching indexed content through the LlamaParse Platform REST API with curl. Teaches agentic retrieval — navigating an index like a file system instead of one-shot RAG.
Как установить скилл llamacloud-index?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл llamacloud-index запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic