What is a prompt?

A prompt is the full question, instruction and context that a user or application sends to a language model; answer quality depends heavily on how clear it is and on the context it contains.

It differs from a system prompt in scope: the system prompt is the special part that sets the model's role and rules, while the prompt is the whole input including it. A prompt is not only what the user types; the application also adds system instructions, history and retrieved documents.

Topic
Prompts, context, reasoning and generation
Also known as
Input prompt

How a prompt works

  1. The application combines the system prompt, earlier messages, retrieved context and the user's question.
  2. These parts are joined with the model's chat template and tokenised; the total, together with the answer to be generated, must fit the context window.
  3. The model processes this input and generates answer tokens.
  4. In enterprise applications prompts are built from prompt templates that are versioned and tested (prompt management).

In more detail

Message roles and the instruction hierarchy

Modern chat APIs and open-weights templates structure a prompt into explicit roles, typically system (or developer), user, assistant and tool, using special control tokens rather than one flat string. Separating privileged developer instructions from untrusted user or tool outputs enables instruction hierarchy training, reducing the chance that data inside a retrieved document overrides application rules.

Multimodal prompts and tool definitions

Today's prompts are frequently multimodal and agentic: alongside text, a single prompt payload can embed images, audio clips, PDF pages and JSON schemas for callable tools. Each non-text modality consumes a fixed or resolution-dependent number of tokens in the same context budget, directly affecting latency and memory usage.

Attention in long prompts and where to place information

Long prompts do not guarantee uniform attention: models often suffer from the 'lost in the middle' effect, paying closer attention to instructions at the start and end of a prompt than to facts buried mid-context. Placing persistent instructions at the top (which also helps prompt caching) and key retrieved evidence near the query can improve reliability.

Commonly confused terms

TermHow it differs
Prompt templateA prompt template is a parameterised blueprint with placeholders (such as {{context}} and {{question}}) stored in code or a registry, whereas a prompt is the concrete rendered input generated from that template for a specific request.
Context windowContext window is the architectural capacity limit (in tokens) that a model can attend to in a single forward pass/session, whereas a prompt is the input payload occupying part of that window alongside the model's generated reasoning and output tokens.

Why a prompt matters for on-premises AI

It is the main tool shaping an in-house assistant's behaviour; clear instructions and the right context raise answer quality directly. Because a prompt holds user input and outside documents, it is open to prompt injection; untrusted content is separated and permissions are enforced outside the prompt. Prompts can carry personal data, so logging and retention rules cover them. For long fixed prompt sections, prompt caching cuts latency and cost.

ON-PREMISES EXAMPLE

An energy company's in-house assistant adds the relevant fault codes and maintenance history to the prompt when answering a fault question; the prompt template is versioned.

Common questions

Is a prompt only the user's question?

No. The application also adds system instructions, conversation history and retrieved documents; the model sees all of it as one input.

How does a prompt differ from a prompt template?

A prompt template is the ready structure used to build prompts correctly. The prompt is the actual input produced from that template for each request.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.