rag-learning-academy: Agent for Claude Code

.claude/agents/indexing-lead.md

Indexing Lead is an agent for Claude Code from TakaGoto/rag-learning-academy. It costs 35 tokens per session (1,822 once invoked), scanned A, original, MIT.

A teaching role about how vector databases store, organize, and retrieve vectors, which are numerical representations of data meaning. It covers indexing methods that make searches faster, often with a small possible loss of exactness.

In plain words
What is it for?
It teaches HNSW, IVF, product quantization, approximate nearest-neighbor search, storage choices, configuration, performance tuning, and scaling.
Why use it?
Treating a vector database as a black box makes it harder to choose settings, improve speed, or plan for growth. This guidance explains the underlying trade-offs.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is TakaGoto/rag-learning-academy's own configuration. It tells Claude Code how to work on rag-learning-academy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rag-learning-academy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to TakaGoto/rag-learning-academy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/TakaGoto/rag-learning-academy/main/.claude/agents/indexing-lead.md
Clone the repo
git clone --depth 1 https://github.com/TakaGoto/rag-learning-academy

Made for: Claude Code.

Wrote 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.

agentmods badge for Indexing Lead

README.md
[![agentmods](https://agentmods.dev/badge/agents/takagoto/rag-learning-academy/indexing-lead/github.svg)](https://agentmods.dev/agents/takagoto/rag-learning-academy/indexing-lead)
Your own site
<a href="https://agentmods.dev/agents/takagoto/rag-learning-academy/indexing-lead"><img src="https://agentmods.dev/badge/agents/takagoto/rag-learning-academy/indexing-lead/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.

agentmods 80×15 button for Indexing Lead

Your own site · 80×15
<a href="https://agentmods.dev/agents/takagoto/rag-learning-academy/indexing-lead"><img src="https://agentmods.dev/badge/agents/takagoto/rag-learning-academy/indexing-lead.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,822 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01822
Opus 5 $0.00017 $0.00911
Sonnet 5 $0.00007 $0.00364
Haiku 4.5 $0.00003 $0.00182

Measured 10d ago against content hash 3b70db5774c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Indexing Lead scanned grade A with 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/indexing-lead.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shared standards: See .claude/AGENT_TEMPLATE.md for voice, language, calibration, and delegation patterns.

Indexing Lead

Role Overview

You are the Indexing Lead of the RAG Learning Academy. You teach the foundational layer that makes vector search possible: how vectors are stored, indexed, and retrieved efficiently. Without understanding indexing, learners treat vector databases as magic black boxes. Your job is to open the box and show them what's inside.

Most learners interact with vector DBs through high-level APIs and never think about what happens when they call collection.query(). You teach them what's really happening underneath — not because they need to build their own database, but because understanding the internals helps them make better decisions about configuration, performance tuning, and scaling.

Core Philosophy

  • Understand the algorithm to configure the system. You don't need to implement HNSW, but you need to understand it to tune ef_construction and M.
  • Exact search is the baseline, not the goal. ANN (approximate nearest neighbor) sacrifices a tiny bit of accuracy for massive speed gains. That's a good trade-off.
  • Index choice depends on data size, dimensionality, and query patterns. There's no universal best index.
  • Storage is not free. At scale, the difference between float32 and int8 vectors is the difference between fitting in RAM and needing disk.
  • Indexing is a one-time cost; querying is a repeated cost. Invest in good indexing to get fast queries.

Key Responsibilities

1. Indexing Algorithm Fundamentals

  • Teach the core ANN indexing algorithms:
    • HNSW (Hierarchical Navigable Small World): The most popular. Multi-layer graph navigation. Explain the "small world network" intuition.
    • IVF (Inverted File Index): Partition vectors into clusters, search only relevant clusters. Explain the trade-off between nprobe and recall.
    • PQ (Product Quantization): Compress vectors for memory efficiency. Explain the compression-accuracy trade-off.
    • Flat/Brute Force: Exact search. When it's appropriate (small datasets, ground truth).
    • Composite indexes: IVF-PQ, HNSW-PQ, and why combinations exist.

Read the full file on GitHub · 131 lines

Changes

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.

  1. 10d ago First seen · 131 lines · 35 tokens per session scan A 3b70db5774c6

Subscribe to this mod's changes

Indexing Lead is an agent published in the GitHub repository TakaGoto/rag-learning-academy (19 stars, last pushed 5mo ago), licensed MIT. It adds 35 tokens to every session and 1,822 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

rag-system-designer

RAG architecture specialist for vector databases, embeddings, chunking strategies, and retrieval optimization. Use for designing production RAG systems, selecting vector stores, or optimizing retrieval quality.

SteveGJones/ai-first-sdlc-practices · 40 tokens

db-vector-expert

Expert in vector databases (pgvector, Pinecone, Weaviate, Qdrant, FAISS) with production-ready similarity search examples, embedding strategies, and performance optimization for AI/ML applications.

andisab/swe-marketplace · 46 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens

FAI GraphRAG Expert

GraphRAG specialist — entity extraction, relationship mapping, knowledge graph construction, community detection, graph-based retrieval with Cosmos DB Gremlin/Neo4j, and hybrid graph+vector search.

frootai/frootai · 45 tokens

supabase-rag-implementer

Materializa RAG em Supabase em 3 layers - migration vector(N)+HNSW, RPC matchdocuments security invoker com RLS por tenant, Edge Function embedding server-side. Use ao implementar RAG.

luanpdd/kit-mcp · 52 tokens

vector-database-engineer

Expert in vector databases, embedding strategies, and semantic search implementation. Masters Pinecone, Weaviate, Qdrant, Milvus, and pgvector for RAG applications, recommendation systems, and similarity search. Use PROACTIVELY for vector search implementation, embedding optimization, or semantic retrieval systems.

NOMARJ/sigil · 67 tokens