Two prompts went to the same AI model working on the same job, which was analyzing a dataset for market trends. One prompt told the model to analyze the data and the other told it to treat itself as a senior market analyst.

The second prompt also told it to look at the Q3 sales data for trends, pay particular attention to regional differences, and present three main insights with supporting data points as bullet points. The first prompt gave a summary that was vague and generic.

The second analysis was genuinely useful: the same model and the same data gave dramatically different results. Intelligence was not what made the difference. It was instruction.

Prompt engineering is the practice of building inputs for AI language models that reliably bring out high-quality outputs.

The term can sound too technical for what is essentially the craft of communicating clearly with a powerful yet unusual type of intelligence. This intelligence is highly capable but also literal, context-dependent and sensitive to framing in ways human communication is not.

How to communicate effectively with AI systems has become more and more a basic professional skill that anyone using AI tools at work needs.

Including specific techniques, the reasoning behind each and examples of the difference between effective and ineffective prompts, this article goes through the best practices that have been set up for prompting large language models.

It moves from foundational principles to advanced techniques, so it suits new AI users as well as experienced practitioners who want to improve their results.


The Foundation: What Prompts Actually Do

"The hottest new programming language is English"[15]

Andrej Karpathy, January 2023
TechniqueDescriptionWhen to UseExample
Role assignmentAssign the model a specific professional identity to frame its responseWhen domain expertise, tone, or perspective matters"You are a senior software architect reviewing code for production readiness."
Few-shot examplesProvide examples of the desired input-output patternWhen format or style must be very specific and hard to describe abstractlyShow three examples of the desired analysis format before asking for the actual analysis
Chain-of-thoughtAsk the model to reason step by step before answeringComplex multi-step reasoning tasks; math; logical problems"Think through this step by step before giving your final answer."
Output format specificationSpecify exactly how the response should be structuredWhen the output must integrate with downstream processes or readers"Format your response as three bullet points, each under 20 words."
Context provisionGive relevant background information the model cannot inferDomain-specific tasks; tasks involving your specific situationProvide product documentation before asking for feature prioritization advice
Constraint specificationExplicitly state what the model should not doWhen default behavior produces unwanted content or scope"Do not include caveats or disclaimers. Focus only on actionable recommendations."

Getting a handle on what prompts actually do to AI models makes it clear why specific techniques work or fail before looking at any particular technique.

Large language models generate their output one token at a time and each token comes out of the probability distribution of what could come next based on everything that has come before. The prompt provides the first context that shapes these probability distributions.

When a prompt is vague, the result is a wide probability distribution (many responses seem plausible). The model gives something that is statistically likely but not pointed directly at what you need. A prompt that is well-crafted narrows the probability distribution down to responses within the range you actually want.

This statistical nature of language model generation explains several important prompt engineering principles:[8]

  • Specificity narrows the distribution: More specific prompts produce responses in a narrower range
  • Context shifts the distribution: Context (role, format, audience) shifts which responses are most probable
  • Examples constrain the distribution. Showing the model what "right" looks like through examples guides what comes out in later generation.
  • Format instructions shape structure: Format requirements constrain not just content but how it is organized

Core Principles of Effective Prompting

Be Specific About the Task

OpenAI's prompting guide asks for prompts that are "specific, descriptive and as detailed as possible" about the desired context, outcome, length, format and style, and Anthropic's lists "Be clear and direct" as its first general principle.[4][5] When prompts are vague, the responses are vague and when they are specific, the responses are specific.

Elements of task specification:

What you want the AI to do. The verb makes a big difference: analyze, summarize, criticize, rewrite, explain and generate each produce a different kind of output, so spell out which one you want.

What input you are giving. When the input could mean more than one thing, describe it. "The attached transcript" is less clear than "the transcript of a 20-minute customer interview with a SaaS startup founder."

What output you need: How long? What format? What level of detail? What perspective or tone? Each of these specifications constrains the output toward something useful for your purpose.

Weak prompt: "Summarize this article."

Strong prompt. Summarize the article in 3 to 5 bullet points that cover the main findings. Address an executive audience with little time who wants to know how the results affect their business.

