Knowledge pack — guides, templates, examples

Chapter 09 — Cheat Sheets

Quick reference matrix

PatternCore ShapeUse WhenStop Condition
MaieuticAnswer + claim treeNeed justificationDepth reached / consistent
Self-RefineDraft→Critique→Refine loopQuality polishingNo material issues
Least-to-MostOrdered subproblems S1..SnCompositional reasoningFinal aggregation
Self-ConsistencyK sampled rationalesReduce stochastic errorMajority stable
RAGRetrieve + citeFactual groundingAnswer or unknown

Maieutic skeleton

Q: <question>
1) Draft answer.
2) Claims: Claim: ... Because: ...
3) Expand depth N.
4) Label SUPPORT / CONTRADICT.
5) Prune contradictions.
6) Output { answer, explanation_tree }.

Self-Refine skeleton

GEN: produce draft.
CRITIQUE: issues by category + checklist.
REFINE: apply checklist + CHANGELOG.
STOP: if 'NO MATERIAL ISSUES' or max_rounds.

Least-to-Most skeleton

DECOMPOSE: S1..Sn (easiest->hardest).
SOLVE: S_i referencing previous.
RETURN: final answer + steps JSON.

Self-Consistency skeleton

FOR i in 1..K: sample reasoning (temp>0).
COLLECT answers.
SELECT majority / best-scored.

RAG skeleton

EMBED + INDEX docs.
RETRIEVE top k.
PROMPT with passages + cite requirement.
ANSWER or unknown.