rag-pipeline-builder

rag-pipeline-builder is a skill for Claude Code, Codex from ibm-self-serve-assets/building-blocks. It costs 104 tokens per session (1,201 once invoked), scanned A, original, Apache-2.0.

Expert guidance for building retrieval-augmented generation (RAG) systems on IBM Cloud. RAG systems retrieve relevant documents before asking a language model to produce an answer.

In plain words
What is it for?
Use it to design document ingestion, text splitting, embeddings, vector search, hybrid search, reranking, and answer generation with IBM services.
Why use it?
It helps you choose and connect the many stages of a document-answering pipeline, from storing documents to searching and generating responses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design document ingestion, text splitting, embeddings, vector search, hybrid search, reranking, and answer generation with IBM services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder
Install

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.

Any agent
npx skills add ibm-self-serve-assets/building-blocks --skill rag-pipeline-builder
Clone the repo
git clone --depth 1 https://github.com/ibm-self-serve-assets/building-blocks

Made for: Claude Code, Codex.

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 rag-pipeline-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder/github.svg)](https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder)
Your own site
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder/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 rag-pipeline-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/rag-pipeline-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,201 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00104 $0.01201
Opus 5.5 $0.00042 $0.00480
Sonnet 5.5 $0.00021 $0.00240
Haiku 4.5 $0.00010 $0.00120

Measured 2mo ago against content hash 9f9475de8e7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rag-pipeline-builder 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 2mo 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.

ibm-bob/skills/rag-pipeline-builder/SKILL.md · 121 lines

How it starts

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

IBM RAG Pipeline Builder

Purpose

Expert guidance for designing and implementing complete IBM RAG (Retrieval-Augmented Generation) pipelines using IBM Cloud services. Covers every stage from document ingestion to LLM answer generation.

IBM Cloud Product Coverage

IBM Cloud Product RAG Stage
IBM Cloud Object Storage Document source
IBM watsonx.ai Embedding generation + LLM generation (Granite, Llama)
IBM watsonx.data (Milvus) Primary vector store for high-scale RAG
IBM watsonx.data (OpenSearch) Vector + BM25 hybrid search
IBM DataStax Astra DB (HCD) Alternative vector store for global distribution

Rules

  • Preferred embedding model: ibm/slate-125m-english-rtrvr (dim=768)
  • Preferred generation models: ibm/granite-3-8b-instruct, meta-llama/llama-3-3-70b-instruct
  • Use ibm_watsonx_ai.foundation_models.Embeddings for embedding generation
  • Use langchain_ibm.WatsonxLLM or ibm_watsonx_ai inference API for generation
  • Chunking default: RecursiveCharacterTextSplitter(chunk_size=512, chunk_overlap=128)
  • Hybrid search: always combine vector + BM25 (weight: 70% vector, 30% BM25)
  • Reranking: use ibm/slate-125m-english-rtrvr cross-encoder or BM25 score fusion

Scope

  • RAG architecture selection (Milvus vs OpenSearch vs AstraDB)
  • Chunking strategy optimisation for different document types
  • IBM watsonx.ai embedding and generation integration
  • Hybrid search design and score normalisation
  • RAG evaluation with RAGAS metrics
  • MCP server design for RAG tool exposure

RAG Architecture Decision Matrix

Criterion Milvus OpenSearch AstraDB
Scale Billion-scale Million-scale Global scale
Hybrid search Manual Native BM25 Manual
Deployment IBM watsonx.data IBM watsonx.data IBM HCD SaaS
Best for Large-scale RAG Enterprise search + RAG Global SaaS RAG

Procedure

Phase 1: Embedding Generation

from ibm_watsonx_ai import Credentials
from ibm_watsonx_ai.foundation_models import Embeddings

embedder = Embeddings(
    model_id="ibm/slate-125m-english-rtrvr",
    credentials=Credentials(url="https://us-south.ml.cloud.ibm.com", api_key=IBM_API_KEY),
    project_id=WATSONX_PROJECT_ID,
)
query_vector = embedder.embed_query(user_question)
doc_vectors = embedder.embed_documents(chunks)

Read the full file on GitHub · 121 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. 2mo ago First seen · 121 lines · 104 tokens per session scan A 9f9475de8e7f

Subscribe to this mod's changes

rag-pipeline-builder is a skill published in the GitHub repository ibm-self-serve-assets/building-blocks (28 stars, last pushed yesterday), licensed Apache-2.0. It adds 104 tokens to every session and 1,201 once invoked, about $0.0004 per session on Opus 5.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

rag-pipeline-builder compared with skills from other repositories

rag-pipeline-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rag-pipeline-builderibm-self-serve-assets/building-blocksSkill28yesterdayApache-2.0A104Claude Code, Codex
embeddingsruvnet/rufloSkill81kyesterdayMITA62Claude Code
agent-platform-rag-engine-managementgoogle/skillsSkill22kyesterdayApache-2.0A85Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill33kyesterdayMITA54Claude Code, Codex
9router-embeddingsdecolua/9routerSkill32k9d agoMITA66Claude Code, Codex
embedding-strategiesforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A37Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.8k3d agoApache-2.0A30Claude Code, Codex