optimize flow retrieval
This commit is contained in:
@@ -93,7 +93,7 @@ final readonly class AgentRunner
|
||||
|
||||
yield $this->systemMsg("Ich optimere die Recherche...", "think");
|
||||
|
||||
//Call ai for optimized swag query
|
||||
//Call AI for optimized swag query
|
||||
foreach ($this->ollamaClient->stream($promptSwagSearch) as $swagToken) {
|
||||
|
||||
if (!is_string($swagToken)) {
|
||||
@@ -111,7 +111,7 @@ final readonly class AgentRunner
|
||||
|
||||
yield $this->systemMsg("Ich rufe Recherchedaten ab (type: " . $commerceIntent . ")", "think");
|
||||
|
||||
//Search in swag by ai optimized query
|
||||
//Search in swag by AI optimized query
|
||||
try {
|
||||
$shopResults = $swagFullOutPut !== ''
|
||||
? $this->shopSearchService->search($swagFullOutPut, $commerceIntent)
|
||||
@@ -122,7 +122,6 @@ final readonly class AgentRunner
|
||||
'exception' => $e,
|
||||
]);
|
||||
|
||||
$shopResults = [];
|
||||
yield $this->systemMsg('Shopdaten konnten nicht geladen werden, ich antworte mit Wissensbasis weiter...', 'think');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user