grepai-chunking

Configure chunking.size and chunking.overlap in .grepai/config.yaml for GrepAI embeddings.

18|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-chunking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grepai-chunking
Source: https://github.com/yoanbernabeu/grepai-skills/tree/main/skills/indexing/grepai-chunking
Command: npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-chunking

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GrepAI chunking configuration enables precise control over how source files are split into chunks for embeddings, balancing context and index size to improve search relevance.

Core Features & Use Cases

  • Configurable chunk size and overlap: Tune tokens per chunk and shared context to fit your codebase.
  • Guided recommendations: Provides language-based defaults to optimize indexing for verbose or concise languages.
  • Use Case: Apply chunking strategies to large monorepos to improve search precision and performance.

Quick Start

Add or update the GrepAI config by setting chunking.size and chunking.overlap in your .grepai/config.yaml. Then re-index your project to reflect new chunk boundaries.

Frequently Asked Questions about grepai-chunking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure chunk size and overlap for code embeddings?

To configure code embeddings chunking, you set the chunking.size and chunking.overlap parameters in your .grepai/config.yaml file. This controls how source files are split into tokens to balance context and index size for search relevance.

What is the best way to improve search precision in large monorepos?

Improving search precision in large monorepos involves applying targeted chunking strategies to your source code indexing. By tuning chunk size and shared overlap context in the YAML configuration, you optimize embedding accuracy and performance across the repository.

How does chunking affect source code indexing and search relevance?

Chunking affects source code indexing by splitting files into token-based chunks with configurable boundaries and overlap. Properly sized chunks preserve local context while keeping the index manageable, directly boosting the accuracy of code search embeddings.

Can I use language-specific defaults for code chunking configuration?

Yes, you can use language-specific recommendations for code chunking configuration. The system provides guided defaults to optimize indexing, adjusting boundaries and token sizes based on whether the programming language is verbose or concise.

Do I need a specific file format to set up tokenization boundaries?

You need a YAML-based configuration file located at .grepai/config.yaml to set up tokenization boundaries. This file defines the chunking parameters and provides visual boundaries to guide the indexing process for your codebase.