Notes: Opening framing — beginner prompting means talking to a model. Here, we specify a software component: predictable, testable, versioned.
Notes: 7 objectives, all evaluable using multiple choice questions. Single common thread: sorting of banking support tickets.
Notes: A single common thread > ten disconnected examples. Participants see the cumulative effect of the techniques.
Notes: Fundamental architectural point. The CoT gives the model computational space in its own output.
Notes: Level 2 is the production standard: auditable (we log the reflection), parsable (we extract the response), and the template encodes the business expertise.
Notes: The questions in the template are the expertise of the profession. The reasoning becomes a loggable debugging artifact.
Notes: Exit tokens = most expensive. On 50,000 tickets/day, an unnecessary CoT is an unnecessary bill. Web lab demo here (10 min).
Notes: The model already handles nominal cases without examples. All the value of the few-shot is in the ambiguities and the boundary of the perimeter.
Notes: Point 3 is a certification trap. First reflex when auditing a faulty prompt: consistency of examples/instructions.
Notes: Order effects are measured (exercise 2, step 5). Certification trap.
Notes: Transition: the examples constrain the substance. To constrain the shape to the nearest character → prefilling.
Notes: The prefill mechanically constrains the start of generation. The most surgical technique in the catalog.
Notes: Canonical extraction pattern with Claude. The prefill opens the tag, the stop_sequence cuts. stop_reason = "stop_sequence".
Notes: Four quirks, four potential exam questions. The invisible final space is also a sneaky production bug.
Notes: Resumption with XML and long context.
Notes: Claude is trained on a lot of XML: it respects marked sections remarkably. Free tag names — consistency is key.
Notes: Cache bonus: large stable blocks at the top = maximized prompt caching hits. XML structure and converged cache strategy.
Notes: Forces a “rereading” before conclusion. Citations are checkable against the source document.
Notes: We chain when there are natural sequential steps with verifiable intermediate deliverables. We do not chain an atomic task.
Notes: THE pattern to know for certification. Each boundary = interface contract: strict JSON schema, defined error case, logging.
Notes: Chain builder demo (web page): assemble the NéoBanque chain by dragging the steps, visualize the flow.
Notes: In production, an improvised refusal = legal and brand risk. The contract specifies behavior like specifying an API.
Notes: Rule 4 = first anti-injection defense (in-depth in safety session). Formula: each “don’t do X” is accompanied by a “do Y instead”. Pair workshop 5 min: add a missing clause.
Notes: “You are the best lawyer in the world” does not improve legal reliability — it increases confidence. Certification question: style and depth, not veracity.
Notes: Never three simultaneous changes — impossible to attribute the gain. A prompt is a software artifact: it is versioned.
Notes: Order of decreasing returns observed. The accumulation of adverbs of emphasis signals a poorly structured prompt.
Notes: Oral flash quiz: state each situation, have people guess the trap before revealing. 2 min per trap.
Notes: Each line = a block of the session. The right column is the typical answer to the “what technique for…” questions on the exam.
Notes: Exit ticket: “a technique applied tomorrow + an open question”. Reminder: any statement without measurement is capped at 50/100.