-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
P1High priority, add to the next sprintHigh priority, add to the next sprint
Milestone
Description
In #10152, the return_empty_on_no_match init parameter was added to RegexTextExtractor with a default value of True.
We also added a DeprecationWarning:
haystack/haystack/components/extractors/regex_text_extractor.py
Lines 93 to 95 in 43e125d
| "Warning: In an upcoming release, the output when no matches are found will change from " | |
| "'{}' to {'captured_text': " | |
| "}" |
While I would have preferred to handle #10105 with a small breaking change and always return {"captured_text": ...}, we now have to follow our deprecation policy and set return_empty_on_no_match default value to False on 2.22.0.
We should also remove the captured_texts=list[str] output edge, which is never populated.
Metadata
Metadata
Assignees
Labels
P1High priority, add to the next sprintHigh priority, add to the next sprint