# content defined chunking

Content-defined chunking is an algorithm that splits file data into variable-length chunks with deterministic boundaries to support deduplication.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Certified Splitting: Decidability and Anchor Supply for Maximal-Munch Tokenization

DevFeed: [Certified Splitting: Decidability and Anchor Supply for Maximal-Munch Tokenization](<https://devfeed.tech/articles/certified-splitting-decidability-and-anchor-supply-for-maximal-munch-tokenization-113767.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.08854>)

Author: Nicklas Nidh\\"ogg

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [tokenization](<https://devfeed.tech/topics/tokenization.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [Finite-state machine](<https://devfeed.tech/topics/finite-state-machine.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [anchor](<https://devfeed.tech/tags/anchor.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [audits](<https://devfeed.tech/tags/audits.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [budget](<https://devfeed.tech/tags/budget.md>), [campaign](<https://devfeed.tech/tags/campaign.md>), [certificate](<https://devfeed.tech/tags/certificate.md>), [certification](<https://devfeed.tech/tags/certification.md>), [commit](<https://devfeed.tech/tags/commit.md>), [completeness](<https://devfeed.tech/tags/completeness.md>), [covering](<https://devfeed.tech/tags/covering.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-fl](<https://devfeed.tech/tags/cs-fl.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [decidability](<https://devfeed.tech/tags/decidability.md>), [either](<https://devfeed.tech/tags/either.md>), [follow](<https://devfeed.tech/tags/follow.md>), [free](<https://devfeed.tech/tags/free.md>), [input](<https://devfeed.tech/tags/input.md>), [inside](<https://devfeed.tech/tags/inside.md>), [tokenization](<https://devfeed.tech/tags/tokenization.md>)

### AI overview

The paper defines certified byte windows whose occurrences identify safe starting points for independent maximal-munch scans, preserving sequential token boundaries without speculation or a fixup pass. It decides certification from the token set using two methods: an online method with a completeness cutoff for literal vocabularies, and an offline armed-run verifier for arbitrary regular token sets. It also derives bounds on boundary movement after edits, gives exact conditions for delimiter-based cuts, and presents tools to measure anchor-free spans and detect boundary differences between token sets. The abstract says the results have executable checks and that a threaded scanner in the munch library reproduced the sequential boundary stream on an archived campaign corpus.

### Source excerpt

arXiv:2610.08854v2 Announce Type: replace-cross Abstract: A certificate is a window of bytes with an origin inside it such that, wherever the window occurs in a completely tokenizable input, the token covering the window's final byte begins at that origin. Certification is decided from the token set alone, and a certificate's occurrences mark where work may soundly begin. This paper decides certification and applies it to cuts, edits and audits. It is decided two ways, online with a completeness cutoff for literal vocabularies and offline through an armed-run verifier for arbitrary regular token sets. Either route, under a declared window budget, yields the anchor inventory, with a counterexample on each refutation. Cutting a completely tokenizable input at certified anchors and scanning the chunks independently reproduces the sequential segmentation, with no speculation or fixup pass. A tokenizability-preserving byte substitution moves boundaries only strictly between the certified anchors witnessed in the unchanged bytes on either side of it. For tokens of length at most L, an edit at p moves no boundary at or below p - L + 1. Cutting at every occurrence of a delimiter is sound exactly when it occurs only at token starts, and cutting after every occurrence exactly when it occurs only at token ends. Two instruments follow. The anchor-free span of a finite certified inventory is decided bounded or not with its exact supremum, three for the UTF-8 shape; and a differential auditor decides whether two token sets place different boundaries on an input both tokenize, with a differing input. Every theorem carries an executable check. Every measurement is a named program's output or arithmetic on such outputs, and each program ships with the paper or is pinned by commit in the munch library. That library's threaded scanner splits the archived campaign corpus at certified anchors and reproduces the sequential boundary stream byte for byte.

## EP229: 8 Chunking strategies for RAG-based agents

DevFeed: [EP229: 8 Chunking strategies for RAG-based agents](<https://devfeed.tech/articles/ep229-8-chunking-strategies-for-rag-based-agents-89410.md>)

Original publisher: [Read original article](<https://blog.bytebytego.com/p/ep229-8-chunking-strategies-for-rag>)

Author: ByteByteGo

Published: 2026-10-17T15:30:51Z

Content type: article

Language: en

Sources: [ByteByteGo](<https://devfeed.tech/sources/bytebytego.md>)

Topics: [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [html](<https://devfeed.tech/tags/html.md>), [rag](<https://devfeed.tech/tags/rag.md>)

### AI overview

The issue outlines eight ways to split documents for retrieval augmented generation systems, including fixed size, recursive, semantic, agentic, late and hierarchical chunking. It also gives brief explainers on neural translation, agent skills and differences between PostgreSQL and MySQL.

### Source excerpt

Which chunking strategy are you running in production?

## What's New in Syncfusion Document SDKs 2026 Volume 3: AI Chunking, PDF Security, and Data Extraction

DevFeed: [What's New in Syncfusion Document SDKs 2026 Volume 3: AI Chunking, PDF Security, and Data Extraction](<https://devfeed.tech/articles/what-s-new-in-syncfusion-document-sdks-2026-volume-3-ai-chunking-pdf-security-and-data-extraction-88791.md>)

Original publisher: [Read original article](<https://www.syncfusion.com/blogs/post/document-sdks-2026-volume-3>)

Author: Arun Kumar Chandrakesan

Published: 2026-10-16T14:52:27Z

Content type: release

Language: en

Sources: [Syncfusion](<https://devfeed.tech/sources/syncfusion-blogs.md>)

Topics: [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [document ai](<https://devfeed.tech/topics/document-ai.md>), [Security](<https://devfeed.tech/topics/security.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [aes-encryption](<https://devfeed.tech/tags/aes-encryption.md>), [ai-document-chunking](<https://devfeed.tech/tags/ai-document-chunking.md>), [digital-signature-validation](<https://devfeed.tech/tags/digital-signature-validation.md>), [document-chunking-library](<https://devfeed.tech/tags/document-chunking-library.md>), [document-processing](<https://devfeed.tech/tags/document-processing.md>), [document-sdks](<https://devfeed.tech/tags/document-sdks.md>), [document-sdks-release-highlights-syncfusion](<https://devfeed.tech/tags/document-sdks-release-highlights-syncfusion.md>), [intelligent-document-extraction](<https://devfeed.tech/tags/intelligent-document-extraction.md>), [javascript-pdf-library](<https://devfeed.tech/tags/javascript-pdf-library.md>), [net](<https://devfeed.tech/tags/net.md>), [net-data-extraction-library](<https://devfeed.tech/tags/net-data-extraction-library.md>), [net-document-chunking-library](<https://devfeed.tech/tags/net-document-chunking-library.md>), [pdf-security](<https://devfeed.tech/tags/pdf-security.md>), [pdf-security-and-validation](<https://devfeed.tech/tags/pdf-security-and-validation.md>), [rag-applications](<https://devfeed.tech/tags/rag-applications.md>), [release-highlights](<https://devfeed.tech/tags/release-highlights.md>), [security](<https://devfeed.tech/tags/security.md>), [syncfusion](<https://devfeed.tech/tags/syncfusion.md>), [syncfusion-document-sdks-2026-volume-3](<https://devfeed.tech/tags/syncfusion-document-sdks-2026-volume-3.md>)

### AI overview

Syncfusion Document SDKs 2026 Volume 3 adds a preview .NET library for context-aware document chunking for AI retrieval, production-ready JavaScript PDF features, PDF security and signature validation, SVG-to-PDF conversion, and expanded data extraction. The release also adds barcode and QR code recognition that returns extracted data as JSON.

### Source excerpt

Explore Syncfusion Document SDKs 2026 Volume 3, featuring a new .NET Document Chunking Library, PDF signature validation, SVG-to-PDF conversion, and barcode recognition.

## Choosing a Chunking Strategy for Your LLM Apps: A Decision-Tree Approach

DevFeed: [Choosing a Chunking Strategy for Your LLM Apps: A Decision-Tree Approach](<https://devfeed.tech/articles/choosing-a-chunking-strategy-for-your-llm-apps-a-decision-tree-approach-87718.md>)

Original publisher: [Read original article](<https://machinelearningmastery.com/choosing-a-chunking-strategy-for-your-llm-apps-a-decision-tree-approach/>)

Author: Bala Priya C

Published: 2026-10-15T11:00:00Z

Content type: tutorial

Language: en

Sources: [MachineLearningMastery.com](<https://devfeed.tech/sources/machinelearningmastery-com.md>)

Topics: [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [AI-driven information retrieval](<https://devfeed.tech/topics/ai-driven-information-retrieval.md>), [Vectors & LLMs](<https://devfeed.tech/topics/vectors-llms.md>)

Tags: [context-window](<https://devfeed.tech/tags/context-window.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data](<https://devfeed.tech/tags/data.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>)

### AI overview

This tutorial presents a six-question decision tree for choosing a chunking strategy in retrieval-augmented generation systems. It matches strategies such as document-based, late, adaptive, hierarchical, semantic, agentic, recursive, and fixed-size chunking to document structure, context needs, information density, quality, cost, and latency. It also describes common failure signals and recommends validating a simple starting strategy against actual queries and retrieval results.

### Source excerpt

In this article, you will learn how to choose the right chunking strategy for a retrieval-augmented generation system by working through a structured decision tree...

## Why Your Backups Are Too Big: A Practical Guide to Content-Defined Chunking

DevFeed: [Why Your Backups Are Too Big: A Practical Guide to Content-Defined Chunking](<https://devfeed.tech/articles/why-your-backups-are-too-big-a-practical-guide-to-content-defined-chunking-51497.md>)

Original publisher: [Read original article](<https://www.linux.com/contributed/why-your-backups-are-too-big-a-practical-guide-to-content-defined-chunking/>)

Author: Linux.com Editorial Staff

Published: 2026-08-26T12:50:59Z

Content type: tutorial

Language: en

Sources: [Linux.com](<https://devfeed.tech/sources/linux-com.md>)

Topics: [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [backups](<https://devfeed.tech/topics/backups.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [data](<https://devfeed.tech/topics/data.md>), [hashing](<https://devfeed.tech/topics/hashing.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [backups](<https://devfeed.tech/tags/backups.md>), [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [contributed](<https://devfeed.tech/tags/contributed.md>), [critical](<https://devfeed.tech/tags/critical.md>), [data](<https://devfeed.tech/tags/data.md>), [encrypted](<https://devfeed.tech/tags/encrypted.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [guide](<https://devfeed.tech/tags/guide.md>), [hash](<https://devfeed.tech/tags/hash.md>), [incremental](<https://devfeed.tech/tags/incremental.md>), [lf-silver-member](<https://devfeed.tech/tags/lf-silver-member.md>), [practical](<https://devfeed.tech/tags/practical.md>), [storage](<https://devfeed.tech/tags/storage.md>)

### AI overview

This practical guide explains why fixed-size chunking can make incremental backups re-upload large portions of changed files. It describes how content-defined chunking uses a rolling hash to create self-resynchronizing boundaries, improving deduplication across snapshots.

### Source excerpt

By Gilles Chehade You change one line in a large file. Your "incremental" backup re-uploads the whole thing anyway. Nine times out of ten, it's not the network, and it's not your storage backend. It's the algorithm deciding where to cut your data into pieces. Every deduplication system works the same way: split data into [...] The post Why Your Backups Are Too Big: A Practical Guide to Content-Defined Chunking appeared first on Linux.com.

## Parquet Content-Defined Chunking

DevFeed: [Parquet Content-Defined Chunking](<https://devfeed.tech/articles/parquet-content-defined-chunking-7438.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/parquet-cdc>)

Author: Krisztian Szucs

Published: 2025-07-25T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [parquet](<https://devfeed.tech/topics/parquet.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [xet](<https://devfeed.tech/topics/xet.md>), [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [dataset](<https://devfeed.tech/topics/dataset.md>)

Tags: [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [data](<https://devfeed.tech/tags/data.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [dedupe](<https://devfeed.tech/tags/dedupe.md>), [hub](<https://devfeed.tech/tags/hub.md>), [parquet](<https://devfeed.tech/tags/parquet.md>), [performance](<https://devfeed.tech/tags/performance.md>), [storage](<https://devfeed.tech/tags/storage.md>), [xet](<https://devfeed.tech/tags/xet.md>)

### AI overview

This article explains how Parquet Content-Defined Chunking (CDC) in PyArrow and Pandas improves deduplication of Parquet files on content-addressable storage systems such as Hugging Face Xet. It describes how CDC reduces data transfer and storage costs by identifying and reusing unchanged data chunks, and demonstrates the behavior across common table modifications.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## Migrating the Hub from Git LFS to Xet

DevFeed: [Migrating the Hub from Git LFS to Xet](<https://devfeed.tech/articles/migrating-the-hub-from-git-lfs-to-xet-7351.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/migrating-the-hub-to-xet>)

Author: Jared Sulzdorf; Joseph Godlewski; Sam Horradarn

Published: 2025-07-15T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [xet](<https://devfeed.tech/topics/xet.md>), [migration](<https://devfeed.tech/topics/migration.md>), [content addressed store](<https://devfeed.tech/topics/content-addressed-store.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Git](<https://devfeed.tech/topics/git.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [cas](<https://devfeed.tech/tags/cas.md>), [content-addressed-store](<https://devfeed.tech/tags/content-addressed-store.md>), [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [git](<https://devfeed.tech/tags/git.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [integration](<https://devfeed.tech/tags/integration.md>), [migration](<https://devfeed.tech/tags/migration.md>), [s3](<https://devfeed.tech/tags/s3.md>), [storage](<https://devfeed.tech/tags/storage.md>), [xet](<https://devfeed.tech/tags/xet.md>)

### AI overview

The article explains Hugging Face's migration of the Hub from Git LFS to Xet. It describes the Git LFS Bridge, background content migrations, content-defined chunking, the content addressed store, and S3-backed storage that enable gradual, large-scale migration without disrupting users.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## Xet is on the Hub

DevFeed: [Xet is on the Hub](<https://devfeed.tech/articles/xet-is-on-the-hub-7570.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/xet-on-the-hub>)

Author: Assaf Vayner; Brian Ronan; Di Xiao; Joseph Godlewski; Sam Horradarn; Jared Sulzdorf

Published: 2025-03-18T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [xet](<https://devfeed.tech/topics/xet.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [hugging face](<https://devfeed.tech/topics/hugging-face.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [migration](<https://devfeed.tech/topics/migration.md>), [parquet](<https://devfeed.tech/topics/parquet.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [content-addressed-store](<https://devfeed.tech/tags/content-addressed-store.md>), [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [hugging-face](<https://devfeed.tech/tags/hugging-face.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [migration](<https://devfeed.tech/tags/migration.md>), [parquet](<https://devfeed.tech/tags/parquet.md>), [performance](<https://devfeed.tech/tags/performance.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [storage](<https://devfeed.tech/tags/storage.md>), [xet](<https://devfeed.tech/tags/xet.md>)

### AI overview

Hugging Face describes migrating the first Model and Dataset repositories from LFS to Xet storage. The article explains how content-defined chunking enables byte-level deduplication, reducing the data transferred for small edits to large files and improving upload performance.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## From Files to Chunks: Improving HF Storage Efficiency

DevFeed: [From Files to Chunks: Improving HF Storage Efficiency](<https://devfeed.tech/articles/from-files-to-chunks-improving-hf-storage-efficiency-7206.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/from-files-to-chunks>)

Author: Jared Sulzdorf; Ann Huang

Published: 2024-11-20T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [xet](<https://devfeed.tech/topics/xet.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [content addressed store](<https://devfeed.tech/topics/content-addressed-store.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [hugging face](<https://devfeed.tech/topics/hugging-face.md>), [Git](<https://devfeed.tech/topics/git.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [content-addressed-store](<https://devfeed.tech/tags/content-addressed-store.md>), [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [dedupe](<https://devfeed.tech/tags/dedupe.md>), [git](<https://devfeed.tech/tags/git.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [performance](<https://devfeed.tech/tags/performance.md>), [storage](<https://devfeed.tech/tags/storage.md>), [xet](<https://devfeed.tech/tags/xet.md>)

### AI overview

Hugging Face's Xet team describes a storage system that splits files into variable-sized chunks using content-defined chunking and a rolling hash. Chunks are stored in a content-addressed store with deduplication, so updates upload only new chunks. The article reports a consistent 50% improvement in storage and transfer performance compared with Git LFS across three iterative development use cases, including the CORD-19 dataset.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## Improving Parquet Dedupe on Hugging Face Hub

DevFeed: [Improving Parquet Dedupe on Hugging Face Hub](<https://devfeed.tech/articles/improving-parquet-dedupe-on-hugging-face-hub-7275.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/improve_parquet_dedupe>)

Author: yuchenglow; Di Xiao

Published: 2024-10-05T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [parquet](<https://devfeed.tech/topics/parquet.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [hugging face](<https://devfeed.tech/topics/hugging-face.md>), [Data analysis](<https://devfeed.tech/topics/data-analysis.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [content-defined-chunking](<https://devfeed.tech/tags/content-defined-chunking.md>), [data](<https://devfeed.tech/tags/data.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [dedupe](<https://devfeed.tech/tags/dedupe.md>), [format](<https://devfeed.tech/tags/format.md>), [hugging-face](<https://devfeed.tech/tags/hugging-face.md>), [parquet](<https://devfeed.tech/tags/parquet.md>), [storage](<https://devfeed.tech/tags/storage.md>), [xet](<https://devfeed.tech/tags/xet.md>)

### AI overview

This article examines how Parquet file layout affects byte-level Content-Defined Chunking deduplication on Hugging Face Hub. Experiments show that appending rows deduplicates 99.1% of a 2GB file, while modifying one row achieves 89% deduplication because rewritten column headers contain absolute file offsets.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## Intelligent RAG data chunking: Fetch surrounding chunks

DevFeed: [Intelligent RAG data chunking: Fetch surrounding chunks](<https://devfeed.tech/articles/intelligent-rag-data-chunking-fetch-surrounding-chunks-78706.md>)

Original publisher: [Read original article](<https://www.elastic.co/search-labs/blog/advanced-chunking-fetch-surrounding-chunks>)

Author: Sunile Manjee

Published: 2024-06-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Elasticsearch Labs](<https://devfeed.tech/sources/elasticsearch-labs.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [AI search](<https://devfeed.tech/topics/ai-search.md>), [content defined chunking](<https://devfeed.tech/topics/content-defined-chunking.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-search](<https://devfeed.tech/tags/ai-search.md>), [building](<https://devfeed.tech/tags/building.md>), [database](<https://devfeed.tech/tags/database.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [llm](<https://devfeed.tech/tags/llm.md>), [python](<https://devfeed.tech/tags/python.md>), [rag](<https://devfeed.tech/tags/rag.md>), [vector-database](<https://devfeed.tech/tags/vector-database.md>)

### AI overview

This tutorial presents fetch surrounding chunking, a retrieval-augmented generation pattern that retrieves a matching text chunk and expands context with adjacent chunks. It demonstrates the approach with Elasticsearch vector search and hybrid retrieval, while noting that it works especially well for books and may need adaptation for shorter, distinct sections.

### Source excerpt

Learn about data chunking in RAG and explore fetch surrounding chunking, a pattern in RAG that uses chunking and Elasticsearch to refine LLM responses.