patterns
6 pages in this category.
Structured Output
Techniques for reliable structured generation — JSON mode, schema-constrained decoding, function/tool calls as output, and validator pairing with Pydantic or Zod.
RAG Implementation Checklist
End-to-end checklist and code for building reliable Retrieval-Augmented Generation pipelines — chunking, embedding, vector DBs, retrieval, and evaluation.
Prompt Engineering Patterns
Reliable prompt structures for reasoning, extraction, classification, generation, extended thinking, and vision tasks with Claude.
LLM Evaluations
Build production evaluation pipelines for LLM applications — golden datasets, LLM-as-judge, rubrics, statistical significance, regression detection, and evals vs tests.
Few-Shot Prompting
In-context learning techniques — example selection, format design, count tuning, dynamic retrieval of demonstrations, and pitfalls of few-shot prompting.
Chain-of-Thought Prompting
CoT prompting techniques — zero-shot CoT, few-shot CoT, self-consistency, tree of thoughts, and how reasoning models compare with prompted reasoning.