Add an example to make the prompt more robust (#5291)

# Add example to LLMMath to help with power operator

Add example to LLMMath that helps the model to interpret `^` as the power operator rather than the python xor operator.
This commit is contained in:
Peng Qu
2023-05-26 21:32:35 +08:00
committed by GitHub
parent aec642febb
commit d481d887bc

View File

@@ -25,6 +25,16 @@ Question: What is 37593 * 67?
```
Answer: 2518731
Question: 37593^(1/5)
```text
37593**(1/5)
```
...numexpr.evaluate("37593**(1/5)")...
```output
8.222831614237718
```
Answer: 8.222831614237718
Question: {question}
"""