optimize retrieve logic

This commit is contained in:
team 1
2026-04-14 13:42:45 +02:00
parent bf0b58fdea
commit fe6eb25d25

View File

@@ -52,7 +52,7 @@ final readonly class KnowledgeIngestService
foreach ($chunks as $chunkText) { foreach ($chunks as $chunkText) {
// 🔥 Titel nur im ersten Chunk einfügen // 🔥 Titel nur im ersten Chunk einfügen
if ($index === 0 && $title !== '') { if ($title && $title !== '') {
$chunkText = "# Produkt Titel: `" . $title . "`\n\n" . $chunkText; $chunkText = "# Produkt Titel: `" . $title . "`\n\n" . $chunkText;
} }