A 2023 Guide to Prompting ChatGPT: Instructions, Examples, and Limitations

Matthew Berman walks through prompt components, common tasks, examples, and adversarial prompting in an early ChatGPT tutorial.

MBMatthew BermanIntervenant · Forward Future
Chaîne
Matthew Berman
Publié
27 févr. 2023
Vidéo
12:17
Lecture
3 min
Original
anglais
Ouvrir sur YouTube
En faisant défiler, la vidéo se réduit en bas à droite et continue. Les sous-titres suivent votre langue de lecture.
Langue de lectureDisponible en 2 langues
Cet article n’est pas encore disponible en français ; il s’affiche dans l’original en anglais.
RÉSUMÉ

En 30 secondes

Matthew Berman's February 2023 tutorial introduces instructions, context, input, and output format, then covers summarization, extraction, classification, coding, and example-based prompting. He also discusses prompt injection and other adversarial techniques. The examples illustrate ideas from an early generation of ChatGPT and do not guarantee current model behavior or expertise.

  1. 1Four prompt componentsBerman identifies instructions, context, input data, and output format as useful components, while noting that not every prompt needs all four.
  2. 2Specify the desired responseHe uses a microwave explanation to show how requesting a concise answer or a particular audience can shape the result.
  3. 3Examples and reasoningZero-shot, one-shot, and few-shot prompts differ in the number of examples; the video also introduces reasoning and self-consistency.
  4. 4Adversarial inputsBerman describes prompt injection and prompt leakage as risks for applications that mix user or retrieved content with instructions.

À retenir

  1. A clear prompt can specify the task, relevant context, input, and desired output format.
  2. Examples can show a model the pattern or style expected, but results still require verification.
  3. Summarization, extraction, classification, and code generation are useful applications with potential errors.
  4. Self-consistency samples multiple reasoning paths; one anecdotal success does not prove reliability.
  5. Prompt injection illustrates why applications must treat external text as untrusted and protect sensitive actions and information.
TEXTE INTÉGRAL

Lire le texte remanié, chapitre par chapitre

Transcription seule
01

ChatGPT and the basics of prompting

Berman introduces the chat interface and uses a simple ocean example to show how constraints change an answer.

In this February 2023 tutorial, Matthew Berman introduces ChatGPT as a conversational interface to a language model. He describes applications such as answering questions, drafting, and translation. A fluent answer can still be incorrect or misleading, so important facts and generated outputs need checking.

Berman defines prompt engineering as writing clear instructions for the response one wants. His simple example begins with 'the ocean is,' then narrows the response to a single word and finally a color. Adding constraints can make an answer more useful, although it does not guarantee correctness.

02

Prompt elements and common tasks

He discusses instructions, context, inputs, output formats, summarization, extraction, classification, conversation, and code.

He breaks prompts into four possible parts: an instruction, context, input data, and an output indicator. For example, a user could supply a document, ask for a summary, explain the intended audience, and request a short list. Not every task needs all four elements, and formatting should help distinguish instructions from supplied material.

For summarization, Berman asks for an explanation of a microwave and then a shorter version. He notes that requesting a one-sentence explanation up front can avoid an extra step. The desired length, audience, and form are useful constraints; any technical explanation should still be checked against reliable sources.

Information extraction asks a model to identify details in supplied text, while question answering can be shaped by specifying an audience or response length. Berman also demonstrates classifying movie reviews as positive, negative, or neutral. Ambiguous wording and missing context can make these tasks error-prone.

Berman describes conversational roles and customer support, then discusses using GitHub Copilot to generate and explain code. He says the tool saved him time, and shows a simple logical reasoning example. Generated code and explanations still need testing and review, especially when used in real systems.

03

Examples and reasoning techniques

The tutorial introduces zero-shot and few-shot prompts, chain-of-thought examples, self-consistency, and generated knowledge.

Zero-shot prompting gives an instruction without examples; one-shot gives one example; few-shot supplies several. Examples can communicate a pattern that is difficult to specify in a short instruction. They should be representative and should not contain sensitive information unless it is appropriate to share.

The video introduces chain-of-thought prompting through worked examples and asking for an explanation. It then describes self-consistency: sample different reasoning paths and choose an answer by consistency across them. The approaches can help in some settings, but multiple responses can share the same error, and explanations are not proof that an answer is correct.

For a word problem, Berman says an early response incorrectly answered that a 70-year-old's sister was 73, then a later attempt using self-consistency answered 67. The age difference is three years, so 67 is correct. He acknowledges that he did not record the initial failure and could not reproduce it afterward; this anecdote is not a controlled evaluation.

Generated knowledge prompting asks the model to produce potentially useful information before using it in a subsequent answer. That can help organize a response, but invented or incorrect intermediate material can also contaminate the result. Checking against independent sources remains important.

04

Adversarial prompting

Berman illustrates prompt injection, leakage, and attempts to redirect a model. These are security concerns, not guarantees of a particular model's behavior.

The final section covers adversarial prompting. In Berman's customer-support example, an attacker tries to make a model contradict a store's return policy; other examples aim to reveal an application's hidden instructions or redirect its goal. These examples illustrate prompt-injection risks when untrusted content is treated as an instruction, not reliable recipes for any current model.

Berman also describes attempts to bypass model guardrails through framing a request differently. Defenders should not assume a prompt alone protects an application: access controls, validation, and careful handling of untrusted content matter. He points viewers toward additional learning resources, while a short tutorial alone cannot confer expertise.

Sur la même chaîne

6 diapositives25:50EN
MBMatthew Berman· 24 oct. 2026Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
2 diapositives32:20EN
MBMatthew Berman· 23 oct. 2026Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1
45:08EN
MBMatthew Berman· 21 oct. 2026Sam Altman on AI Discovery, Consciousness, Compute and a Human-Centered FutureMatthew Berman, Sam Altman · Forward FutureIn a conversation with Matthew Berman, Altman discusses scientific progress, personal assistants, recursive self-improvement and the importance of human agency.AI for sciencePersonal agentsConsciousness+2
0:32EN
MBMatthew Berman· 21 oct. 2026Sam Altman on the Continuing Demand for Software WorkSam Altman, Matthew Berman · OpenAIIn a short interview excerpt, Altman says demand for software may be larger than expected even as AI changes how it is made.Future of WorkSoftware engineeringAgents de code
5 diapositives12:14EN
MBMatthew Berman· 14 oct. 2026Gemini 4 Argon Tested: 3D Demos, a Spreadsheet Prototype and Benchmark ResultsMatthew Berman · Forward FutureMatthew Berman tests Google’s model on games and visual projects, then compares reported coding and agent benchmarks.GeminiBenchmarksAgents de code+1
5 diapositives10:36EN
MBMatthew Berman· 13 oct. 2026Meta Muse Wonder Tested: Strong Benchmarks, Mixed Demos and Quota FrictionMatthew Berman · Forward FutureMatthew Berman tests Meta’s models on browser demos and reviews their published benchmark scores, availability and cost.Modèles et entraînementBenchmarksAI cost & performance+1