Refactor various services and models for improved type handling and configuration management

This commit is contained in:
SitiWeb
2026-04-30 01:54:49 +02:00
parent f939133fe0
commit 39bdba2dfb
11 changed files with 40 additions and 33 deletions

View File

@@ -91,7 +91,7 @@ class SemanticSearchService
return $scoreB <=> $scoreA;
});
return array_values(array_slice($unique, 0, $limit));
return array_slice($unique, 0, $limit);
}
private function candidateScore(string $text, float $distance, bool $isHowTo): float