From 41fe7fa0d4f7793d659f9d0ff02d65ee58cc79ec Mon Sep 17 00:00:00 2001 From: team 1 Date: Sat, 21 Feb 2026 16:48:52 +0100 Subject: [PATCH] add tagging --- src/Knowledge/Retrieval/NdjsonHybridRetriever.php | 2 +- src/Tag/TagRoutingService.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 {