second step
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user