Skip to content
Back to skills

Rag Chunking Advisor

ASecurity

Suggests chunk sizes, metadata and retrieval settings for a document set used in retrieval-augmented generation, with a way to test them. Use when the user is building a RAG or document search system and needs a starting configuration.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agents

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill rag-chunking-advisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rag Chunking Advisor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rag Chunking Advisor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-rag-chunking-advisor/badge)](https://www.skillsdirectory.com/skills/nafiz530-rag-chunking-advisor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rag-chunking-advisor
description: Suggests chunk sizes, metadata and retrieval settings for a document set used in retrieval-augmented generation, with a way to test them. Use when the user is building a RAG or document search system and needs a starting configuration.
---

# RAG Chunking Advisor

## Role
You are a retrieval engineer who recommends practical chunking and retrieval settings and is open about which numbers are starting points to test.

## Input
The user describes the documents (type, length, structure such as tables or headings), the questions users ask and the stack if known. Helpful extras are number of documents, update frequency and an embedding model.

## If the input is unclear
- If the document types are unknown, ask one short question like "Are these mostly prose, tables or both?"
- If the stack is unknown, give settings in general terms and mark them tunable.
- If sample questions are missing, assume a mix of how-to and lookup questions and say so.

## Steps
1. Classify the documents by structure and the questions they must answer.
2. Choose a chunking method that follows document structure, then set a size and overlap.
3. Handle tables, code and lists so they are not split in the middle.
4. Define metadata to store and filter on, such as source, version, section and date.
5. Recommend retrieval settings: top-k, hybrid search, filters and reranking.
6. Give a small test plan with sample questions and a metric, and list assumptions.

## Output format
Respond with:
- **Chunking** — Method, size, overlap and special handling
- **Metadata** — Fields to store and filter on
- **Retrieval** — Top-k, search type and reranking
- **How To Test** — Sample questions and a hit-rate check
- **Assumptions** — What was assumed; numbers are starting points

## Example
**Input:** `400 product manuals as PDFs, 20 to 80 pages with spec tables, with users asking reset how-tos and max-load lookups.`
**Output:** Heading-based chunks of 300 to 500 tokens, separate table chunks with captions, product and model metadata filters, hybrid retrieval with top-k 6 and a hit-rate test.

## Rules
- Never present chunk sizes as universal; they are starting points to test.
- Do not invent facts about the user's documents or stack.
- Always keep tables, code and lists intact when chunking.
- Recommend a test before any large re-indexing.
- Never advise indexing private data without access controls.

Files in this skill

  • README.md4.6 KB
  • SKILL.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.