Reasoning patterns
Inferlets that fan out reasoning across multiple branches and aggregate the results. All of them lean on the KV cache's copy-on-write fork to keep memory and compute proportional to the 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. |
knowledge-graph | Knowledge-graph extraction and traversal with petgraph. |
Related guide
- Forking and saving: the
fork()primitive every branching pattern starts from. - Generator: per-step control for evaluator/scorer steps.
- Constrained generation: structured planning output (lists of subgoals, JSON proposals).