Advanced Book RAG Chunker
Generates retrieval-optimized JSONL chunks from books using structure-aware splitting, late chunking, and Anthropic-style contextual prefixes.
This skill automates the complex process of segmenting long-form book content into semantic units optimized for RAG (Retrieval-Augmented Generation). It implements industry-leading techniques like structure-aware splitting on H2/H3 headings to avoid mid-paragraph breaks, late chunking to preserve anaphora across paragraphs, and Claude-powered contextual prefixes that situate each chunk within the broader narrative. By producing a canonical chunks.jsonl file, it ensures consistent search performance across pgvector, OpenAI, Gemini, and Claude, making it essential for developers building high-fidelity AI-powered book search or research tools.