Skip to content

Commit

Permalink
nit: fixing value error in documentsplitter for split_by
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni-Alzetta committed Sep 12, 2024
1 parent 56fe94e commit 3bd3e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/preprocessors/document_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _split_into_units(
return self.splitting_function(text)
else:
raise NotImplementedError(
"DocumentSplitter only supports 'word', 'sentence', 'page' or 'passage' split_by options."
"DocumentSplitter only supports 'function', 'page', 'passage', 'sentence' or 'word' split_by options."
)
units = text.split(self.split_at)
# Add the delimiter back to all units except the last one
Expand Down

0 comments on commit 3bd3e3b

Please sign in to comment.