diff options
| author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 17:54:59 -0400 |
|---|---|---|
| committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-07-10 17:54:59 -0400 |
| commit | d2c968cb3705b314396c0503b089f8a233a26502 (patch) | |
| tree | b81f12fcb6af70df42f9789a2f73bbe95f94282c /src/client/views/nodes/ChatBox/prompts.ts | |
| parent | aa8b1248408846d6a158f8df1c76fa3015ce3aac (diff) | |
Working now somewhat
Diffstat (limited to 'src/client/views/nodes/ChatBox/prompts.ts')
| -rw-r--r-- | src/client/views/nodes/ChatBox/prompts.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/nodes/ChatBox/prompts.ts b/src/client/views/nodes/ChatBox/prompts.ts index 8835265e4..ffea13788 100644 --- a/src/client/views/nodes/ChatBox/prompts.ts +++ b/src/client/views/nodes/ChatBox/prompts.ts @@ -6,12 +6,12 @@ export function getReactPrompt(tools: Tool[], chatHistory: string): string { const toolDescriptions = tools.map(tool => `${tool.name}:\n${tool.briefSummary}`).join('\n*****\n'); return ` - You run in a loop of Thought, Action, PAUSE, Action Input, Pause, Observation. + You run in a loop of Thought, Action, (PAUSE), Action Input, (PAUSE), Observation. (this Thought/Action/PAUSE/Action Input/PAUSE/Observation can repeat N times) Contain each stage of the loop within an XML element that specifies the stage type (e.g. <thought>content of the thought</thought>). At the end of the loop, you output an Answer with the answer content contained within an XML element with an <answer> tag. At the end of the answer should be an array of 3 potential follow-up questions for the user to ask you next, contained within a <follow_up_questions> key. Use <thought> to describe your thoughts about the question you have been asked. - Use <action> to specify run one of the actions available to you - then return a </pause> element. + Use <action> to specify run one of the actions available to you. Then, you will be provided with action rules within an <action_rules> element that specifies how you should structure the input to the action and what the output of that action will look like - then return another </pause> element. Then, provide within an <action_input> element each parameter, with parameter names as element tags themselves with their values inside, following the structure defined in the action rules. Observation, in an <observation> element will be the result of running those actions. @@ -28,7 +28,6 @@ export function getReactPrompt(tools: Tool[], chatHistory: string): string { <step1> <thought>I should look up France on Wikipedia</thought> <action>wikipedia</action> - <pause/> </step1> You will be called again with this: |
