Prompt (AI)

A prompt is the input sent to a generative AI model, usually instructions plus text, which in evidence review defines the screening or extraction task.

Status
Published, version 1.0.0
Last reviewed
10 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Prompt (AI) in Evidence Review and Economic Modelling

In generative AI, the prompt is everything sent to the model for one request, which may be a typed question or a structured package of instructions, a review protocol and an abstract to be judged. For a health economist or HTA analyst working with a large language model, the prompt is where the task is defined, whether that task is screening records for a systematic review, pulling inputs from trial reports or drafting code for a model. The model's weights stay fixed in use, so once a model is chosen, the prompt and a few settings are the main parts of the method the analyst controls. NICE ECD20 (2026), the NICE framework on AI methods for evidence, names prompts, along with settings and guardrails, among the influences on how good, consistent, costly and transparent a model's outputs are. Small changes in wording or layout can shift results, so the prompt belongs in the methods of a review or model report.

How a language model treats a prompt

Brown and colleagues showed with GPT-3 in 2020 that one pre-trained model could take on many tasks with no gradient updates, the task and any demonstrations being given purely as text. The model is conditioned on an instruction, a few solved examples or both, and completes the new case by predicting what comes next. The NICE ECD20 (2026) glossary notes that the prompt is first split into tokens, the units of text a model reads. Token (AI) explains that split, and Context Window covers the limit on how many tokens the prompt and reply can use together.

Ouyang and colleagues fine-tuned GPT-3 with human feedback on prompts written by labellers and prompts submitted through the OpenAI API, and found that the base model needed more careful prompting than the tuned models for tasks such as summarising code. Instruction-tuned models are trained to follow plain written requests, and the screening prompt in ECD20 is written that way.

A survey by Liu and colleagues describes a prompt formally as a template with an input slot for the text and an answer slot for the model to fill. It separates hard prompts, made of discrete tokens and usually natural language phrases, from soft prompts, vectors in the model's embedding space tuned on training data. Soft prompts must be trained for each task with direct access to the model itself, so the prompts written for HTA work are almost always hard prompts.

The parts of a prompt used in evidence work

A prompt for an evidence task usually combines several parts, and keeping them distinct makes the prompt easier to review and reuse. The table shows a typical prompt for title and abstract screening.

PartWhat it doesScreening example
Role or system instructionSets a stance kept for the whole taskA cautious reviewer of evidence
Task instructionStates the decision and the allowed answersA one-letter code for include, exclude or unsure
Supplied materialGives the text the answer must rest onProtocol, title and abstract in tagged sections
ExamplesShows solved cases of the taskA few labelled records, as in Few-Shot Prompting
Output constraintFixes the format of the replyOne character, or named fields for extraction

The example screening prompt in ECD20 has a role section, a task instruction and tagged slots, with no examples. ECD20 notes that limiting the reply to single characters cuts cost and irrelevant output, and that prompt caching, which reuses repeated portions of a prompt across API calls, saves further time and cost. To reduce false negatives it suggests explicit instructions to use only the supplied material, with external retrieval or tools disabled or controlled. A prompt with placeholders filled afresh for each record is a Prompt Template, and retrieval-augmented generation fills the supplied-material part with retrieved passages.

What NICE ECD20 expects of prompts

For screening, NICE ECD20 (2026) considers it more reliable to send each title and abstract separately through an API with the same validated prompt template than to process many records in one chat session, where context window limits or many conversational turns can degrade performance. Templates should be optimised on held-out development data, although pilot experiments may refine a prompt before the remaining records are screened. Screening is a low-creativity binary task, so prompts and settings should keep variation down, and with smaller models even the order of abstract and criteria can change performance.

For data extraction, ECD20 states that the prompting strategy strongly influences quality. Questions can be asked one after another in the same exchange (Prompt Chaining), all at once in a single prompt, or each in a separate model call, and the separate-call strategy limits ordering effects and interference between items. ECD20 does not currently recommend fully automated extraction, or generative AI as a support tool that extracts text, and accepts semi-automation, with a human extracting the same items independently, only when every AI-extracted item is checked against the primary source. For a health economic model, it confines AI to support with a human closely in the loop, so a prompt may ask for model code that a person checks and runs, or for suggested parameter values that are not substituted into the model automatically.

ECD20 lists prompts among the factors that can affect reproducibility. Reporting the final prompt may be enough if the reasons for choosing it are clear, and sharing templates with model names and versions supports transparency when a human stays fully in the loop on discrete tasks. ECD20 also suggests keeping a prompt library, re-validating when prompts change substantively, and having prompts reviewed by more than one person and written in a neutral voice to limit Context Bias.

Why wording and layout change the answer

Sclar and colleagues tested changes to prompt format that leave the meaning untouched, such as casing, separators and spacing. Accuracy differed by up to 76 points between equivalent formats for LLaMA-2-13B and by about 10 points on average across more than 50 tasks and several models, and adding examples, using a larger model or instruction tuning did not remove the effect. Formats that worked well for one model correlated only weakly with those for another, and the authors recommended reporting a range across plausible formats.

