Choosing a framework

The research step recommends a framework for your topic, so most of the time you can accept it. When you want to choose yourself, start here.

Ask these in order

Stop at the first question you can answer yes to.

  1. Must the answer come only from your files or repository?Grounded Synthesis
  2. Will the prompt run somewhere that can search or call tools, and does it need current facts?ReAct (Reason + Act)
  3. Is there one correct answer, and is a wrong one costly?Self-Consistency (CoT-SC)
  4. Does the answer hinge on a general principle or concept?Step-Back Prompting
  5. Are there several competing routes with real trade-offs?Tree-of-Thoughts
  6. None of the aboveChain-of-Thought

Side by side

Speed and cost are relative to a single Chain-of-Thought pass, estimated from how much reasoning each protocol asks the model to do. They are guides, not benchmarks.

FrameworkBest forSpeedCostNeeds
Chain-of-ThoughtStructured problems with clear stepsFastLowNothing extra
Tree-of-ThoughtsComplex, open-ended challengesSlowHighNothing extra
Self-Consistency (CoT-SC)Questions with one correct answerModerateMediumNothing extra
Step-Back PromptingConceptual and knowledge questionsFastLowNothing extra
Grounded SynthesisSummarizing or extracting from your documentsModerateMediumUploaded files or a connected GitHub repository
ReAct (Reason + Act)Answers that depend on current informationSlowMediumA tool-enabled environment (search, retrieval or APIs)