Reasoning patterns
Inferlets that branch, decompose, or iteratively improve reasoning. Branching patterns use the KV cache's copy-on-write fork to keep memory and compute proportional to divergent tokens.
| Inferlet | What it shows |
|---|---|
tree-of-thought | Multi-branch reasoning (Propose, Execute, Reflect). |
graph-of-thought | Hierarchical aggregation of multiple proposals. |
skeleton-of-thought | Parallel elaboration of key points. |
recursion-of-thought | Divide-and-conquer problem solving. |
reflexion | Feedback-driven retry with deterministic evaluation and verbal reflection memory. |
knowledge-graph | Knowledge-graph extraction and traversal with petgraph. |
Related guide
- Forking and saving: the
fork()primitive used by branching and retry patterns. - Generator: per-step control for evaluator/scorer steps.
- Constrained generation: structured planning output (lists of subgoals, JSON proposals).