Splits Markdown into overlapping chunks of about ragConfig.chunkSize
characters. Blog content may carry raw HTML (older posts, or anything that
got past the write-time sanitizer), so tags are stripped first. Each chunk starts with the document title and its
nearest heading, so a chunk still makes sense when retrieved on its own.
Splits Markdown into overlapping chunks of about
ragConfig.chunkSizecharacters. Blog content may carry raw HTML (older posts, or anything that got past the write-time sanitizer), so tags are stripped first. Each chunk starts with the document title and its nearest heading, so a chunk still makes sense when retrieved on its own.