2 ms·
Recursive character splitting is heavily used in retrieval-augmented applications (RAG) It's a good one-liner solution that is easy to understand and implement
by thuwarakesh 2y ago
Recursive character splitting is heavily used in retrieval-augmented applications (RAG)
It's a good one-liner solution that is easy to understand and implement. Yet, its ability to chunk the text meaningfully could be better. This is because it assumes that neighboring sentences are related. In reality, it doesn't have to be.
An alternative method, semantic chunking, gives more promising results. It splits the text only when the semantic meaning of the subsequent sentences changes significantly. The result is that chunks mostly contain a single topic and capture as many related sentences as possible without relying on fixed token size restrictions.