Files
MtoRagSystem/RETRIEX_PATCH_4_TEMPLATE_VALIDATION_HOTFIX_README.md
2026-04-29 22:22:57 +02:00

934 B

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:

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

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