🔧 AI Nachrichten Neil Patel: Reddit Is Deleting 25,000 Posts a Day #shorts(27.08.2026 um 20:05 Uhr)
🔧 AI Nachrichten OpenAI: Build agent-ready sites with WebMCP(25.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten OpenAI: How to Manage Your Workspace With ChatGPT Work(25.08.2026 um 22:17 Uhr)
🔧 AI Nachrichten OpenAI: How to Build a Personalized Meal Planner with ChatGPT Work(27.08.2026 um 18:16 Uhr)
🔧 AI Nachrichten OpenAI: Delivering more meals to more moms with ChatGPT(27.08.2026 um 23:30 Uhr)
🔧 AI Nachrichten OpenAI: Getting Started with ChatGPT Work(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Build a Shareable Site(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Plugins & Skills(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Scheduled Tasks(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Use Your Computer and Browser(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten Neil Patel: Reddit Is Deleting 25,000 Posts a Day #shorts(27.08.2026 um 20:05 Uhr)
🔧 AI Nachrichten OpenAI: Build agent-ready sites with WebMCP(25.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten OpenAI: How to Manage Your Workspace With ChatGPT Work(25.08.2026 um 22:17 Uhr)
🔧 AI Nachrichten OpenAI: How to Build a Personalized Meal Planner with ChatGPT Work(27.08.2026 um 18:16 Uhr)
🔧 AI Nachrichten OpenAI: Delivering more meals to more moms with ChatGPT(27.08.2026 um 23:30 Uhr)
🔧 AI Nachrichten OpenAI: Getting Started with ChatGPT Work(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Build a Shareable Site(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Plugins & Skills(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Scheduled Tasks(28.08.2026 um 22:51 Uhr)
🔧 AI Nachrichten OpenAI: Use Your Computer and Browser(28.08.2026 um 22:51 Uhr)

26 🕛 kürzlich 4 Min Lesezeit CVE-RADAR
0

RAG - Chunking

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




What is chunking



Chunking is the process of breaking data into smaller pieces called chunks. Chunking happens before the data is fed into an embedding model, which converts each chunk into a vector (point) and stores the converted vectors in a vector database.






Why chunking Matters in RAG



Data can contain different types of context while still relating to the same topic.





Even an entire document can be stored as a single chunk. However, the purpose of chunking is to split the data into smaller meaningful sections so that only relevant data is retrieved for the user query while avoiding irrelevant information.






Chunking Method(Discrete way - formula methodology)




  • Fixed Chunking



Fixed chunking is the most common chunking method. In this approach, a fixed character or token limit is assigned to every chunk.



There is no single best chunking strategy for all datasets. Choosing the right chunk size usually requires a trial-and-error approach.



Disadvantage

A chunk may break in the middle of a sentence, resulting in incomplete context. This can reduce retrieval quality and may lead to irrelevant results.



Solution

One way to overcome this issue is to allow the chunk to continue until the sentence ends by checking for punctuation such as "." or spaces.




  • Overlapping chunking



In some cases, related information may be stored far apart in vector space due to the embedding model’s understanding. As a result, the LLM may miss relevant information during retrieval.



To overcome this issue, overlapping chunking is used.



In overlapping chunking, each chunk includes a portion of the previous chunk’s ending content. This helps the embedding model place related chunks closer together in the vector database.



The purpose of overlapping is to improve retrieval by making semantically related chunks easier to find.



Disadvantage



There is a possibility that irrelevant information may also be retrieved because of the overlap.



Example



Suppose:



Paragraph 1 is related to Topic A

Paragraph 2 is related to Topic B



If overlapping is applied, a query about Topic B may also retrieve some information from Topic A because part of Paragraph 1 overlaps with Paragraph 2.



In such scenarios, storing these chunks closer together may not be necessary. This is where semantic chunking becomes useful.




  • Semantic Chunking



Another scenario is when two paragraphs discuss the same topic but are not strongly related to each other. Normally, these paragraphs may still be stored nearby in the vector database. In such cases, overlapping chunking may not be necessary.



Semantic chunking solves this problem by grouping content based on meaning rather than fixed size.



In this method, each sentence is compared with the previous chunk using a similarity threshold value.



If the similarity score is below the threshold value, the sentence becomes a separate chunk.

If the similarity score is above the threshold value, it is added to the current chunk.



Libraries such as NLTK can be used to implement semantic chunking. The threshold value is configurable based on the use case.




  • Embedded Chunking



In embedding-based chunking, embedding models are used instead of libraries like NLTK.



This method works by calculating cosine similarity between sentences and grouping semantically similar sentences into chunks.



Advantage

Better semantic understanding

More accurate chunk boundaries



Disadvantage

Higher computational cost

Additional embedding model usage cost






Choosing the Right Chunking Method



Choosing a chunking method always involves trade-offs. There is no single chunking strategy that works for all datasets.



The best chunking method depends on:



Dataset type

Cost

Time

Retrieval accuracy requirements

Embedding model behavior



Different applications may require different chunking strategies to achieve the best RAG performance.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 58%
🟡 In Evaluierung 20%
🟢 Keine Auswirkung 18%
Spannende Innovation 5%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
How to Manage Your Workspace With ChatGPT Work
2 Quellen
Build agent-ready sites with WebMCP
1 Quelle
Reddit Is Deleting 25,000 Posts a Day #shorts
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten RAG - Chunking

Thematisch verwandte Begriffe: Chunking · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...