ToolsPromptsSkillsWorkflowsBlogAbout

Self-Consistency — sample multiple paths and vote on the answer

Generate several independent reasoning paths and select the answer that appears most frequently, reducing errors from single-path reasoning.

Reasoning4.5
Self-Consistency — sample multiple paths and vote on the answer preview

Prompt template

Solve the problem step by step. Be creative and try a different approach than usual.

Problem: {problem}

Solution:

How to use

  1. 1Run the same prompt 5-10 times with temperature 0.7
  2. 2Extract the final answer from each run
  3. 3Count frequency of each answer
  4. 4Select the most frequent answer as the result
  5. 5Report confidence as frequency / total samples

Pro tips

  • Most effective for math and logic problems
  • Use temperature 0.5-0.8 for diverse reasoning paths
  • 5 samples typically gives 80% of the benefit of 10
  • Combine with chain-of-thought for best results

Works best with

Ratings & Reviews

Loading reviews…

Share your experience

Select a rating

Related Skills