How to make GPT 3.5 to be a bit smarter in math?

Hey mate,
And welcome to the forum, great example, I tried your prompt 5 times and it failed to respond accurately every single time.

The correct way to do this is indeed to use some external function or calculator, then feed those results to GPT, we can do this by just appending the correct answer to the initial prompt:

A voltage range is from 0.3 up to 18V
B voltage range is from 1.3 up to 1.9V
From those information, please answer “which one(s) can provide 1.5V voltage?”
(CORRECT ANSWER: Both A & B)

We get the response:

Both A and B can provide 1.5V voltage. In range A, 1.5V falls between 0.3V and 18V, while in range B, it falls between 1.3V and 1.9V.

Language Models are inherently bad at math, I’ve written some more about it in the thread over here:

1 Like