This commit is contained in:
team 1
2026-05-07 08:24:16 +02:00
parent f47aa2c42a
commit 0523984274
6 changed files with 766 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ final readonly class RetriexEffectiveConfigProvider
private QueryEnricherConfig $queryEnricherConfig,
private GovernanceConfig $governanceConfig,
private GenreConfig $genreConfig,
private GenreSourceOfTruthGuard $genreSourceOfTruthGuard,
private CatalogIntentConfig $catalogIntentConfig,
private ContextServiceConfig $contextServiceConfig,
) {
@@ -76,6 +77,9 @@ final readonly class RetriexEffectiveConfigProvider
$config = $this->dump();
$this->validateGenre($config['genre'], $config, $errors, $warnings);
$sourceOfTruth = $this->genreSourceOfTruthGuard->validate($config['genre'], $config);
array_push($errors, ...$sourceOfTruth['errors']);
array_push($warnings, ...$sourceOfTruth['warnings']);
$this->validateRuntime($config['runtime'], $errors, $warnings);
$this->validateIndex($config['index'], $errors, $warnings);
$this->validateModel($config['model_generation'], $errors, $warnings);