Xpersona
R

Rag Pipelines

CLAWHUB · Unverified

Deep RAG workflow—document ingestion, chunking, metadata, retrieval and reranking, grounding and citations, evaluation, and failure modes (hallucination, sta... Skill: Rag Pipelines Owner: codekungfu Summary: Deep RAG workflow—document ingestion, chunking, metadata, retrieval and reranking, grounding and citations, evaluation, and failure modes (hallucination, sta... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-25T00:01:06.205Z | auto - Initial release of the "rag-pipelines" skill, featuring a comprehensive six-stage workflow for building and debugging retrieval-augm

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174hbct7jzfnq4tb6w04gnans83gh5h:rag-pipelines
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-codekungfu-rag-pipelines/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

6,203 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: rag-pipelines
description: Deep RAG workflow—document ingestion, chunking, metadata, retrieval and reranking, grounding and citations, evaluation, and failure modes (hallucination, staleness). Use when building or debugging retrieval-augmented generation systems.
---

# RAG Pipelines (Deep Workflow)

RAG quality is dominated by **chunking**, **retrieval**, and **evaluation**—not the LLM alone. Treat the system as data engineering plus generation with explicit failure modes.

## When to Offer This Workflow

**Trigger conditions:**

- Building Q&A over internal docs, support assistants, or copilots
- Hallucinations, wrong citations, or stale answers
- New content types (PDF, HTML, code repositories)

**Initial offer:**

Use **six stages**: (1) task & success criteria, (2) ingestion & cleaning, (3) chunking & metadata, (4) retrieval & rerank, (5) generation & grounding, (6) evaluation & monitoring). Confirm embedding model and retrieval stack (vector DB, search engine, hybrid).

---

## Stage 1: Task & Success Criteria

**Goal:** Define what a “good” answer contains: required citations, length, tone, and when to refuse.

**Exit condition:** Written rubric with examples of acceptable vs unacceptable answers.

---

## Stage 2: Ingestion & Cleaning

**Goal:** Deterministic text extraction (strip boilerplate, handle PDF/OCR if needed); deduplicate documents; track source URL and `updated_at` for staleness.

### Practices

- Version pipelines when parsers change (re-embed job)

---

## Stage 3: Chunking & Metadata

**Goal:** Tune chunk size and overlap to query patterns—not one global token count for all content.

### Practices

- Attach metadata for ACL filtering (tenant, product area)
- Prefer structure-aware splits for docs (headings, sections)

---

## Stage 4: Retrieval & Rerank

**Goal:** Hybrid lexical + dense retrieval often beats vector-only for keyword-heavy queries.

### Practices

- Cross-encoder reranking on top-k for quality (watch latency)
- Query rewriting for multi-turn contexts

---

## Stage 5: Generation & Grounding

**Goal:** System prompts that require using only provided context; explicit “not found” behavior; optional citation format (snippet, doc id, link).

---

## Stage 6: Evaluation & Monitoring

**Goal:** Offline golden questions with expected supporting docs; online thumbs-down reasons; monitor retrieval hit rate, nDCG@k, and age of sources used.

---

## Final Review Checklist

- [ ] Rubric and refusal behavior defined
- [ ] Ingestion deterministic; dedupe and versioning
- [ ] Chunking and metadata match queries and ACLs
- [ ] Hybrid retrieval and rerank tuned with metrics
- [ ] Grounding and citation behavior enforced in prompts
- [ ] Offline eval plus production monitoring

## Tips for Effective Guidance

- Debug retrieval before blaming the LLM.
- Long chunks hurt precision; short chunks hurt context—sweep experiments.
- See also **vector-databases** and **llm-evaluation** skills for depth.

## Handling Deviati

_meta.json

{
  "ownerId": "kn79jhw85bss2z4dbpshhxg64x82zn3p",
  "slug": "rag-pipelines",
  "version": "1.0.0",
  "publishedAt": 1774396866205
}

skill-card.md

## Description:

Deep RAG workflow - document ingestion, chunking, metadata, retrieval and reranking, grounding and citations, evaluation, and failure modes including hallucination and staleness.

This skill is ready for commercial/non-commercial use.

## Publisher:

[codekungfu](https://clawhub.ai/user/codekungfu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to design, debug, and review retrieval-augmented generation systems for internal documentation, support assistants, copilots, PDFs, HTML, and code repositories.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Private or access-controlled document collections may be exposed if retrieval pipelines do not preserve source access controls.

Mitigation: Preserve ACL filtering and source auditability when applying the workflow to private corpora.

Risk: High-stakes RAG answers can still be incorrect, stale, or insufficiently grounded.

Mitigation: Use human review gates, citation audits, and production monitoring for high-stakes use cases.

## Reference(s):

- [Rag Pipelines on ClawHub](https://clawhub.ai/codekungfu/skills/rag-pipelines)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Text]

**Output Format:** [Markdown guidance with checklists and structured workflow stages]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Does not execute code or request credentials; intended as workflow guidance for an agent.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Rag Pipelines and adjacent AI workflows.