For an HTA team, one validated prompt therefore gives one result from a spread of possible results. A change of model calls for the prompt to be retested, in line with the re-validation ECD20 asks for, and comparisons between models that rest on one arbitrarily chosen format are open to question. ECD20 adds that role instructions, such as a cautious reviewer, can shift screening judgements.

Worked example comparing two screening prompts

All numbers in this example are illustrative. A review team tests two prompts on 400 development records that two human reviewers have already screened, of which 40 are relevant and 360 are not. Prompt A asks only for include or exclude. Prompt B adds a code for unsure, and every unsure record goes to a human, so it counts as an include. NICE ECD20 (2026) makes the true positive rate and false negative rate the primary screening measures, because a missed relevant record can change the evidence base.

TPR=TPTP+FN,FNR=1−TPR,Specificity=TNTN+FP\text{TPR} = \frac{TP}{TP + FN}, \qquad \text{FNR} = 1 - \text{TPR}, \qquad \text{Specificity} = \frac{TN}{TN + FP}

where TPTP is the number of relevant records the prompt includes, FNFN is the number of relevant records it excludes, TNTN is the number of irrelevant records it excludes, FPFP is the number of irrelevant records it includes, TPR is the true positive rate (the sensitivity of the prompt) and FNR is the false negative rate. Specificity is the share of irrelevant records correctly excluded.

1. Prompt A. It includes 34 relevant records and misses 6, so TPR is 34 / 40 = 0.85 and FNR is 1 − 0.85 = 0.15. It excludes 324 irrelevant records and includes 36, so specificity is 324 / 360 = 0.90. Humans receive 34 + 36 = 70 records.

2. Prompt B. It includes 39 relevant records and misses 1, so TPR is 39 / 40 = 0.975 and FNR is 1 − 0.975 = 0.025. It excludes 279 irrelevant records and includes 81, so specificity is 279 / 360 = 0.775. Humans receive 39 + 81 = 120 records.

3. Workload. Prompt B sends 120 − 70 = 50 more records to humans to find 39 − 34 = 5 more relevant ones, or 50 / 5 = 10 extra records per extra relevant record.

4. Interpretation. Prompt B misses one relevant record in 40 against six for Prompt A, at the price of 50 more records for human screening. ECD20 puts avoiding false negatives first when humans screen everything retained, so the team would carry Prompt B forward, confirm it on held-out records, repeat runs to check stability and report the final prompt with the model name and version. Because excluded records never reach a human, ECD20 would class this sift as automation, so the team would also need to show a false negative rate no worse than human screening, report it with a measure of uncertainty and check a random sample of the exclusions. Forty relevant records leave that uncertainty wide, since one miss in 40 gives an exact 95% interval for the false negative rate of about 0.001 to 0.13, and the intervals for the true positive rates of the two prompts overlap. ECD20 also warns that over-inclusion adds screening workload on top of the usual risk of reviewer fatigue, which can lead reviewers to trust AI-retained records too readily, so the 120 retained records need watching.

Prompt injection and other limits

A prompt mixes instructions with data, and the model cannot always tell them apart. Perez and Ribeiro defined prompt injection as inserting malicious text to misalign a model, and showed GPT-3 being made to drop its original task or print out its original prompt. Greshake and colleagues described indirect prompt injection, where instructions planted in data likely to be retrieved reach the model without any direct access. Evidence work sends full texts and web pages to models, so an AI agent or tool reading such material carries this risk. Disabling external retrieval and tools, which ECD20 advises for screening to cut false negatives, narrows the route but does not close it, since instructions planted in a supplied full text still reach the model.

A careful prompt does not make an output correct. Hallucination (AI) can still occur, and ECD20 requires every AI-extracted item to be verified against the primary source. It also notes that justifications a model gives are often produced after the fact and do not show how the answer was reached. Among neighbouring terms, Prompt Engineering is the practice of designing and refining prompts, Role Prompting assigns a persona and Chain-of-Thought Prompting asks for reasoning steps before an answer. Fine-Tuning changes the model's weights, whereas a prompt leaves the model unchanged and is sent again with every call.

