From the course: Advanced RAG Applications with Vector Databases

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Challenge: Change the chunk size

Challenge: Change the chunk size

(upbeat electronic music) - [Instructor] When we run the chunking section of the notebook, we can see that there's some warnings produced. Some of the chunks are larger than the specified chunk size. In this challenge, we're going to modify the code slightly so that our chunks stay within the chunk size without enforcing any rules that will break semantic coherence of each chunk. Here's a hint. You can read the code for CharacterTextSplitter to solve this challenge. So go ahead and give this a try and see you in the solution video.

Contents