We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca5357f commit 75c8e45Copy full SHA for 75c8e45
src/RAG/RAG.php
@@ -67,9 +67,11 @@ public function stream(Message|array $messages): \Generator
67
$this->retrieveDocuments($question)
68
);
69
70
- yield from parent::stream($messages);
+ $response = yield from parent::stream($messages);
71
72
$this->notify('stream-rag-stop');
73
+
74
+ return $response;
75
}
76
77
public function structured(Message|array $messages, ?string $class = null, int $maxRetries = 1): mixed
0 commit comments