Advanced Chunking Techniques: Semantic & LLM-Based Chunking (Simply!) Explained
Key Takeaways
Explains advanced chunking techniques, including semantic and LLM-based chunking, for improving retrieval quality in RAG systems
Full Transcript
Are you ready to learn about how professional rack applications chunk their text? In our last video, we talked about some basic chunking strategies such as splitting large documents up sentence by sentence or section by section. But these chunking methods are missing something. Sentence and section based chunking does not guarantee that each chunk will have an independent meaning. Semantic chunking is designed so that each chunk has a distinct meaning. Here's how it works. First, we take two sentences. Then we calculate how semantically different these sentences are from each other by measuring a similarity score via their vector embeddings. If the similarity score is high, then the sentences are combined together to make a chunk. If the score is too low, then a chunk is formed starting with the new sentence. Alternatively, we could do large language model based chunking. In short, we give the text to a language model and ask it to pick it apart into different sections. This has a ton of advantages, mostly because LLMs have extremely deep understanding of language and can chunk extremely effectively. However, this is a really slow method and could cost us quite a bit of money if we use larger models. Also, how much can we trust the output of an LLM? Lately, there's an even newer chunking method called late chunking that keeps contextual information from one chunk to another. But I'm getting ahead of myself. That will have to wait for a future video. So, stay tuned. [Music]
Original Description
Fixed-size chunking is breaking your RAG system 💀
When you split text into arbitrary 200-word chunks, you're destroying the natural flow of information.
In this short video, Femke goes through some advanced chunking techniques (semantic chunking, and LLM-based chunking) that can significantly improve your retrieval quality.
But here's where it gets interesting:
Late chunking - this technique changes the game, more about that one in the next video.
Chapters:
00:00 Introduction
00:13 Pitfalls of Basic Chunking Techniques
00:25 Semantic Chunking
00:45 LLM-Based Chunking
👉 Get your copy of the free advanced RAG ebook: https://weaviate.io/ebooks/advanced-rag-techniques?utm_source=youtube&utm_medium=youtube&utm_campaign=rag&utm_content=video_post_268003094
Other videos you might like👇
Simple chunking techniques:
https://youtu.be/HJHSNVqQBJI
Paper review video: Late chunking improves context recall in RAG pipelines
https://youtu.be/buzWGXOydD8
▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT WITH US ▬▬▬▬▬▬▬▬▬▬▬▬
- Visit http://weaviate.io/
- Star us on GitHub https://github.com/weaviate/weaviate
- Stay updated and subscribe to our newsletter: https://newsletter.weaviate.io/
- Try out Weaviate Cloud Services for free here: https://console.weaviate.cloud/
Got a question?
- Forum: https://forum.weaviate.io/
- Slack: https://weaviate.io/slack
Connect with us on
- Twitter: https://twitter.com/weaviate_io
- LinkedIn: https://www.linkedin.com/company/weaviate-io/
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
More on: RAG Basics
View skill →Related Reads
📰
📰
📰
📰
How to Read a Research Paper Without Burning an Afternoon
Dev.to · Paul Crinigan
A lightweight workflow for keeping up with AI conference papers
Dev.to · Daniel
Why CitedEvidence Believes Great Researchers Read Less Than You Think
Medium · AI
How to Write a Literature Review That Actually Argues Something
Medium · Machine Learning
Chapters (4)
Introduction
0:13
Pitfalls of Basic Chunking Techniques
0:25
Semantic Chunking
0:45
LLM-Based Chunking
🎓
Tutor Explanation
DeepCamp AI