Sources

  • Brown TB, Mann B, Ryder N, Subbiah M, Kaplan J, Dhariwal P, et al. Language models are few-shot learners. Advances in Neural Information Processing Systems 33 (NeurIPS 2020). 2020. https://arxiv.org/abs/2005.14165
  • Greshake K, Abdelnabi S, Mishra S, Endres C, Holz T, Fritz M. Not what you've signed up for: compromising real-world LLM-integrated applications with indirect prompt injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec 2023). 2023. https://doi.org/10.1145/3605764.3623985
  • Liu P, Yuan W, Fu J, Jiang Z, Hayashi H, Neubig G. Pre-train, prompt, and predict: a systematic survey of prompting methods in natural language processing. ACM Computing Surveys. 2023;55(9). https://doi.org/10.1145/3560815
  • National Institute for Health and Care Excellence. AI methods for evidence framework (ECD20). NICE; published 9 November 2026. Chapters on introduction to AI in NICE decision making, principles for using AI in evidence activities, AI methods for evidence synthesis and AI methods for health economic evaluation, and Appendix A glossary. https://www.nice.org.uk/corporate/ecd20
  • Ouyang L, Wu J, Jiang X, Almeida D, Wainwright CL, Mishkin P, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems 35 (NeurIPS 2022). 2022. https://arxiv.org/abs/2203.02155
  • Perez F, Ribeiro I. Ignore previous prompt: attack techniques for language models. NeurIPS 2022 ML Safety Workshop. 2022. https://arxiv.org/abs/2211.09527
  • Sclar M, Choi Y, Tsvetkov Y, Suhr A. Quantifying language models' sensitivity to spurious features in prompt design. International Conference on Learning Representations (ICLR 2024). 2024. https://arxiv.org/abs/2310.11324

Library

Publications

1
  • Journal article

    MSR26 The Use of Copilot, a Generative Artificial Intelligence Tool, as VBA Programming Assistant in Excel-Based Health Economic Models — Poirrier JE, Bergemann R, Vol. 26, No. 12, p. S398 ed., 2023 (Value in Health)

    Poster abstract on Copilot as a VBA coding assistant in Excel-based economic models.

Frequently Asked Questions (6)

  • What is prompt in AI?

    A prompt is the input sent to a generative AI model, usually instructions plus text, which in evidence review defines the screening or extraction task.

    Source: NICE ECD20 (2026)

  • How should an AI prompt be run for title and abstract screening in a systematic review under NICE ECD20?

    NICE ECD20 (2026) considers it more reliable to send each title and abstract to the model separately through an API, with the same validated prompt template every time, than to process many records in one chat session. The template should be optimised on held-out development data, although pilot experiments may refine it before the remaining records are screened. Screening is a low-creativity binary task, so the prompt and settings should keep variation down, and limiting the reply to a single character also cuts cost and irrelevant output. To reduce false negatives, ECD20 suggests telling the model to rely only on the supplied material, with external retrieval or tools disabled or controlled.

    Source: NICE ECD20 (2026)

  • Can an AI prompt be used to build or populate a health economic model under NICE ECD20?

    NICE ECD20 (2026) confines AI in health economic evaluation to support with a human closely in the loop, and does not accept semi or full automation there. A prompt may therefore ask a language model to draft model code that an analyst then checks and runs, or to suggest how parameter values might be estimated. Any suggested values are not substituted into the model automatically. Where a prompt is used to pull model inputs from trial reports, the ECD20 data extraction guidance also applies, since it does not recommend generative AI as a support tool that extracts text and requires every AI-extracted item to be verified against the primary source.

    Source: NICE ECD20 (2026)

  • How does an AI prompt differ from fine-tuning a language model?

    Fine-tuning trains a pre-trained model further on task data and changes its weights, so the adaptation is carried in the model itself rather than resent with each request. A prompt leaves the weights untouched and has to be sent again with every call. Brown and colleagues showed with GPT-3 that one pre-trained model could take on many tasks with no gradient updates, with the task and any solved demonstrations given purely as text in the prompt. For an HTA team using a general model, the prompt and a few settings are therefore the main part of the method that the analyst can design and test once a model has been chosen.

    Source: Brown et al. 2020

  • Why can small changes to the format of an AI prompt change a language model's results?

    Sclar and colleagues changed only the format of prompts, such as casing, separators and spacing, while keeping their meaning the same. Accuracy differed by up to 76 points between equivalent formats for LLaMA-2-13B and by about 10 points on average across more than 50 tasks and several models. Adding examples, using a larger model or instruction tuning did not remove the effect, and formats that suited one model correlated only weakly with those for another. The authors recommended reporting a range of performance across plausible formats, so one validated screening prompt gives one result from a wider spread and a change of model calls for retesting.

    Source: Sclar et al. 2024

  • Why does prompt injection matter when an AI prompt carries full texts for an evidence review?

    Prompt injection is the insertion of text designed to pull a language model away from its intended task. Greshake and colleagues described an indirect form, in which instructions planted in documents or web pages likely to be retrieved reach the model without the attacker having any direct access. They argued that applications built on language models blur the line between data and instructions. An AI prompt for evidence review often carries full texts or web content next to the task instructions, so a tool or AI agent reading such material carries this risk. Disabling external retrieval and tools, as NICE ECD20 advises for screening, narrows the route but cannot stop instructions planted in a supplied document.

    Source: Greshake et al. 2023

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 10 Nov 2026

Content version: 1.0.0

Canonical Identity

Term code
HS-HP-DH-099

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/prompt-ai