Branch → Evaluate → Prune
Propose several next steps, judge the partial states, keep the best and expand them. How to build a Tree-of-Thought search, why the evaluator decides everything, and when a reasoning model makes it unnecessary.
LLM generates 3 different approaches to the problem
Like a chess player mentally exploring three different opening moves before choosing.
Instead of one answer, we ask the model to generate multiple different approaches.
> Branch 1: "Use dynamic programming..." > Branch 2: "Apply greedy algorithm..." > Branch 3: "Try divide and conquer..."
LLM generates 3 different approaches to the problem
Like a chess player mentally exploring three different opening moves before choosing.
Instead of one answer, we ask the model to generate multiple different approaches.
> Branch 1: "Use dynamic programming..." > Branch 2: "Apply greedy algorithm..." > Branch 3: "Try divide and conquer..."
Continue reading
All Prompt Engineering articles →Meta-Prompting: Letting a Model Tune Your Prompts
From a one-off rewrite to refinement loops on failures, candidate search and compiled DSPy programs. How to optimise prompts against a metric without overfitting, and how to review what the optimiser produces.
Red Teaming LLM Applications: Attack It Before Your Users Do
Threat model first, then manual sessions, then automated scans with garak, promptfoo and PyRIT. How to find jailbreaks, data leaks and unsafe tool calls, fix them in the architecture, and keep them fixed in CI.
Constrained Generation: Beyond Hope-Based Parsing
Enforce output structure at the token level with grammars and token masks — how it differs from native JSON mode, and when the strictness costs you reasoning quality.
Discussion
Sign in to share your feedback and join the discussion.

