Long documents must be split into chunks before embedding. Overlap between chunks preserves context that would otherwise be cut at a boundary.
Implement chunk_words(text, chunk_size, overlap) that:
text on whitespace into words.chunk_size words joined by single spaces.overlap words.ValueError if overlap >= chunk_size.Example
chunk_words("a b c d e f g", chunk_size=3, overlap=1)
# ['a b c', 'c d e', 'e f g']