Provide Relevant Context

Language models have no inherent knowledge of your situation. They cannot know that you are a doctor asking about a medication for a patient context versus a curious layperson, that the email you want help writing is to your most difficult client, or that the audience for the presentation is skeptical of the technology being presented.

Context that consistently improves output quality:

Your role and expertise. By telling the model whether you are "a software architect reviewing this design proposal" or that you are "a first-year medical student trying to grasp the basics", the model can choose the right depth and vocabulary for the answer.

The audience: "Write this for a technically sophisticated audience who will ask hard questions about the methodology" produces a different result than "write this for a general audience at a community event."

The purpose: "I need this to be persuasive" produces different emphasis than "I need this to be comprehensive" or "I need this to help me think through the problem."

The constraints. What a good response looks like depends on word limits, time limits, available resources as well as constraints from the organization.

Example. This is an example of a prompt for a product manager. The prompt says I am preparing a one-page business case for internal stakeholders who doubt the cost. I have to make the case for implementing customer service AI by putting forward the ROI argument.

Financially oriented audience members will want hard numbers where they can be had. Use the following cost data [data] to draft this business case.

Every aspect of an appropriate response gets shaped by this context. The tone, the emphasis on financial metrics, the acknowledgment of skepticism and what is the right length all come out of it.

Specify the Format You Need

Format instructions are among the most reliable prompt techniques because they put direct limits on what the model can output.

Useful format specifications:

Length: "In 200 words or less," "in a single paragraph," "in a comprehensive analysis of at least 500 words," or simply "briefly" or "thoroughly." Length specifications prevent the common problem of responses that are either superficially brief or exhaustively detailed when you needed the opposite.

Structure. The output can be given as a numbered list, as a table, as headers and sub-bullets or as narrative prose summary. Structure specs make the output ready to use right away instead of having to reformat anything.[4]

Sections or components. Put in place an executive summary, three key findings and recommended next steps so the document is complete and lines up with a particular use case.

Perspective or voice. Write in the active voice, write from the customer's perspective and write in a tone appropriate for a legal document.

Exclusions. Do not include disclaimers, avoid jargon and do not recommend specific products. These prevent the common model tendencies that are unhelpful for what you need specifically.

Use Examples (Few-Shot Prompting)

Showing the model examples of what you want is one of the strongest tools in prompt engineering. In few-shot prompting, you give the model examples of good responses.

In the GPT-3 paper, Brown and colleagues found that adding examples lifted accuracy on the TriviaQA benchmark from 64.3 percent with a task description alone to 71.2 percent, and that the advantage of few-shot over zero-shot prompting grew with model size.[2] Anthropic's current guide calls examples one of the most reliable ways to steer output format, tone and structure.[5]

When you read an example instead of reading a list of steps, you can actually see how a rule works.

A model that has seen three examples of the specific type of analysis you are requesting is much better positioned to produce a similar analysis than one that has read a paragraph describing that type of analysis.

Examples constrain the probability distribution toward the style and content of the examples.

Applying few-shot prompting:

For classification tasks. Give examples that are labeled and classify the sentiment of these customer reviews as positive, negative or neutral.

Examples are as follows. 'Great product, fast shipping' is positive. 'The item broke after one week' is negative and 'It works as described, nothing more' is neutral. The following reviews now need to be classified. [reviews]

For writing style tasks. Give examples of the style that is wanted. Write three product descriptions in this style and now write a description for the product.

For structured outputs. Show what structure is needed for the output. Give an example of how the output should look, then tell it to pull the main points from the tickets [the tickets].

Break Complex Tasks into Steps

When a task has many steps, a single prompt asking for everything at once most often gives worse results than a series of prompts that take the model through intermediate steps.

This principle mirrors how good reasoning works: complex problems gain from being broken down into subproblems, processed sequentially and having their intermediate results accumulated. Writing about GPT-3 in 2021, Laria Reynolds and Kyle McDonell recommended prompts that encourage the model to break a problem into components before producing a verdict.[7]

