---
title: "Prompt (language models)"
source: "https://systems-analysis.info/eng/Prompt_(language_models)"
wiki: "systems-analysis.info/eng"
article: "Prompt_(language_models)"
language: "en"
categories:
  - "Category:English"
  - "Category:Large language models"
  - "Category:Machine learning"
  - "Category:Prompt engineering"
  - "Category:Technology"
revision_id: 313
wiki_created_at: 2026-09-06T22:20:24Z
wiki_modified_at: 2026-09-06T22:20:24Z
downloaded_at: 2026-09-07T22:22:38Z
---

# Prompt (language models)

A **prompt**, in the context of large language models (LLMs), is the input text or instruction that a user provides to a model to generate a desired response<sup>[\[1\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-google_guide-1)</sup>. A prompt formulates the task for the model, including the necessary conditions, context, and examples. A model's effectiveness largely depends on the quality of the prompt.

The discipline that studies methods for developing and optimizing text queries is called [prompt engineering](https://systems-analysis.info/eng/Prompt_engineering "Prompt engineering"). Its goal is to elicit the most relevant, accurate, and safe responses from AI models<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>. A well-crafted prompt gives the model a "roadmap" for completing the task, helping to clarify the required context and the desired outcome<sup>[\[1\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-google_guide-1)</sup>.

## History of the Approach

The idea of controlling LLM behavior through text prompts evolved as the capabilities of the models themselves grew.

### Early Stages (GPT-2)

As early as 2019, OpenAI researchers demonstrated that large pretrained language models, such as **GPT-2**, could solve new tasks without additional training if the tasks were formulated as text. The paper *"Language Models are Unsupervised Multitask Learners"* marked a fundamental shift: instead of fine-tuning a model for each task, it became sufficient to formulate a clear instruction as input<sup>[\[3\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-gpt3_paper-3)</sup>.

### Breakthrough with GPT-3 and In-Context Learning

The real breakthrough came with the release of the **GPT-3** model in 2020. With 175 billion parameters, GPT-3 demonstrated the ability for **in-context learning**—learning a new task "on the fly" from a few examples provided directly in the prompt<sup>[\[3\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-gpt3_paper-3)</sup>. This mode of operation was named **few-shot learning** and showed that scaling up the model size leads to high-quality performance on NLP tasks without any weight adjustments.

### Emergence of Chain-of-Thought (CoT)

Further development in 2022 focused on improving the models' ability for complex logical reasoning. Special prompts in the format of a [chain-of-thought](https://systems-analysis.info/eng/Chain-of-Thought_Prompting "Chain-of-Thought Prompting") (*chain-of-thought prompting*) were proposed. In such prompts, the model receives not only a question but also an example of sequential, step-by-step reasoning before the answer. This significantly increased the accuracy of solutions in arithmetic and logical tasks<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>. Research by Kojima et al. showed that a model could be stimulated to reason even without examples (*zero-shot*) simply by adding the phrase "Let's think step by step" to the end of the prompt<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>.

### Multimodal Prompts

The concept of prompts expanded beyond text. In 2022, with the advent of models like **DALL-E 2** and **Stable Diffusion**, user queries in natural language became a universal interface for generating images, and later, music and video.

## Types and Techniques of Prompting

There are several main types and techniques of prompts, which are often combined.

### Zero-shot Prompting (Direct Query)

The model receives only an instruction or a question **without any examples**. In this mode, the LLM relies on its general knowledge acquired during pretraining. It is suitable for simple tasks, such as translation or text summarization<sup>[\[1\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-google_guide-1)</sup>.

### Few-shot Prompting (Learning from Examples)

In addition to the instruction, the prompt includes **one or more examples** with inputs and expected outputs. The model "learns on the fly" from these samples and applies the learned logic to the new query. This method, which implements *in-context learning*, significantly increases accuracy on tasks where a specific format or style of response is important<sup>[\[1\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-google_guide-1)</sup>.

### Chain-of-Thought (CoT)

A special type of prompt for tasks requiring complex reasoning (mathematics, logic). The prompt includes a step-by-step breakdown or a solution plan before the final answer. This forces the model to explicitly structure its reasoning process, which significantly improves the quality of the result<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>.

### Prompt Tuning

A technique where an **automatically optimized** prompt is used instead of a manually written one. The prompt is represented as a set of special trainable tokens (a continuous vector) that is added to the user's query. By training only this small vector-prompt, a large "frozen" model can be adapted to a new task with minimal computational cost<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>.

## Prompt Engineering as a Discipline

### Emergence of the Profession

The growth of LLM capabilities has led to the emergence of a new specialization: the **prompt engineer**. These specialists develop and debug text prompts to elicit the desired behavior from AI. Prompt engineers use knowledge in linguistics, logic, and psychology to structure input data in the most effective way<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>. In 2022–2023, the first job openings for this position appeared, reflecting the high demand for skills in effectively interacting with AI systems.

### Future of the Profession and Automation

The field is developing rapidly, and its future is a subject of debate. Research in 2024, for example from VMware, has shown that AI itself is capable of finding effective prompt formulations through trial and error and optimization, often surpassing human-written ones<sup>[\[4\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-ieee_dead-4)</sup>. This has led to the view that manual prompt engineering may be a temporary phenomenon, and that tools for automatic prompt selection will eventually become standard. Nevertheless, as of 2025, expertise in prompt engineering remains in demand.

## Applications

- **Natural language processing**: Classic NLP tasks such as automatic document summarization, machine translation, question answering, and information extraction.
- **Chatbots and virtual assistants**: Prompts help define the role, communication style, and response format, making conversational systems more consistent and useful.
- **Code generation**: Models like OpenAI Codex can write program code from natural language descriptions, which speeds up development.
- **Data analysis**: Prompts can be used to configure a model to extract insights from unstructured text reports or to generate hypotheses.
- **Education**: Creating intelligent tutors that generate assignments, explain complex concepts, and check answers, taking into account the student's level of knowledge.
- **Creative industries**: Generating texts, artistic images, music, and scripts based on detailed descriptions.

## Malicious Use and Vulnerabilities (Prompt Injection)

The open nature of the LLM interface has led to the emergence of a new class of attacks: **prompt injection**. An attacker formulates a special malicious query that causes the model to violate its original instructions or reveal hidden information<sup>[\[2\]](https://systems-analysis.info/eng/Prompt_(language_models)#cite_note-wiki_prompt-2)</sup>. Experts consider this a type of "code injection" attack, where instead of code, insidious text instructions are "injected" into the system.

### Types of Attacks

- **Jailbreak**: An attack that allows a model to "escape" the confines of its imposed restrictions (e.g., moderation policies) and generate forbidden content. A well-known example is the **DAN prompt** (Do Anything Now), which forced ChatGPT to respond without censorship.
- **Prompt Leaking**: A special query forces the model to reveal parts of its hidden system prompt.
- **Token Smuggling**: A malicious instruction is disguised as a harmless part of the query (e.g., a code snippet) to bypass filters and provoke undesirable behavior.

These attacks pose a serious problem, as traditional cybersecurity methods are ill-suited for threats related to the interpretation of natural language.

## Literature

- Radford, A. et al. (2019). *Language Models are Unsupervised Multitask Learners*. <a href="https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf" class="external text" rel="nofollow">PDF</a>.
- Brown, T. B. et al. (2020). *Language Models are Few-Shot Learners*. <a href="https://arxiv.org/abs/2005.14165" class="external text" rel="nofollow">arXiv:2005.14165</a>.
- Wei, J. et al. (2022). *Chain-of-Thought Prompting Elicits Reasoning in Large Language Models*. <a href="https://arxiv.org/abs/2201.11903" class="external text" rel="nofollow">arXiv:2201.11903</a>.
- Wang, X. et al. (2022). *Self-Consistency Improves Chain of Thought Reasoning in Language Models*. <a href="https://arxiv.org/abs/2203.11171" class="external text" rel="nofollow">arXiv:2203.11171</a>.
- Kojima, T. et al. (2022). *Large Language Models are Zero-Shot Reasoners*. <a href="https://arxiv.org/abs/2205.11916" class="external text" rel="nofollow">arXiv:2205.11916</a>.
- Li, X. L.; Liang, P. (2021). *Prefix-Tuning: Optimizing Continuous Prompts for Generation*. <a href="https://arxiv.org/abs/2101.00190" class="external text" rel="nofollow">arXiv:2101.00190</a>.
- Liu, Y. et al. (2021). *Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity*. <a href="https://arxiv.org/abs/2104.08786" class="external text" rel="nofollow">arXiv:2104.08786</a>.
- Chang, K. et al. (2024). *Efficient Prompting Methods for Large Language Models: A Survey*. <a href="https://arxiv.org/abs/2404.01077" class="external text" rel="nofollow">arXiv:2404.01077</a>.
- Li, Z. et al. (2024). *Prompt Compression for Large Language Models: A Survey*. <a href="https://arxiv.org/abs/2410.12388" class="external text" rel="nofollow">arXiv:2410.12388</a>.
- Genkina, D. (2024). *AI Prompt Engineering Is Dead*. *IEEE Spectrum*. <a href="https://spectrum.ieee.org/prompt-engineering-is-dead" class="external autonumber" rel="nofollow">[5]</a>.
- Li, W. et al. (2025). *A Survey of Automatic Prompt Engineering: An Optimization Perspective*. <a href="https://arxiv.org/abs/2502.11560" class="external text" rel="nofollow">arXiv:2502.11560</a>.
- Wu, Z. et al. (2025). *The Dark Side of Function Calling: Pathways to Jailbreaking Large Language Models*. *EMNLP 2025*. <a href="https://aclanthology.org/2025.coling-main.39.pdf" class="external text" rel="nofollow">PDF</a>.

## References

1.  <span id="cite_note-google_guide-1">↑ <sup>[1.0](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-google_guide_1-0)</sup> <sup>[1.1](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-google_guide_1-1)</sup> <sup>[1.2](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-google_guide_1-2)</sup> <sup>[1.3](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-google_guide_1-3)</sup> "Prompt Engineering for AI Guide". *Google Cloud*. <a href="https://cloud.google.com/discover/what-is-prompt-engineering" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-wiki_prompt-2">↑ <sup>[2.0](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-0)</sup> <sup>[2.1](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-1)</sup> <sup>[2.2](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-2)</sup> <sup>[2.3](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-3)</sup> <sup>[2.4](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-4)</sup> <sup>[2.5](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-5)</sup> <sup>[2.6](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-wiki_prompt_2-6)</sup> "Prompt engineering". *Wikipedia*. <a href="https://en.wikipedia.org/wiki/Prompt_engineering" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-gpt3_paper-3">↑ <sup>[3.0](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-gpt3_paper_3-0)</sup> <sup>[3.1](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-gpt3_paper_3-1)</sup> Brown, Tom B., et al. "Language Models are Few-Shot Learners". *arXiv:2005.14165* \[cs.CL\], May 28, 2020. <a href="https://ar5iv.labs.arxiv.org/html/2005.14165" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-ieee_dead-4">[↑](https://systems-analysis.info/eng/Prompt_(language_models)#cite_ref-ieee_dead_4-0) "AI Prompt Engineering Is Dead". *IEEE Spectrum*. <a href="https://spectrum.ieee.org/prompt-engineering-is-dead" class="external autonumber" rel="nofollow">[4]</a></span>
