optimize retriever
This commit is contained in:
@@ -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,
|
||||
) {}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
) {}
|
||||
|
||||
// =========================================================
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user