Assists with building RAG pipelines, knowledge assistants, and data-augmented LLM applications using LlamaIndex. Use when ingesting documents, configuring retrieval strategies, building query engines, or creating multi-step agents. Trigger words: llamaindex, rag, retrieval augmented generation, vector index, query engine, document loader, knowledge base.
LlamaIndex is a data framework for building RAG pipelines, knowledge assistants, and data-augmented LLM applications. It provides document loading from 300+ sources, flexible chunking strategies, multiple index types, hybrid retrieval with reranking, and production evaluation tools for question-answering systems.
SimpleDirectoryReader for local files or LlamaHub connectors for SaaS platforms, and run through an IngestionPipeline with metadata extractors (title, summary) and deduplication.SentenceSplitter at 1024 tokens with 200 token overlap, use MarkdownNodeParser for structured documents, CodeSplitter for code, and adjust based on evaluation results.VectorStoreIndex as the default for most RAG, KnowledgeGraphIndex for entity relationships, and DocumentSummaryIndex for per-document summaries.CohereRerank) after retrieval for improved relevance, and set similarity_top_k based on context window (3-5 for large models, 2-3 for smaller).RetrieverQueryEngine for standard RAG, CitationQueryEngine for responses with source attribution, and SubQuestionQueryEngine for complex multi-part queries.ReActAgent with tools wrapping query engines (QueryEngineTool), functions, and other agents for multi-step reasoning.CorrectnessEvaluator, FaithfulnessEvaluator, and RelevancyEvaluator on a test set before deploying.User request: "Create a question-answering system over our internal docs"
Actions:
SimpleDirectoryReader and extract metadata (title, summary)SentenceSplitter (1024 tokens, 200 overlap) through an IngestionPipelineVectorStoreIndex with OpenAI embeddings and configure hybrid retrievalCitationQueryEngine for answers with source referencesOutput: A RAG system that answers questions with citations from company documentation.
User request: "Build an agent that can search across our docs, database, and web"
Actions:
QueryEngineTool with descriptive tool descriptionsReActAgent that routes questions to the appropriate toolSubQuestionQueryEngine for complex queries requiring multiple sourcesOutput: An intelligent agent that reasons about which data source to query and synthesizes multi-source answers.
SentenceSplitter with 1024 token chunks and 200 token overlap as the starting point.CohereRerank) after retrieval to improve result relevance for small cost.CorrectnessEvaluator on a test set before deploying; subjective quality assessment does not scale.similarity_top_k based on context window: 3-5 chunks for large models, 2-3 for smaller models.IngestionPipeline with deduplication for incremental data updates; do not re-embed unchanged documents.npx skills add TerminalSkills/llamaindex下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer