logo
P
Prompt Master

Prompt 大师

掌握和 AI 对话的艺术

Explain a Concept

Summarize or explain a concept for a target audience

Scenario & Goal

This prompt works as a "compression ability" smoke test:

  • Feed the model a concept explanation
  • Ask for a one-sentence output
  • Observe whether the model can capture the subject, core mechanism, and boundary conditions (e.g., antibiotics vs viruses)

Prompt (basic version)

Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body's immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.

Explain the above in one sentence:

Output (reference)

Antibiotics are medicines that treat bacterial infections by killing or inhibiting bacteria, but they do not work against viruses and misuse can cause resistance.

How to Iterate (practical version)

  1. Specify the audience: for a 10-year-old / for a junior engineer / for an exec
  2. Add constraints: must include 2-3 key points; must avoid certain jargon; must give an example
  3. Structured output: Definition / Mechanism / Limitations / Example
  4. Add self-check: after answering, list omitted key points in one line

Self-check Rubric

  • Does it accurately distinguish concept boundaries (e.g., antibiotics don't work on viral infections)?
  • Is it compressed to the specified length (one sentence)?
  • Are there unnecessary details or fabrications (numbers/timelines)?

Practice

Exercise: pick 3 concepts common in your work (e.g., RAG, Tool Calling, Prompt Injection) and write 3 versions of each:

  • one sentence
  • 5 bullets
  • 2x2 table (pros/cons vs when/not when)

Optional API (OpenAI, Python)

from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[
        {
            "role": "user",
            "content": "Antibiotics are a type of medication used to treat bacterial infections. They work by either killing the bacteria or preventing them from reproducing, allowing the body's immune system to fight off the infection. Antibiotics are usually taken orally in the form of pills, capsules, or liquid solutions, or sometimes administered intravenously. They are not effective against viral infections, and using them inappropriately can lead to antibiotic resistance.\n\nExplain the above in one sentence:",
        }
    ],
    temperature=0.7,
    max_tokens=120,
)