add used sources
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user