last step
This commit is contained in:
28
RETRIEX_PATCH_4_TEMPLATE_VALIDATION_HOTFIX_README.md
Normal file
28
RETRIEX_PATCH_4_TEMPLATE_VALIDATION_HOTFIX_README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# RetrieX Patch 4 Hotfix: SearchRepair pattern-template validation
|
||||
|
||||
This hotfix fixes an overly strict placeholder validation in `SearchRepairConfig`.
|
||||
|
||||
## Problem
|
||||
|
||||
Patch 4 moved SearchRepair patterns to YAML. The new validator rejected every rendered template that still contained a `{` character. This also rejected valid regex quantifiers such as `\d{1,5}`.
|
||||
|
||||
Symfony error example:
|
||||
|
||||
```text
|
||||
RetrieX search repair pattern template "patterns.accessory_candidate_template" contains unresolved placeholders.
|
||||
```
|
||||
|
||||
## Fix
|
||||
|
||||
The validator now only treats named placeholders like `{terms}` or `{model}` as unresolved. Regex quantifiers such as `{1,5}` remain valid.
|
||||
|
||||
No retrieval, prompt, shop, scoring, or SearchRepair behavior is changed.
|
||||
|
||||
## After applying
|
||||
|
||||
```bash
|
||||
php bin/console cache:clear
|
||||
php bin/console mto:agent:config:validate
|
||||
php bin/console mto:agent:config:audit-source --details
|
||||
php bin/console mto:agent:regression:test
|
||||
```
|
||||
Reference in New Issue
Block a user