Skip to content

Commit

Permalink
Update haystack/components/preprocessors/recursive_splitter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Husch Lee <[email protected]>
  • Loading branch information
davidsbatista and sjrl authored Dec 19, 2024
1 parent bc4dfbd commit 371028c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/recursive_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _apply_overlap(self, chunks: List[str]) -> List[str]:
if overlap == chunks[idx - 1]:
logger.warning(
"Overlap is the same as the previous chunk. "
"Consider increasing the `split_overlap` parameter or decreasing the `split_length` parameter."
"Consider increasing the `split_length` parameter or decreasing the `split_overlap` parameter."
)
current_chunk = overlap + chunk
overlapped_chunks.append(current_chunk)
Expand Down

0 comments on commit 371028c

Please sign in to comment.