add used sources

This commit is contained in:
team 1
2026-04-17 08:26:21 +02:00
parent 84ba528036
commit 4247825528
2 changed files with 24 additions and 2 deletions

View File

@@ -81,6 +81,7 @@ final readonly class PromptBuilder
if($swagFullOutPut){
$shopBlock = "SHOP SEARCH QUERY: " . trim($swagFullOutPut)."\n";
$shopBlock .= "Source: Shop Search\n";
}
if ($shopResults !== []) {
@@ -158,12 +159,14 @@ final readonly class PromptBuilder
$knowledgeParts[] =
"RETRIEVED KNOWLEDGE (supporting):\n" .
"Source: Documents \n".
implode("\n\n", $lines);
}
if ($urlContent !== '') {
$knowledgeParts[] =
"CONTENT FROM URL (supporting):\n" .
"Source: URL \n".
$urlContent;
}