Prompt Engineering

Prompt Engineering

Deep technical articles on this topic.

88Articles
88Topics covered
Articles in this category

All 24 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Agent Prompt Architecture in Depth

A 2500-word walkthrough of agent prompt architecture: system prompt, tools, memory, response format, safety, few-shot, CoT, budget, versioning, portab…

Read article
ARTICLE · 02

Context packing architecture

Deep-dive on context packing: salience scoring, summarization, retrieval augment, working memory, priority ordering, budget.

Read article
ARTICLE · 03

Dynamic few-shot prompting

Deep-dive on dynamic few-shot prompting, where the demonstrations shown to a model are selected per request from an exemplar store rather than frozen …

Read article
ARTICLE · 04

Prompt Evaluation Architecture in Depth

A 2500-word walkthrough of prompt evaluation: golden sets, runner, metrics, regression gates, CI, cost/latency, adversarial, rollout gates, curation.

Read article
ARTICLE · 05

LLM hallucination guardrails architecture

Deep-dive on layered hallucination guardrails for LLM systems: why fabrication is structural and trust asymmetric, grounding via retrieval, the cite-o…

Read article
ARTICLE · 06

Least-to-most prompting architecture

Deep-dive on least-to-most prompting: decomposing a hard problem into an ordered easiest-to-hardest subproblem queue, passing each committed subanswer…

Read article
ARTICLE · 07

Meta-prompting -- using an LLM to write and improve prompts

Deep-dive on meta-prompting: using an LLM to generate and refine prompts, the optimization loop (generate/evaluate/refine), the meta-prompt, automatic…

Read article
ARTICLE · 08

Multimodal prompting architecture

Deep-dive on prompting with images: how pixels become tokens via resize and tiling, low vs high detail cost, image placement and interleaving, the cro…

Read article
ARTICLE · 09

Prompt caching architecture

Deep-dive on LLM prompt caching: storing the deterministic KV attention state of a stable prompt prefix so later requests prefill only the new tail, t…

Read article
ARTICLE · 10

Prompt compression architecture — segment budgets, compression cascades, and cache-aware assembly

Deep-dive on compressing LLM prompts at scale: segment inventory and per-class token budgets, relevance scoring, the extractive-abstractive-pruning ca…

Read article
ARTICLE · 11

Prompt-injection defense architecture

Deep-dive on defending LLM applications against prompt injection: why no prompt can stop it, how to separate trusted instructions from untrusted conte…

Read article
ARTICLE · 12

Prompt Pipeline Architecture in Depth

A 2500-word walkthrough of a production prompt pipeline: templates, variables, compiler, structured outputs, model router, validation, registry, eval,…

Read article
ARTICLE · 13

Prompt registry architecture

Deep-dive on prompt registries: immutable prompt versions with variable schemas, eval-gated promotion through environment labels, cached runtime resol…

Read article
ARTICLE · 14

ReAct

How ReAct interleaves reasoning and tool calls, enabling agents that think and act iteratively.

Read article
ARTICLE · 15

Reflexion architecture

Deep-dive on the Reflexion pattern: how an LLM agent improves within a single session through verbal reinforcement — writing natural-language self-cri…

Read article
ARTICLE · 16

Prompt routing architecture

Deep-dive on prompt routing: intent classifier, policy engine, LLM registry, selection, fallback ladder, quality gate, and A/B.

Read article
ARTICLE · 17

Self-Consistency

How self-consistency samples multiple CoT traces and takes the most common answer, boosting reliability.

Read article
ARTICLE · 18

Semantic routing architecture

Deep-dive on semantic routing for LLM apps: embedding queries, labeled route centroids, cosine similarity and confidence thresholds, LLM fallback for …

Read article
ARTICLE · 19

Skeleton-of-Thought prompting architecture

Deep-dive on Skeleton-of-Thought: a cheap skeleton call that lists an answer's key points, parallel expander calls that flesh…

Read article
ARTICLE · 20

Step-back prompting architecture

Deep-dive on step-back prompting: the two-stage abstraction-then-reasoning pipeline, using the derived principle as a retrieval key, self-verification…

Read article
ARTICLE · 21

Structured Output Architecture for LLMs in Depth

A 2500-word walkthrough of structured output: schema, provider features (function calling, JSON mode), constrained decoding, validation, retry, stream…

Read article
ARTICLE · 22

Tree of Thoughts

How Tree of Thoughts (ToT) explores multiple reasoning paths in parallel with backtracking, and when it beats linear CoT.

Read article
ARTICLE · 23

Prompt Delimiters

Separate instructions from data. Reduces injection + confusion.

Read article
ARTICLE · 24

Prompt Template Libraries

Reusable prompt templates. Variables. Composition. Trade-offs.

Read article