-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--- | ||
# Never use the LLM to calculate Math, this is just a demo | ||
# `-s examples` means to search the examples folder for the calc-result script. | ||
# ai run -f examples/calculator.ai.yaml '{expression: "1+2*5"}' -s examples | ||
expression: "1 + 2 * 3" | ||
# ai run -f examples/calculator.ai.yaml '{content: "1+2*5"}' -s examples | ||
content: "1 + 2 * 3" | ||
--- | ||
system: Please as a calculator to calculate the result of the following expression, calculate it step by step. | ||
system: Please as a calculator to calculate the result of the following expressions. | ||
--- | ||
user: "{{expression}}" | ||
assistant: "[[thinking]]" | ||
user: "calculate the content and list results: {{content}}" | ||
assistant: "Let's break down this problem step by step:\n[[thinking]]" | ||
# call the `extract-calc-result` script file to extract the result from thinking output | ||
-> extract-calc-result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters