All skills
davila7 avatar

/agents-llamaindex

@d9d759e

Data framework for building LLM applications with RAG. Specializes in document ingestion (300+ connectors), indexing, and querying. Features vector indices, query engines, agents, and multi-modal support. Use for document Q&A, chatbots, knowledge retrieval, or building RAG pipelines. Best for data-centric LLM applications.

  • 4 files
  • 28.2 KB
  • MIT
  • Updated 9 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/agents-llamaindex

This session only. Nothing lands on disk.

referencesagents.md

≈490 tokens on demand. Your agent reads this file only when SKILL.md points to it.

LlamaIndex Agents Guide

Building agents with tools and RAG capabilities.

Basic agent

from llama_index.core.agent import FunctionAgent
from llama_index.llms.openai import OpenAI

def multiply(a: int, b: int) -> int:
    """Multiply two numbers."""
    return a * b

llm = OpenAI(model="gpt-4o")
agent = FunctionAgent.from_tools(
    tools=[multiply],
    llm=llm,
    verbose=True
)

response = agent.chat("What is 25 * 17?")

RAG agent

from llama_index.core.tools import QueryEngineTool

# Create query engine as tool
index = VectorStoreIndex.from_documents(documents)

query_tool = QueryEngineTool.from_defaults(
    query_engine=index.as_query_engine(),
    name="python_docs",
    description="Useful for Python programming questions"
)

# Agent with RAG + calculator
agent = FunctionAgent.from_tools(
    tools=[query_tool, multiply],
    llm=llm
)

response = agent.chat("According to the docs, what is Python?")

Multi-document agent

# Multiple knowledge bases
python_tool = QueryEngineTool.from_defaults(
    query_engine=python_index.as_query_engine(),
    name="python_docs",
    description="Python programming documentation"
)

numpy_tool = QueryEngineTool.from_defaults(
    query_engine=numpy_index.as_query_engine(),
    name="numpy_docs",
    description="NumPy array documentation"
)

agent = FunctionAgent.from_tools(
    tools=[python_tool, numpy_tool],
    llm=llm
)

# Agent chooses correct knowledge base
response = agent.chat("How do I create numpy arrays?")

Best practices

  1. Clear tool descriptions - Agent needs to know when to use each tool
  2. Limit tools to 5-10 - Too many confuses agent
  3. Use verbose mode during dev - See agent reasoning
  4. Combine RAG + calculation - Powerful combination
  5. Test tool combinations - Ensure they work together

Resources

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at d9d759e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 16 hours ago.

Activeupdated 9 months ago
version
1.0.0
author
Orchestra Research
dependencies
[
  "llama-index",
  "openai",
  "anthropic"
]
Other metadata
tags
[
  "Agents",
  "LlamaIndex",
  "RAG",
  "Document Ingestion",
  "Vector Indices",
  "Query Engines",
  "Knowledge Retrieval",
  "Data Framework",
  "Multimodal",
  "Private Data",
  "Connectors"
]

README badge

README badge for davila7/claude-code-templates/agents-llamaindex