Skip to main content

majority_vote

Function majority_vote 

Source
pub fn majority_vote(responses: Vec<String>) -> String
Expand description

A ready-made EnsembleTask reducer: the most common response wins, ties broken by whichever came first. Fits self-consistency prompting, where every run should converge on the same discrete answer.