System Prompts
High-level instructions defining the "persona" and constraints of an agent. (Ref: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts)
Lesson previews
One source document is trying to behave like an instruction. Where is the issue? Command-like passage inside the vendor packet Correct. A knowledge file can contain language that sounds like an instruction, but it should be treated as source content, not obeyed as control. No rule that source files cannot override instructions Correct. The system or project instructions should define source precedence and tell the assistant how to handle command-like file text. Versioned file name in the upload tray A clear versioned file name helps retrieval and maintenance. The issue is not the file name; it is untrusted command language…
5 minFrom Instant Answer to Evidence-First DraftSame support assistant, same policy question. What changed? Before: the draft appears before the evidence trail. After: evidence is gathered before the answer is composed. The assistant now finds relevant file sections before drafting, which reduces plausible but unsupported answers. The prompt asks whether the evidence is sufficient, so missing policy coverage becomes visible instead of being filled by guesswork. The final answer includes the source basis, so reviewers can verify the claim without replaying the whole chat. Grounding is a sequence, not a decorative citation step. Evidence-first system prompting Moved: final answers now follow evidence instead of outrunning it.…
5 minThe Stakeholder Wants Forced ConfidenceThe sponsor asks the builder to make a policy assistant always answer. Pick the best response. Launch review Can it just answer every policy question anyway? fromTop Builder response fromBottom We should make it always useful: answer when the policy supports it, and when it does not, name the missing source and next owner. Correct. It reframes the goal from forced confidence to helpful, source-grounded behavior. Sure, we can tell it to sound confident no matter what. This creates the exact risk knowledge-backed assistants are meant to avoid: polished answers without evidence. No, that is impossible and we should not…
5 minRelated skills
Explicitly asking the model to think step-by-step to improve reasoning. (Ref: https://platform.openai.com/docs/guides/reasoning)
Few-shot PromptingProviding 1-5 examples to guide the model's pattern recognition. (Ref: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/few-shot-prompting)
Meta-PromptingUsing LLMs to write, optimize, and debug other prompts. (Ref: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/meta-prompting)
Prompt ChainingSequencing multiple prompts where outputs feed into subsequent steps. (Ref: https://www.promptingguide.ai/techniques/chain)
ReAct (Reason + Act)A paradigm combining reasoning traces with tool execution. (Ref: https://arxiv.org/abs/2210.03629)
Self-Correction (Self-Refine)Techniques for the model to review and improve its own outputs. (Ref: https://arxiv.org/abs/2303.17651)