add tagging
This commit is contained in:
@@ -10,7 +10,7 @@ use App\Vector\VectorSearchClient;
|
|||||||
|
|
||||||
final class NdjsonHybridRetriever implements RetrieverInterface
|
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,
|
* Wenn Tag-Routing aktiv ist, erhöhen wir TopK,
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace App\Tag;
|
namespace App\Tag;
|
||||||
|
|
||||||
use Doctrine\DBAL\ArrayParameterType;
|
use Doctrine\DBAL\ArrayParameterType;
|
||||||
|
use Doctrine\DBAL\Exception;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\Uid\Uuid;
|
use Symfony\Component\Uid\Uuid;
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ final class TagRoutingService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string[]|null
|
* @return string[]|null
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function route(string $query): ?array
|
public function route(string $query): ?array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user