How would you know that the confidence factors the model gives you are correct or a best guess? Is it event possible with the current LLMs (see the Liar Paradox)?
A better strategy is to use chain of thought prompting or similar techniques, essentially asking the model to explain how it arrived at a solution.
https://github.com/openai/openai-cookbook/blob/main/techniqu...