All terms
Prompting
Program-of-Thought
Having the model reason by writing and running code instead of doing math in plain words.
Definition
Program-of-thought (PoT) prompts a model to express its reasoning as code — for example Python — which is then run to get the answer, rather than computing in plain words. Offloading arithmetic and logic to a reliable interpreter sharply improves accuracy on math and data tasks. The related PAL method works similarly.