optimize sanitizer
This commit is contained in:
@@ -32,9 +32,13 @@ final readonly class KnowledgeIngestService
|
||||
{
|
||||
// 1️⃣ Rohtext laden
|
||||
$text = $this->loader->load($version->getFilePath());
|
||||
$extension = $version->getFileExtension() ?? 'txt';
|
||||
|
||||
// 2️⃣ Deterministische Textbereinigung
|
||||
$text = $this->documentSanitizer->sanitize($text);
|
||||
$text = $this->documentSanitizer->sanitize(
|
||||
$text,
|
||||
$extension
|
||||
);
|
||||
|
||||
// 3️⃣ 🔥 Deterministische Struktur-Anreicherung (NEU)
|
||||
$text = $this->structureEnhancer->enhance($text);
|
||||
|
||||
Reference in New Issue
Block a user