rag-chunking-strategy-advisor

Solid

Given a document type and retrieval goal, recommends the optimal chunking strategy for a RAG pipeline to minimize retrieval failures.

AI & Automation 9 stars 1 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
33
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# RAG Chunking Strategy Advisor ## What this skill does This skill analyzes your document types, content structure, and retrieval goals to recommend the right chunking strategy for your RAG pipeline. Poor chunking is the #1 cause of RAG failures — chunks too large lose precision, chunks too small lose context. This skill picks the right strategy and explains exactly how to implement it. ## How to use ### Claude Code / Cline Copy this file to `.agents/skills/rag-chunking-advisor/SKILL.md` in your project root. Then ask: - *"Use the RAG Chunking Strategy Advisor to help me chunk our legal contract PDFs."* - *"What chunking strategy should I use for markdown documentation with code blocks?"* Provide: - Document type (PDFs, markdown, HTML, code, emails, etc.) - Typical document length - What users will search for (questions, keywords, concepts) - Your embedding model if known ### Cursor / Codex Paste the instructions below along with your document type and retrieval use case. ## The Prompt / Instructions for the Agent When asked to advise on RAG chunking, follow these steps: ### Step 1 — Identify document characteristics Ask or infer: - **Document type**: structured (tables, headers) vs. unstructured (prose) vs. code - **Length**: short (< 1 page), medium (1–20 pages), long (20+ pages) - **Internal structure**: does it have headers, sections, numbered lists, code blocks? - **Query type**: factual lookups, conceptual questions, code search, or multi-hop reasoning? ##...

Details

Author
Notysoty
Repository
Notysoty/openagentskills
Created
5 months ago
Last Updated
6 days ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category