optimize retrieve logic
This commit is contained in:
@@ -52,7 +52,7 @@ final readonly class KnowledgeIngestService
|
||||
foreach ($chunks as $chunkText) {
|
||||
|
||||
// 🔥 Titel nur im ersten Chunk einfügen
|
||||
if ($index === 0 && $title !== '') {
|
||||
if ($title && $title !== '') {
|
||||
$chunkText = "# Produkt Titel: `" . $title . "`\n\n" . $chunkText;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user