diff --git a/RETRIEX_PATCH_22_LANGUAGE_CLEANUP_CONFIG_README.md b/RETRIEX_PATCH_22_LANGUAGE_CLEANUP_CONFIG_README.md new file mode 100644 index 0000000..41953bb --- /dev/null +++ b/RETRIEX_PATCH_22_LANGUAGE_CLEANUP_CONFIG_README.md @@ -0,0 +1,33 @@ +# RetrieX Patch p22 - Language Cleanup Config Resolver + +## Ziel + +p22 fuehrt die technische Zugriffsschicht fuer die in p21 angelegte zentrale Sprachbereinigung ein. + +## Inhalt + +- Neue Config-Fassade: `src/Config/LanguageCleanupConfig.php` +- Service-Registrierung in `config/services.yaml` +- Audit-Mapping in `ConfigSourceAuditProvider` +- Resolver fuer: + - Cleanup-Profile + - Stopwords je Profil + - Phrasen je Profil + - Meta-Terms je Profil + - Protected Terms je Profil + +## Wichtig + +- Keine Commerce-/Agent-Runtime-Umschaltung in diesem Patch. +- Bestehende Stopword-Logik bleibt kompatibel. +- Protected Terms werden bei Profil-Stopwords nicht entfernt/ausgegeben. +- Keine externe Stopword-Library. + +## Checks + +```bash +bin/console mto:agent:config:validate +bin/console mto:agent:regression:test +bin/console mto:agent:config:audit-source --details +bin/console mto:agent:config:audit-patterns --details +``` diff --git a/config/services.yaml b/config/services.yaml index 2b8c7d9..67d84af 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -144,6 +144,10 @@ services: arguments: $config: '%retriex.stopwords.config%' + App\Config\LanguageCleanupConfig: + arguments: + $config: '%retriex.stopwords.config%' + App\Config\QueryEnricherConfig: arguments: $config: '%retriex.query_enrichment.config%' diff --git a/src/Config/ConfigSourceAuditProvider.php b/src/Config/ConfigSourceAuditProvider.php index facc77e..00f5da7 100644 --- a/src/Config/ConfigSourceAuditProvider.php +++ b/src/Config/ConfigSourceAuditProvider.php @@ -16,6 +16,7 @@ final readonly class ConfigSourceAuditProvider 'CatalogIntentConfig' => 'retriex.intent.catalog.config', 'DomainVocabularyConfig' => 'retriex.vocabulary.config', 'IntentLightConfig' => 'retriex.intent.light.config', + 'LanguageCleanupConfig' => 'retriex.stopwords.config', 'GovernanceConfig' => 'retriex.governance.config', 'NdjsonHybridRetrieverConfig' => 'retriex.retrieval.config', 'PromptBuilderConfig' => 'retriex.prompt.config',