When asked to "analyze this market and come up with a full competitive strategy", a model has to collect insights at the same time as it synthesizes them and structures its recommendations.

When a model is first asked to "list the key competitors and their main advantages," then asked to "find the gaps that these competitors are not filling" and then asked to "suggest three strategic positions that could make our product different" it goes through a reasoning process that gives more reliable results.

Chain-of-thought prompting. In 2022, Google published work showing that when language models are prompted to break down their reasoning step by step before answering tough questions, they do much better on reasoning tests.[1]

With large models that answer directly, including a phrase such as "Let's think through this step by step" or "Show your reasoning before giving your conclusion" in prompts that call for reasoning raises output quality time after time.[11]

Current reasoning models already work through problems internally before answering: OpenAI says telling them to "think step by step" is unnecessary,[14] Microsoft limits chain-of-thought prompting to non-reasoning models,[9] and Anthropic finds that a general instruction such as "think thoroughly" often produces better reasoning than a hand-written step-by-step plan.[5]

Example. On a complex analytical task, do not give a single prompt asking for the full analysis all at once. Instead, try these steps.

  1. "List the five most important trends affecting this industry based on the provided data."
  2. Identify for each trend whether it is an opportunity or a threat for a company that has [specific characteristics].
  3. "Based on this analysis, what are the three most important strategic priorities?"

Each step builds on the one that came before and the intermediate outputs can be looked at again and corrected before moving on.


Advanced Techniques

Role Prompting

Giving the AI a particular role or persona can have a big effect on the quality and character of its answers.[5] Giving it the role of an expert copywriter who specializes in direct-response marketing produces different output from giving it no role at all. The difference shows most clearly in tasks that need domain expertise.

