optimize retriever

This commit is contained in:
team2
2026-02-27 19:27:13 +01:00
parent 44be40a24d
commit 5e004c99f4
6 changed files with 41 additions and 42 deletions

View File

@@ -8,11 +8,11 @@ use App\Entity\DocumentTag;
use App\Entity\Tag;
use Doctrine\ORM\EntityManagerInterface;
final class TagNdjsonExporter
final readonly class TagNdjsonExporter
{
public function __construct(
private EntityManagerInterface $em,
private string $tagsNdjsonPath,
private string $tagsNdjsonPath,
) {}
/**

View File

@@ -10,11 +10,11 @@ use App\Entity\DocumentTag;
use App\Service\TagRebuildJobService;
use Doctrine\ORM\EntityManagerInterface;
final class TagService
final readonly class TagService
{
public function __construct(
private EntityManagerInterface $em,
private TagRebuildJobService $jobs,
private TagRebuildJobService $jobs,
) {}
// =========================================================

View File

@@ -7,17 +7,17 @@ namespace App\Tag;
use App\Index\IndexMetaManager;
use Psr\Log\LoggerInterface;
final class TagVectorIndexBuilder
final readonly class TagVectorIndexBuilder
{
public function __construct(
private readonly string $pythonBin,
private readonly string $scriptPath,
private readonly string $tagsNdjsonPath,
private readonly string $vectorTagsIndexPath,
private readonly string $embeddingModel,
private readonly int $timeoutSeconds,
private readonly LoggerInterface $agentLogger,
private readonly IndexMetaManager $metaManager, // ✅ NEU
private string $pythonBin,
private string $scriptPath,
private string $tagsNdjsonPath,
private string $vectorTagsIndexPath,
private string $embeddingModel,
private int $timeoutSeconds,
private LoggerInterface $agentLogger,
private IndexMetaManager $metaManager, // ✅ NEU
) {}
public function build(): void