Course Details
A 2-day course, 6 hours per day (12 hours in total), delivered as a hands-on workshop with a capstone project. Intermediate to Advanced level, covering ChatGPT, Claude and Gemini. Learners take home prompt patterns, a template library, rubrics and evaluation sheets, and a prompt security and PDPA checklist.
Day 1: From Trial and Error to Engineered Prompts
Section 1: LLM Foundations for Prompt Design
- How a language model predicts the next token and why output is inconsistent
- Token, context window and their impact on prompting long documents
- How temperature, top-p and sampling trade creativity for precision
- Behavioral differences between ChatGPT, Claude and Gemini that prompt designers should know, and the prompt-improvement loop
Section 2: Advanced Prompt Structure and Patterns
- Components of a high-quality prompt: Role, Context, Task, Format, Constraint and Success Criteria
- Using delimiters and Markdown/XML structure to reduce ambiguity, and separating system from user prompts
- Common real-world patterns: extraction, classification, summarization, transformation and generation
- Anti-patterns that distort output and how to write instructions the AI actually follows
Section 3: Reasoning Techniques
- Chain of Thought to show reasoning steps for accuracy, and Self-Consistency to pick the consistent answer
- ReAct (Reason + Act) combining reasoning with tool use
- Tree of Thoughts and Step-back prompting for complex problems
- Choosing the technique that fits the task and token cost
Section 4: Few-shot and Example Engineering
- The difference between zero-shot, one-shot and few-shot and when to use each
- Selecting examples that keep output stable and cover edge cases
- Formatting examples consistently, and how example order and count affect quality and bias
- Workshop: convert a real prompt from zero-shot to few-shot and compare results
Section 5: Controlling Output with Structured Output
- Why work that feeds into systems needs structured output
- Forcing JSON output and defining it with a JSON schema
- Tool / function calling and having the model respond to a schema, plus validation and retry
- Workshop: design a prompt to extract document data as JSON to a given schema and verify correctness
Day 2: Context, Evaluation and a Reliable Prompt System
Section 6: Context Engineering and Reducing Hallucination
- What context engineering is and how it differs from prompt writing
- Grounding with real data and basic RAG-aware prompting
- Forcing the AI to cite sources and answer I do not know when data is insufficient, and handling over-context documents with chunking
- Practical hallucination-reduction strategies for high-accuracy work
Section 7: System Prompts, Templates and Prompt Library
- Designing a system prompt that keeps AI assistant behavior consistent
- Creating prompt templates with variables for reuse, and prompt versioning
- Building an organizational prompt library, sharing it with the team, and embedding business rules and tone of voice
Section 8: AI Evaluation Principles and Building a Test Dataset
- Why feeling that a prompt improved is not enough, and the importance of measurement
- Types of evaluation: reference-based, reference-free and human preference
- Building an evaluation dataset and golden set from real work
- Common quality dimensions: accuracy, faithfulness, relevance, completeness and format compliance
Section 9: Evaluation Techniques and Regression Testing
- Human evaluation and designing a rubric that scores consistently
- LLM-as-a-judge to help score against a rubric, with bias caveats
- Pairwise comparison to judge which of two prompt versions is better, and regression testing to confirm a change does not worsen existing cases
- Workshop: build a golden set and measure two prompt versions with a rubric and LLM-as-a-judge
Section 10: Prompt Security, Robustness and PDPA
- Prompt injection and jailbreak risks with attack examples
- Basic defenses: separating user data from instructions and setting guardrails
- What must not be entered into AI and protecting personal data under PDPA, plus testing prompt robustness
- The human-in-the-loop concept for high-risk work
Section 11: Capstone Project and Real-world Adoption
- Task: build an end-to-end prompt system for one of the learner's real tasks, designing the system prompt and template with structured output
- Build a golden set and evaluation harness to measure quality before and after, then present results with evidence
- How to put the prompt system into production and extend it to AI agents, RAG and automation