When role prompting is most effective:

  • Tasks with clear domain expertise requirements (legal analysis, medical explanation, financial modeling)
  • Tasks where a specific perspective or voice matters (writing in a particular author's style or analyzing from a specific viewpoint)
  • Tasks where professional norms or standards apply (technical writing, formal communication)

Role prompting caveats. Role prompting does not give the model knowledge it does not have. A model taking on the role of a "cybersecurity expert" does not know more cybersecurity than the same model without the role but the role can help it organize and present what it knows better.

In a 2024 study, Mingqian Zheng and colleagues tested 162 personas across four model families on 2,410 factual questions and found that adding a persona to the system prompt did not improve accuracy compared with using no persona.[16]

The model was trained for safety and role prompting is not a way around that training: a model taking on the role of a character who knows how to hack systems is still trained to refuse actual harmful hacking instructions.

Negative Instructions and Constraint Specification

Specifying what you do NOT want can be as valuable as specifying what you do want, because models sometimes have systematic tendencies that produce unhelpful outputs.

Common effective negative instructions:

  • "Do not begin your response with 'Of course!' or similar affirmations."
  • "Do not include disclaimers about seeking professional advice unless specifically relevant."
  • "Do not summarize what you are about to do; just do it."
  • "Avoid hedging language; state your conclusions directly."
  • "Do not include any information not directly requested."

These instructions deal with model tendencies that are useful in some contexts but get in the way in others. OpenAI's and Anthropic's guides add a refinement: where you can, say what to do instead of only what not to do, for example "Your response should be composed of smoothly flowing prose paragraphs" rather than "Do not use markdown in your response."[4][5]

Iterative Refinement

Rarely does prompt engineering come off in a single shot. For complex or important tasks, the best way is iterative. Get out an initial output and then spot what is wrong or missing and prompt for revisions that deal specifically with those issues.

The revision prompt pattern: After an initial output, prompting with specific critiques produces more targeted improvements than trying to create a perfect initial prompt.

When told "Revise the third paragraph to be more concise" or "add a section that addresses how this approach handles edge cases" the model gets specific and actionable direction.

Building context across turns: In multi-turn conversations, the context of previous turns is available to the model. This allows building toward complex outputs gradually, with the ability to steer at each stage.

Temperature and Sampling Parameters

Many AI platforms allow control over "temperature" and related sampling parameters that affect how creative versus conservative model outputs are.[9]

Temperature (most often 0 to 1 or 0 to 2 across different platforms): at lower temperature the output is more predictable and consistent. More varied output comes out at higher temperature and sometimes that is more creative too.

  • Low temperature (0.0-0.3). Tasks that need consistency and reliability most get the best performance from this setting. Code generation, data extraction, classification and factual question answering all work best here.
  • Medium temperature (0.5-0.7): Best for most writing, analysis, and conversational tasks
  • High temperature (0.8-1.0+). This setting is best for brainstorming, creative writing and any task that puts diversity of ideas ahead of consistency.

The newest frontier models are retiring the dial.

OpenAI's guide to its GPT-6.2 models says to omit temperature and top_p, which they do not support, and to set a reasoning effort level;[26] Anthropic's API returns an error for non-default temperature values on its current Claude models, and from API version 2026-10-21 for any temperature value on every model;[25] and Google says Gemini 4 and Gemini 3.6 and later models ignore custom temperature values, advising that earlier Gemini 3 models be kept at their defaults to avoid degraded reasoning.[24]

The ranges above apply to models that still expose the setting, such as the non-reasoning GPT models covered in Microsoft's guide.[9]


Domain-Specific Prompt Patterns

For Code Generation

Effective code generation prompts specify:

  • Language and version: "Write this in Python 3.11 using only the standard library"
  • What the code must do: Specific input-output behavior
  • Constraints: Performance requirements, style guidelines, error handling requirements
  • What to avoid: Common pitfalls you want avoided
  • Test cases: Providing expected input-output pairs helps the model verify its own solution

Example code prompt. Write a Python 3.11 function that accepts a list of dictionaries and produces a new list sorted by the 'date' key in descending order. Date values come as ISO 8601 formatted strings and cases where the date key is missing should place those items last. Add a docstring and type hints to the function.

For Analysis and Research

Effective analysis prompts specify:

  • The analytical framework. "Analyze using [framework]" or "approach this as a [type of analysis]"
  • The level of critical engagement. The question is whether to evaluate strengths and weaknesses or assume validity and see what follows.
  • The sources of evidence: "Using only the provided document" vs. "drawing on your training knowledge"
  • The depth and completeness. "Identify the three most important factors" compared to "give a full analysis of every factor"

For Writing Assistance

Effective writing assistance prompts specify:

  • The purpose and audience: What the writing must accomplish and for whom
  • The tone and voice: Formal/informal, technical/accessible, warm/authoritative
  • The length and format: Specific word count, structure, components
  • Style references or examples: "In the style of [example]" or "similar in tone to [example]"

Common Prompting Mistakes

Ambiguity: Prompts that can be interpreted multiple ways will be interpreted multiple ways, and typically in ways that do not match what you wanted. Review prompts for ambiguous terms and resolve them explicitly.

Assuming context: Prompts that assume context the model does not have ("improve this based on our previous discussion" when there is no previous discussion in the current session) produce off-target responses.

Overly long, undifferentiated instructions. When prompts bring in many instructions without a clear structure or priority, some instructions may get effectively ignored. Complex instructions should be structured clearly and the most important ones should be given priority.

Asking for everything at once. When complex tasks get broken down into clear steps, they most often perform better than a single complex prompt. The quality goes up enough that the effort put into breaking things down most often gets paid back.

Not iterating. The first response most often becomes the starting point for the best response. A treatment of prompting as a dialogue (looking at outputs, finding what is wrong and prompting for specific fixes) gives better final results time after time than attempting to write perfect first prompts.

Accepting outputs uncritically. Outputs from AI language models can be wrong, missing information, old or biased. Prompting well includes evaluating outputs critically instead of taking them at face value.

As AI tools grow central to knowledge work, prompting skill becomes a professional competency like writing or spreadsheet skill. Being able to prompt well pays off.

None of this is complex or needs technical background. All it takes is the discipline of thinking hard about what you want and saying it clearly.


What Research Shows About Prompt Engineering Effectiveness

Since 2022, the systematic study of prompt engineering as a separate discipline has sped up markedly. It has produced quantitative evidence on which techniques give real performance gains and under what conditions.

Jason Wei, a researcher at Google Brain, led the team that published "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models" (NeurIPS 2022).[1]

Across five families of large language models (GPT-3, LaMDA, PaLM, UL2 and Codex) and 12 benchmarks that covered arithmetic, commonsense and symbolic reasoning tasks, the study tested chain-of-thought prompting, in which the prompt includes a few worked examples that show the reasoning steps before the final answer.

The gains emerged only at around 100 billion parameters: on the GSM8K math benchmark, PaLM 540B rose from 17.9 percent with standard prompting to 56.9 percent with chain-of-thought prompting, state-of-the-art accuracy at the time, while smaller models produced fluent but illogical chains of thought and scored lower than with standard prompting.

Finding this parameter-count threshold has practical consequences. The zero-shot instruction "Let's think step by step" comes from a separate 2022 study by Takeshi Kojima and colleagues (NeurIPS 2022): with no examples at all, it raised InstructGPT's (text-davinci-002) accuracy from 17.7 to 78.7 percent on MultiArith and from 10.4 to 40.7 percent on GSM8K, and here too the gains grew with model size, while chain of thought was not effective on smaller models.[11]

Two follow-ups pushed the idea further. Self-consistency, from Xuezhi Wang and colleagues (ICLR 2023), samples several reasoning paths and keeps the most common answer, adding 17.9 percentage points on GSM8K over chain-of-thought prompting with a single greedy answer.[12]

Tree of Thoughts, from Shunyu Yao and colleagues (NeurIPS 2023), lets the model explore and evaluate several lines of reasoning and backtrack when needed: on the Game of 24 puzzle, GPT-4 with chain-of-thought prompting solved 4 percent of tasks and Tree of Thoughts 74 percent.[13]

In 2023 came out "A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT" by Jules White and colleagues at Vanderbilt University.[3] The paper picked out 16 separate prompt patterns, reusable prompt designs with a fixed internal structure that solve recurring problems in conversations with LLMs, with a focus on automating software development tasks.

The catalog grew out of the authors' own work with ChatGPT, and each pattern is documented the way software design patterns are, with its intent and context, motivation, structure and key ideas, an example implementation and its consequences.

Examples include the Persona pattern (giving the model a persona or role to play), the Recipe pattern (asking for a sequence of steps that reaches a stated goal from partially known "ingredients") and the Output Automater pattern (having the model generate a script that performs any steps it recommends).

The paper also shows how patterns combine: the Recipe pattern, for instance, builds on the Template, Alternative Approaches and Reflection patterns.

Sander Schulhoff at the University of Maryland led the compilation of "The Prompt Report: A Systematic Survey of Prompting Techniques" (arXiv 2024), the most comprehensive systematic review of prompting research to date, covering 58 text-based prompting techniques and 40 techniques for non-text modalities (image, audio, video).[6]

The survey's final dataset was 1,565 papers. In its own benchmark on 2,800 MMLU questions with gpt-3.5-turbo, few-shot prompting scored 65.2 percent against 62.7 percent for zero-shot prompting, few-shot chain-of-thought did best at 69.2 percent, and zero-shot chain-of-thought prompts, which add an instruction such as "Let's think step by step", fell to 54.7 percent.

On examples, the review reports that adding more exemplars generally improves performance, especially in larger models, and that their order, label balance, format and similarity to the input all affect results.

The review also documents how sensitive models are to small prompt changes. Exemplar order alone can move accuracy from below 50 percent to above 90 percent on some tasks; changes as small as extra spaces, capitalization or delimiters swung LLaMA2-7B from nearly 0 to 0.804 on some tasks; and asking for the same sentiment judgment in a different format changed GPT-3's accuracy by up to 30 percent.

From their own prompt engineering case study, the authors conclude that these systems are "being cajoled, not programmed" and can be "incredibly sensitive to specific details in prompts without there being any obvious reason those details should matter." Published recommendations for prompting techniques are therefore starting points that need validation in the particular deployment setting where they will be used.

JD Zamfirescu-Pereira at UC Berkeley published "Why Johnny Can't Prompt: How Non-AI Experts Try (and Fail) to Design LLM Prompts" (CHI 2023), a study that observed 10 participants without substantial prompt design experience as they tried to improve a recipe-instruction chatbot using a prompt design tool called BotDesigner.[10]

The participants explored prompt designs opportunistically rather than systematically. All of them favored direct instructions over examples, and even after seeing examples work when encouraged to try them, none went on to use examples substantially.

They overgeneralized from single observations, stopping once a behavior appeared in one conversation or giving up after a first or second failed attempt, and some were surprised that a prompt like "Do not say ABC" led the chatbot to say ABC verbatim.

The authors trace these struggles to expectations carried over from instructing other people, and see the findings as a case for better LLM-and-prompt literacy among programmers and the public and for tools designed around the instincts people bring to prompt design.

The study supports treating prompt engineering as a learnable skill: the habits that held participants back, such as skipping examples and judging a prompt on a single try, are the ones the techniques in this article correct.


Real-World Case Studies in Prompt Engineering Impact

GitHub Copilot and AI-Assisted Coding. In a 2022 experiment, Sida Peng of Microsoft Research, with Eirini Kalliamvakou and Peter Cihon of GitHub and Mert Demirer of MIT Sloan, randomly assigned 95 professional developers recruited through Upwork to see how AI helps coding productivity.

Developers who used GitHub Copilot finished a JavaScript server implementation task 55.8 percent faster than those in the control group (the average was about 71 minutes compared with about 161 minutes).

The study appeared in 2023 as "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot."[17]

Duolingo's GPT-4 Integration and Prompt Design. In 2023, Duolingo, the language learning platform with over 500 million registered users, integrated GPT-4 into its "Duolingo Max" subscription, which includes a "Roleplay" exercise as well as "Explain My Answer" functionality.[18]

Edwin Bodge, Duolingo's principal product manager, said the features filled gaps in a learner's journey: "conversation practice, and contextual feedback on mistakes." Lead engineer Bill Peterson said GPT-3 had been "close to being ready" but not reliable enough for the complex automated aspects of chats, while GPT-4 gave the team "far more confidence in the accuracy of AI responses in Explain my Answer."[18]

Prompt design stayed in human hands. Duolingo's experts write the Roleplay scenarios, make sure each initial prompt is aligned with where the learner is in their course, write the opening message of the chat and tell the model where to take the conversation, and the team reviews AI-generated content to make sure it is factually correct and has the right tone, fun and encouraging.[19]

Peterson said GPT-4 got the team "from zero-to-ninety-five percent very quickly," after which engineers hand-tuned data to get the last five percent, so the team's work shifted toward testing and honing data sets.[18]

Duolingo said it would gauge the quality of Explain my Answer by how deep a learner needs to go before returning to the lesson.[18]

Legal AI at Allen and Overy. One of the first major law firms to roll out Harvey AI (an LLM-based legal research platform) firm wide was Allen and Overy, which announced in February 2023 that Harvey would be available to more than 3,500 of its lawyers across 43 offices.[20]

The firm had trialled Harvey in beta since November 2022, and by the end of the trial around 3,500 of its lawyers had asked it some 40,000 queries. A&O stressed that the output needs careful review by an A&O lawyer.[20]

For legal work, the context elements covered earlier apply directly: a useful prompt sets out the jurisdiction, the area of law, the standards that apply, the audience for the output and the format wanted.

David Wakeling, head of the firm's Markets Innovation Group, called Harvey "a game-changer that can unleash the power of generative AI to transform the legal industry," adding: "In our trial, we saw some amazing results."[21]

Customer Service AI and Prompt Optimization at Klarna. Klarna's AI assistant, powered by OpenAI, handled 2.3 million conversations in its first month live, two-thirds of Klarna's customer service chats, doing work equivalent to 700 full-time agents, according to the company's February 2024 announcement.

Customer satisfaction was on par with human agents, repeat inquiries fell 25 percent, and customers resolved their errands in under 2 minutes compared with 11 minutes before.[22]

According to a 2025 case study by LangChain, whose LangGraph and LangSmith tools Klarna used to build the assistant, the team tailored prompts dynamically to each scenario, keeping responses relevant while reducing token costs and latency, and tested critical use cases, then refined the assistant with LLM evaluations and prompt iteration.[23]

LangChain reports that in the nine months before the case study the assistant cut average customer query resolution time by 80 percent, and that Klarna helped inspire LangSmith's meta-prompting feature, which lets users ask for specific improvements to a prompt and see how the revised prompt changes response quality.[23]

Klarna estimated that the assistant would drive a $40 million improvement in profit in 2024.[22]


Sources & Further Reading

  1. Wei, Jason et al. "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models." NeurIPS, 2022. View source
  2. Brown, Tom et al. "Language Models are Few-Shot Learners." NeurIPS, 2020. View source
  3. White, Jules et al. "A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT." arXiv:2302.11382, 2023. View source
  4. OpenAI. "Best practices for prompt engineering with the OpenAI API." OpenAI Help Center. View source
  5. Anthropic. "Prompting best practices." Claude Docs. View source
  6. Schulhoff, Sander et al. "The Prompt Report: A Systematic Survey of Prompting Techniques." arXiv, 2024. View source
  7. Reynolds, Laria and McDonell, Kyle. "Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigm." CHI, 2021. View source
  8. Liu, Pengfei et al. "Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing." ACM Computing Surveys, 2023. View source
  9. Microsoft. "Prompt engineering techniques." Microsoft Learn (Microsoft Foundry). View source
  10. Zamfirescu-Pereira, J.D., Wong, Richmond, Hartmann, Bjoern and Yang, Qian. "Why Johnny Can't Prompt: How Non-AI Experts Try (and Fail) to Design LLM Prompts." CHI '23, 2023. View source
  11. Kojima, Takeshi, Gu, Shixiang Shane, Reid, Machel, Matsuo, Yutaka and Iwasawa, Yusuke. "Large Language Models are Zero-Shot Reasoners." NeurIPS, 2022. View source
  12. Wang, Xuezhi, Wei, Jason, Schuurmans, Dale et al. "Self-Consistency Improves Chain of Thought Reasoning in Language Models." ICLR, 2023. View source
  13. Yao, Shunyu, Yu, Dian, Zhao, Jeffrey et al. "Tree of Thoughts: Deliberate Problem Solving with Large Language Models." NeurIPS, 2023. View source
  14. OpenAI. "Reasoning best practices." OpenAI API documentation. View source
  15. Quote Investigator. "Quote Origin: The Hottest New Programming Language Is English." October 20, 2024 (tweet by Andrej Karpathy, January 24, 2023). View source
  16. Zheng, Mingqian, Pei, Jiaxin, Logeswaran, Lajanugen, Lee, Moontae and Jurgens, David. "When 'A Helpful Assistant' Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Models." Findings of EMNLP, 2024. View source
  17. Peng, Sida, Kalliamvakou, Eirini, Cihon, Peter and Demirer, Mert. "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot." arXiv:2302.06590, 2023. View source
  18. OpenAI. "GPT-4 deepens the conversation on Duolingo." OpenAI, March 14, 2023. View source
  19. Duolingo Team. "Introducing Duolingo Max, a learning experience powered by GPT-4." Duolingo Blog, March 14, 2023. View source
  20. A&O. "A&O announces exclusive launch partnership with Harvey." A&O Shearman, February 15, 2023. View source
  21. Law Society Gazette. "Our AI platform is a game-changer, Allen & Overy." Law Society of Ireland Gazette, February 16, 2023. View source
  22. Klarna. "Klarna AI assistant handles two-thirds of customer service chats in its first month." Klarna Press, February 27, 2024. View source
  23. LangChain. "How Klarna's AI assistant redefined customer support at scale for 85 million active users." LangChain Blog, February 12, 2025. View source
  24. Google. "Prompt design strategies." Gemini API documentation. View source
  25. Anthropic. "Thinking." Claude Docs. View source
  26. OpenAI. "Using GPT-6.2." OpenAI API documentation. View source