Chapter 8. RAG settings
When you upload a document for retrieval augmented generation (RAG), you can configure the following settings to optimize how the text is processed.
| Maximum chunk length | The maximum word count for each text section ("chunk") created from your uploaded files.
|
| Chunk overlap | The number of words from the end of one text section (chunk) that are repeated at the start of the next one. This overlap helps maintain continuous context across chunks, improving model responses. For example, the following sentence is chunked differently depending on the chunk overlap: "Chunk overlap can improve the quality of model responses." Maximum chunk length = 4, Chunk overlap = 1
Maximum chunk length = 4, Chunk overlap = 0
|
| Delimiter | A character or string that specifies where a text chunk should end. This helps define text boundaries alongside maximum chunk length and overlap, ensuring sentences or paragraphs remain intact. Examples of delimiters:
|