What Is a Prompt, Really?

At its core, a prompt is the input you give to a large language model (LLM) to generate an output. It might look like a simple question or instruction — but under the hood, it acts as the launchpad for everything the model says or does next.

Whether you're asking a chatbot to tell a joke, summarize a contract, or generate code, the prompt is how you describe the task. It can include a combination of:

  • Instructions — What you want the model to do.
  • Context — Background information that helps guide the response.
  • Inputs — Specific data to be used in the response.
  • Output indicators — Cues like "Answer:", "Summary:", or expected formats.

When you send this prompt to the model, it doesn't "understand" your request in the human sense. Instead, it starts predicting what token (word or subword) is most likely to come next — based on the training data and patterns it has seen.

Think of it this way: a prompt is the start of a sentence, and the LLM is trying to complete it, one token at a time.

This makes prompt design both powerful and fragile: even tiny changes in wording can produce very different outputs. That's why prompt engineering matters — you're not just writing input; you're steering the model's behavior.