Concept

Prompt

Input text — system, user or assistant — that conditions a model's next response.

Definition

A prompt is the complete input fed into an LLM at inference time. In chat APIs it is a list of messages with roles; in completion APIs a single string. The prompt's wording, structure, and examples strongly affect output quality, hence the discipline of prompt engineering.

Common use cases

  • Chat
  • Classification
  • Code generation

Related terms

    Prompt — AI Glossary | Railwail