pub fn split(content: &str) -> Vec<String>Expand description
Splits a memory’s content into the sentence windows indexed as extra retrieval keys for it. Returns nothing when the content is a single chunk, because the whole-memory vector already covers that case.
A sentence ends at ., ;, ! or ? followed by whitespace, outside
backticks. Requiring the whitespace is what keeps IPs, decimals, versions
and paths whole. Fragments under MIN_CHUNK_CHARS merge into the next
sentence (a short tail into the previous one), and more than MAX_CHUNKS
sentences are grouped evenly so every sentence stays covered.