| CPC G06F 40/40 (2020.01) [G06F 16/3344 (2019.01)] | 19 Claims |

|
1. A method for consistency based self-adaptive prompting, comprising:
generating, by one or more processors, a pool of demonstrations using a large language model (LLM) for a plurality of test queries by running chain-of-thought (CoT) over the plurality of test queries;
determining, by the one or more processors, a self-consistency score for respective demonstrations in the pool of demonstrations;
selecting, by the one or more processors, a set of demonstrations from the pool of demonstrations based on the self-consistency scores;
prepending, by the one or more processors, the set of demonstrations to the plurality of test queries; and
generating, by the one or more processors, a plurality of predictions based on the test queries prepended with the set of demonstrations using the LLM.
|