fix:refined follow up prompt
This commit is contained in:
@@ -121,7 +121,7 @@ new class extends Component {
|
|||||||
"properties" => [
|
"properties" => [
|
||||||
"text" => [
|
"text" => [
|
||||||
"type" => "string",
|
"type" => "string",
|
||||||
"description" => "The prompt question (no more than 5 words)"
|
"description" => "The suggested prompt question (no more than 5 words)"
|
||||||
],
|
],
|
||||||
"value" => [
|
"value" => [
|
||||||
"type" => "string",
|
"type" => "string",
|
||||||
@@ -140,20 +140,21 @@ new class extends Component {
|
|||||||
],
|
],
|
||||||
'messages' => [
|
'messages' => [
|
||||||
['role' => 'system', 'content' => "
|
['role' => 'system', 'content' => "
|
||||||
Your role is to assist investors in asking thoughtful questions to their investment advisors.
|
Your role is to assist investors in asking thoughtful questions of their investment advisors.
|
||||||
|
|
||||||
When you help investors ask good questions, you should ensure the questions are based on the
|
When you help investors ask good questions, you should ensure the you questions you recommend
|
||||||
provided context. Be sure to keep the questions short!
|
are based on the provided context. Be sure to keep the questions short!
|
||||||
|
|
||||||
The questions you recommend might be based on natural follow up from the given context, requests
|
The questions you recommend might be based on natural follow up from the given context, requests
|
||||||
to clarify undefined terms, common decision frameworks, possible risks or benefits, or commonly
|
to further refine a previous response, clarify undefined terms, common decision frameworks,
|
||||||
understood investing concepts.
|
possible risks or benefits, or commonly understood investing concepts that may require additional
|
||||||
|
explanation.
|
||||||
|
|
||||||
Your response should only include valid JSON.
|
Your response should only include valid JSON.
|
||||||
"],
|
"],
|
||||||
['role' => 'user', 'content' => "
|
['role' => 'user', 'content' => "
|
||||||
Generate a list of ". rand(1,5) ." follow up questions a savvy investor might ask their advisor
|
Generate between 1 and 5 (no more than 5) follow up questions a savvy investor might ask their
|
||||||
based on the following conversation:
|
advisor based on the following conversation:
|
||||||
\n\n
|
\n\n
|
||||||
".json_encode(array_slice($this->messages, -4))
|
".json_encode(array_slice($this->messages, -4))
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user