Start natural voice conversations anytime with GPT-LiveTrack the latest safety rules for bigger modelsChatGPT Voice feels more natural in live conversationTranslate naturally during calls, meetings, and travelEasily automate multi-step daily tasks at lower costMake Claude easier to deploy through AWSClaude Fable 5 is usable again after the pauseKeep research tools and analysis in one placeKeep research tools in one place and move fasterDelegate more everyday coding work to ClaudeMeasure how well AI agents handle ambiguous biology research judgmentsClaude Sonnet 5 is built for heavier coding and work tasksHP partnership makes enterprise rollout easierTag Claude in Slack to delegate tasks with your whole teamHand Slack tasks to Claude more easilyConfidential AI gets stronger for sensitive workloadsHelps defenders validate and fix vulnerabilitiesGemini API key management is moving to safer auth keysGoogle Home Speaker makes home control feel naturalClaude expands more easily into Korean businesses and researchStart natural voice conversations anytime with GPT-LiveTrack the latest safety rules for bigger modelsChatGPT Voice feels more natural in live conversationTranslate naturally during calls, meetings, and travelEasily automate multi-step daily tasks at lower costMake Claude easier to deploy through AWSClaude Fable 5 is usable again after the pauseKeep research tools and analysis in one placeKeep research tools in one place and move fasterDelegate more everyday coding work to ClaudeMeasure how well AI agents handle ambiguous biology research judgmentsClaude Sonnet 5 is built for heavier coding and work tasksHP partnership makes enterprise rollout easierTag Claude in Slack to delegate tasks with your whole teamHand Slack tasks to Claude more easilyConfidential AI gets stronger for sensitive workloadsHelps defenders validate and fix vulnerabilitiesGemini API key management is moving to safer auth keysGoogle Home Speaker makes home control feel naturalClaude expands more easily into Korean businesses and research
Official sources only. Rumors, leaks, and get-rich schemes are excluded.
← Back to glossary
GlossaryAI term

Chunking

チャンク分割

Definition

Chunking is a preprocessing step that splits long documents into appropriately sized pieces for search and RAG. Good chunking balances context preservation with retrieval precision.

When importing a 100-page internal manual into a RAG system, you can't just pass it to the LLM as-is. Beyond context window limitations, search accuracy suffers significantly. Chunking is a preprocessing technique that splits documents into appropriately sized fragments (chunks) to achieve optimal granularity for both retrieval and generation.

Why Splitting Is Necessary

In RAG's retrieval step, documents semantically close to the user's question are found. But if an entire document is converted into a single vector, the characteristics of individual topics get diluted and search accuracy drops dramatically. For example, if you want to know "how to apply for paid leave" but the entire employment regulations are in one chunk, the vector becomes a vague mix of payroll, attendance management, and other information. Proper splitting enables accurate retrieval of only the parts truly relevant to the question.

Fixed-Length Chunking vs. Semantic Chunking

The simplest method is fixed-length chunking, which mechanically splits by character or token count. A range of 500-1,000 tokens is a common guideline. It's easy to implement and fast to process, but carries the risk of cutting mid-sentence or breaking semantic coherence.

Semantic chunking, by contrast, considers semantic coherence when splitting. It detects paragraph and heading boundaries, and topic transitions to divide text into natural units, improving search accuracy. LangChain's RecursiveCharacterTextSplitter is a practical approach that attempts hierarchical splitting in the order of headings, paragraphs, sentences, and characters.

The Importance of Overlap

Adding overlap (redundant portions) between chunks is also an important strategy. For example, giving 500-token chunks an overlap of 50-100 tokens preserves context near split boundaries. Because the end of the previous chunk and the beginning of the next chunk overlap, information loss across boundaries can be prevented.

The Chunk Size Trade-off

Chunk size selection involves trade-offs. Smaller chunks (200-300 tokens) improve search accuracy but tend to lack necessary context. Larger chunks (1,000-2,000 tokens) contain rich context but also include irrelevant information and increase token costs. Since the optimal size varies by data characteristics and use case, testing and adjusting with actual queries is the practical approach. Using smaller chunks for FAQ-style content and larger chunks for technical documentation is an effective strategy.

h
hayami

Stay on top of OpenAI, Google & Anthropic updates. An AI digest for business professionals.

Source Policy

We use only official sources. Each article links to the original announcement so you can verify it yourself.

© 2026 hayami. All rights reserved.