second step

This commit is contained in:
team2
2026-04-29 20:55:21 +02:00
parent a460eee429
commit d099457534
11 changed files with 212 additions and 110 deletions

View File

@@ -26,6 +26,8 @@ final readonly class RetriexEffectiveConfigProvider
private ShopServiceConfig $shopServiceConfig,
private StopWordsConfig $stopWordsConfig,
private QueryEnricherConfig $queryEnricherConfig,
private CatalogIntentConfig $catalogIntentConfig,
private ContextServiceConfig $contextServiceConfig,
) {
}
@@ -692,11 +694,12 @@ final readonly class RetriexEffectiveConfigProvider
private function catalogIntentConfig(): array
{
return [
'min_score' => CatalogIntentConfig::MIN_SCORE,
'ambiguity_delta' => CatalogIntentConfig::AMBIGUITY_DELTA,
'search_limit' => CatalogIntentConfig::SEARCH_LIMIT,
'min_allowed_score' => CatalogIntentConfig::MIN_ALLOWED_SCORE,
'max_allowed_score' => CatalogIntentConfig::MAX_ALLOWED_SCORE,
'min_score' => $this->catalogIntentConfig->getMinScore(),
'ambiguity_delta' => $this->catalogIntentConfig->getAmbiguityDelta(),
'intent_search_limit' => $this->catalogIntentConfig->getIntentSearchLimit(),
'list_search_limit' => $this->catalogIntentConfig->getListSearchLimit(),
'min_allowed_score' => $this->catalogIntentConfig->getMinAllowedScore(),
'max_allowed_score' => $this->catalogIntentConfig->getMaxAllowedScore(),
];
}
@@ -704,8 +707,8 @@ final readonly class RetriexEffectiveConfigProvider
private function contextConfig(): array
{
return [
'max_visible_regular_lines' => ContextServiceConfig::MAX_VISIBLE_REGULAR_LINES,
'max_full_lines' => ContextServiceConfig::MAX_FULL_LINES,
'max_visible_regular_lines' => $this->contextServiceConfig->getMaxVisibleRegularLines(),
'max_full_lines' => $this->contextServiceConfig->getMaxFullLines(),
];
}