p43D
This commit is contained in:
@@ -56,6 +56,9 @@ parameters:
|
|||||||
vocabulary_views:
|
vocabulary_views:
|
||||||
technical_product_keywords: prompt.technical_product_keywords
|
technical_product_keywords: prompt.technical_product_keywords
|
||||||
accessory_request_keywords: prompt.accessory_request_keywords
|
accessory_request_keywords: prompt.accessory_request_keywords
|
||||||
|
main_device_request_keywords: prompt.main_device_request_keywords
|
||||||
|
main_device_product_keywords: prompt.main_device_product_keywords
|
||||||
|
accessory_product_keywords: prompt.accessory_product_keywords
|
||||||
|
|
||||||
sections:
|
sections:
|
||||||
system_label: SYSTEM
|
system_label: SYSTEM
|
||||||
@@ -81,84 +84,6 @@ parameters:
|
|||||||
shop_search:
|
shop_search:
|
||||||
source_line: 'Source: Shop Search'
|
source_line: 'Source: Shop Search'
|
||||||
role_guard:
|
role_guard:
|
||||||
main_device_request_keywords:
|
|
||||||
- messanlage
|
|
||||||
- messanlagen
|
|
||||||
- anlage
|
|
||||||
- anlagen
|
|
||||||
- messgerät
|
|
||||||
- messgeraet
|
|
||||||
- analysegerät
|
|
||||||
- analysegeraet
|
|
||||||
- analysator
|
|
||||||
- analyzer
|
|
||||||
- gerät
|
|
||||||
- geraet
|
|
||||||
- system
|
|
||||||
- monitor
|
|
||||||
- controller
|
|
||||||
- testomat
|
|
||||||
- testoamt
|
|
||||||
main_device_product_keywords:
|
|
||||||
- messanlage
|
|
||||||
- messanlagen
|
|
||||||
- messgerät
|
|
||||||
- messgeraet
|
|
||||||
- analysegerät
|
|
||||||
- analysegeraet
|
|
||||||
- analysator
|
|
||||||
- analyzer
|
|
||||||
- online-analysator
|
|
||||||
- online analysegerät
|
|
||||||
- gerät
|
|
||||||
- geraet
|
|
||||||
- system
|
|
||||||
- monitor
|
|
||||||
- controller
|
|
||||||
- testomat
|
|
||||||
accessory_product_keywords:
|
|
||||||
- indikator
|
|
||||||
- indikatoren
|
|
||||||
- indicator
|
|
||||||
- reagenz
|
|
||||||
- reagenzien
|
|
||||||
- reagent
|
|
||||||
- zubehör
|
|
||||||
- zubehor
|
|
||||||
- ersatzteil
|
|
||||||
- ersatzteile
|
|
||||||
- kit
|
|
||||||
- set
|
|
||||||
- verbrauchsmaterial
|
|
||||||
- consumable
|
|
||||||
- nachfüll
|
|
||||||
- nachfuell
|
|
||||||
- refill
|
|
||||||
- lösung
|
|
||||||
- loesung
|
|
||||||
- solution
|
|
||||||
- teststreifen
|
|
||||||
- anschlusskabel
|
|
||||||
- kabel
|
|
||||||
- sensorkabel
|
|
||||||
- elektrodenkabel
|
|
||||||
- elektrode
|
|
||||||
- puffer
|
|
||||||
- kalibrierpuffer
|
|
||||||
- kalibrierlösung
|
|
||||||
- kalibrierloesung
|
|
||||||
- filter
|
|
||||||
- pumpenkopf
|
|
||||||
- motorblock
|
|
||||||
- service set
|
|
||||||
- serviceset
|
|
||||||
- service-set
|
|
||||||
- ph-indikator
|
|
||||||
- ph indikator
|
|
||||||
- ph-indikatoren
|
|
||||||
- ph indikatoren
|
|
||||||
|
|
||||||
|
|
||||||
direct_main_device_request_patterns:
|
direct_main_device_request_patterns:
|
||||||
- '/\b(welcher|welches|welche)\s+[^?.!,;]{0,40}(testomat|messgerät|messgeraet|analysegerät|analysegeraet|gerät|geraet|analysator)\b/u'
|
- '/\b(welcher|welches|welche)\s+[^?.!,;]{0,40}(testomat|messgerät|messgeraet|analysegerät|analysegeraet|gerät|geraet|analysator)\b/u'
|
||||||
- '/\b(suche|finde|empfiehl|empfehle)\s+[^?.!,;]{0,40}(testomat|messgerät|messgeraet|analysegerät|analysegeraet|gerät|geraet|analysator)\b/u'
|
- '/\b(suche|finde|empfiehl|empfehle)\s+[^?.!,;]{0,40}(testomat|messgerät|messgeraet|analysegerät|analysegeraet|gerät|geraet|analysator)\b/u'
|
||||||
|
|||||||
@@ -526,6 +526,85 @@ parameters:
|
|||||||
- kalibrierpuffer
|
- kalibrierpuffer
|
||||||
- kalibrierlösung
|
- kalibrierlösung
|
||||||
- kalibrierloesung
|
- kalibrierloesung
|
||||||
|
main_device_request_keywords:
|
||||||
|
add:
|
||||||
|
- messanlage
|
||||||
|
- messanlagen
|
||||||
|
- anlage
|
||||||
|
- anlagen
|
||||||
|
- messgerät
|
||||||
|
- messgeraet
|
||||||
|
- analysegerät
|
||||||
|
- analysegeraet
|
||||||
|
- analysator
|
||||||
|
- analyzer
|
||||||
|
- gerät
|
||||||
|
- geraet
|
||||||
|
- system
|
||||||
|
- monitor
|
||||||
|
- controller
|
||||||
|
- testomat
|
||||||
|
- testoamt
|
||||||
|
main_device_product_keywords:
|
||||||
|
add:
|
||||||
|
- messanlage
|
||||||
|
- messanlagen
|
||||||
|
- messgerät
|
||||||
|
- messgeraet
|
||||||
|
- analysegerät
|
||||||
|
- analysegeraet
|
||||||
|
- analysator
|
||||||
|
- analyzer
|
||||||
|
- online-analysator
|
||||||
|
- online analysegerät
|
||||||
|
- gerät
|
||||||
|
- geraet
|
||||||
|
- system
|
||||||
|
- monitor
|
||||||
|
- controller
|
||||||
|
- testomat
|
||||||
|
accessory_product_keywords:
|
||||||
|
add:
|
||||||
|
- indikator
|
||||||
|
- indikatoren
|
||||||
|
- indicator
|
||||||
|
- reagenz
|
||||||
|
- reagenzien
|
||||||
|
- reagent
|
||||||
|
- zubehör
|
||||||
|
- zubehor
|
||||||
|
- ersatzteil
|
||||||
|
- ersatzteile
|
||||||
|
- kit
|
||||||
|
- set
|
||||||
|
- verbrauchsmaterial
|
||||||
|
- consumable
|
||||||
|
- nachfüll
|
||||||
|
- nachfuell
|
||||||
|
- refill
|
||||||
|
- lösung
|
||||||
|
- loesung
|
||||||
|
- solution
|
||||||
|
- teststreifen
|
||||||
|
- anschlusskabel
|
||||||
|
- kabel
|
||||||
|
- sensorkabel
|
||||||
|
- elektrodenkabel
|
||||||
|
- elektrode
|
||||||
|
- puffer
|
||||||
|
- kalibrierpuffer
|
||||||
|
- kalibrierlösung
|
||||||
|
- kalibrierloesung
|
||||||
|
- filter
|
||||||
|
- pumpenkopf
|
||||||
|
- motorblock
|
||||||
|
- service set
|
||||||
|
- serviceset
|
||||||
|
- service-set
|
||||||
|
- ph-indikator
|
||||||
|
- ph indikator
|
||||||
|
- ph-indikatoren
|
||||||
|
- ph indikatoren
|
||||||
maps:
|
maps:
|
||||||
shop:
|
shop:
|
||||||
accessory_focus_variants:
|
accessory_focus_variants:
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# RetrieX Patch 43D - Prompt Role Vocabulary Consolidation
|
||||||
|
|
||||||
|
## Purpose
|
||||||
|
|
||||||
|
Reduce duplicated role keyword lists in `prompt.yaml` without changing effective behavior.
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
- Moves prompt role keyword lists into central `vocabulary.yaml` views:
|
||||||
|
- `prompt.main_device_request_keywords`
|
||||||
|
- `prompt.main_device_product_keywords`
|
||||||
|
- `prompt.accessory_product_keywords`
|
||||||
|
- Adds matching `prompt.yaml` `vocabulary_views` references.
|
||||||
|
- Updates `PromptBuilderConfig` so old local overrides still win, while default values come from vocabulary views.
|
||||||
|
|
||||||
|
## Non-goals
|
||||||
|
|
||||||
|
- No ranking changes.
|
||||||
|
- No prompt rule changes.
|
||||||
|
- No retrieval changes.
|
||||||
|
- No new PHP keyword lists.
|
||||||
|
- No admin UI.
|
||||||
|
|
||||||
|
## Validation
|
||||||
|
|
||||||
|
Run after applying:
|
||||||
|
|
||||||
|
```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
|
||||||
|
```
|
||||||
@@ -586,7 +586,10 @@ final class PromptBuilderConfig
|
|||||||
*/
|
*/
|
||||||
public function getMainDeviceRequestRoleKeywords(): array
|
public function getMainDeviceRequestRoleKeywords(): array
|
||||||
{
|
{
|
||||||
return $this->getRequiredStringList('role_guard.main_device_request_keywords');
|
return $this->getConfiguredStringListOrVocabularyView(
|
||||||
|
'role_guard.main_device_request_keywords',
|
||||||
|
'vocabulary_views.main_device_request_keywords'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -594,7 +597,10 @@ final class PromptBuilderConfig
|
|||||||
*/
|
*/
|
||||||
public function getMainDeviceProductRoleKeywords(): array
|
public function getMainDeviceProductRoleKeywords(): array
|
||||||
{
|
{
|
||||||
return $this->getRequiredStringList('role_guard.main_device_product_keywords');
|
return $this->getConfiguredStringListOrVocabularyView(
|
||||||
|
'role_guard.main_device_product_keywords',
|
||||||
|
'vocabulary_views.main_device_product_keywords'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -602,7 +608,10 @@ final class PromptBuilderConfig
|
|||||||
*/
|
*/
|
||||||
public function getAccessoryProductRoleKeywords(): array
|
public function getAccessoryProductRoleKeywords(): array
|
||||||
{
|
{
|
||||||
return $this->getRequiredStringList('role_guard.accessory_product_keywords');
|
return $this->getConfiguredStringListOrVocabularyView(
|
||||||
|
'role_guard.accessory_product_keywords',
|
||||||
|
'vocabulary_views.accessory_product_keywords'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user