diff --git a/src/Knowledge/Retrieval/NdjsonHybridRetriever.php b/src/Knowledge/Retrieval/NdjsonHybridRetriever.php index 1e62a2a..f2fa9ea 100644 --- a/src/Knowledge/Retrieval/NdjsonHybridRetriever.php +++ b/src/Knowledge/Retrieval/NdjsonHybridRetriever.php @@ -10,7 +10,7 @@ use App\Vector\VectorSearchClient; final class NdjsonHybridRetriever implements RetrieverInterface { - private const VECTOR_SCORE_THRESHOLD = 0.65; + private const VECTOR_SCORE_THRESHOLD = 0.25; /** * Wenn Tag-Routing aktiv ist, erhöhen wir TopK, diff --git a/src/Tag/TagRoutingService.php b/src/Tag/TagRoutingService.php index a15372c..b9a0372 100644 --- a/src/Tag/TagRoutingService.php +++ b/src/Tag/TagRoutingService.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace App\Tag; use Doctrine\DBAL\ArrayParameterType; +use Doctrine\DBAL\Exception; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Uid\Uuid; @@ -21,6 +22,7 @@ final class TagRoutingService /** * @return string[]|null + * @throws Exception */ public function route(string $query): ?array {