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 Berman登壇者 · Forward Future
チャンネル
Matthew Berman
公開日
2023年2月27日
動画
12:17
読了時間
3 分
原文
英語
YouTube で開く
スクロールすると動画は右下に小さくなって再生を続けます。字幕は閲覧言語に合わせて切り替わります。
閲覧言語2 言語で読めます
この記事はまだ日本語に翻訳されていないため、英語の原文を表示しています。
要約

30 秒でわかる

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.

ポイント

  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.
全文

チャプターごとに整えた全文を読む

文字起こしのみ
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.

同じチャンネルの記事

スライド 6 枚25:50EN
MBMatthew Berman· 2026年10月24日Kimi 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 枚32:20EN
MBMatthew Berman· 2026年10月23日Who 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
スライド0:22EN
MBMatthew Berman· 2026年10月21日A Robot Bodyguard Video Shows Dramatic Rescue ScenariosMatthew Berman · Forward FutureMatthew Berman reacts to a short robot demonstration depicting fighting and vehicle-rescue scenarios.Robotics評価(Evals)
45:08EN
MBMatthew Berman· 2026年10月21日Sam 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· 2026年10月21日Sam 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 engineeringコーディングエージェント
1:02EN
MBMatthew Berman· 2026年10月15日From Punched Cards to AI Software FactoriesMatthew Berman · Forward FutureMatthew Berman contrasts early programming with an AI-assisted workflow and promotes Factory’s development tools.ソフトウェアファクトリーコーディングエージェントSoftware engineering+1