harden reset system

This commit is contained in:
team 1
2026-02-15 18:07:38 +01:00
parent bf71ca07fa
commit 59e48242b5
4 changed files with 3 additions and 6 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
.ddev
.idea
/var/knowledge
/var/knowledge/*
/.venv
/src/Vector/vector.index
/src/Vector/vector_meta.json

View File

@@ -7,7 +7,7 @@ parameters:
mto.index.chunk_size: 800
mto.index.chunk_overlap: 100
mto.index.embedding_model: 'nomic-embed-text'
mto.index.embedding_model: 'all-MiniLM-L6-v2' #nomic-embed-text
mto.index.embedding_dimension: 768
mto.index.scoring_version: 1

View File

@@ -6,7 +6,6 @@ namespace App\Ingest;
use App\Entity\DocumentVersion;
use App\Index\IndexMetaManager;
use App\Index\IndexStructureChangedException;
use App\Knowledge\ChunkManager;
use App\Knowledge\Ingest\KnowledgeIngestService;
use App\Vector\VectorIndexBuilder;

View File

@@ -84,14 +84,12 @@ final class VectorIndexBuilder
// Wir erwarten/standardisieren (ab jetzt) CLI-Args:
// --index <path-to-index.ndjson>
// --out <path-to-vector.index.tmp>
//
// Falls dein Python-Script aktuell andere Args hat,
// passen wir es im nächsten Schritt konsistent an.
$cmd = [
$this->pythonBin,
$this->scriptPath,
'--index', $this->indexNdjsonPath,
'--out', $tmpVectorIndexPath,
'--model', 'all-MiniLM-L6-v2',
];
$process = new Process($cmd);