optimize data retrieve by customfields und enricher
This commit is contained in:
@@ -58,7 +58,7 @@ final readonly class AgentRunner
|
||||
//$includeFullContext = false;
|
||||
if ($includeFullContext) {
|
||||
|
||||
yield $this->systemMsg("Ich analyse deine Anfrage...", "think");
|
||||
yield $this->systemMsg("Ich analysiere deine Anfrage...", "think");
|
||||
|
||||
$promptSwagSearch = '
|
||||
Erzeuge aus dem folgenden Nutzereingabetext einen kurzen Suchtext für die Shopware-6-Suche.
|
||||
@@ -80,6 +80,7 @@ final readonly class AgentRunner
|
||||
';
|
||||
|
||||
$this->thinkSuppressor->reset();
|
||||
|
||||
foreach ($this->ollamaClient->stream($promptSwagSearch) as $swagToken) {
|
||||
|
||||
if (!is_string($swagToken)) {
|
||||
@@ -138,7 +139,6 @@ final readonly class AgentRunner
|
||||
|
||||
yield $this->systemMsg("Denke nach...", "think");
|
||||
|
||||
|
||||
// ---------------------------------------------------------
|
||||
// 5) Build final prompt
|
||||
// ---------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user