{"id":47352,"date":"2023-03-23T09:30:27","date_gmt":"2023-03-23T09:30:27","guid":{"rendered":"https:\/\/www.arimetrics.com\/glosario-digital\/prompt"},"modified":"2026-10-01T13:10:07","modified_gmt":"2026-10-01T13:10:07","slug":"prompt","status":"publish","type":"encyclopedia","link":"https:\/\/www.arimetrics.com\/en\/digital-glossary\/prompt","title":{"rendered":"Prompt"},"content":{"rendered":"<p><strong>Definition:<img decoding=\"async\" class=\"boxpad alignright wp-image-47279 size-full\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/03\/prompt.jpg\" alt=\"Prompt\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/03\/prompt.jpg 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/03\/prompt-150x150.jpg 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/strong><\/p>\n<p>A <strong>prompt<\/strong> is an input that communicates an instruction, question, context, or dataset to a system so that it produces a response or performs an action. In generative AI, it may combine text, images, audio, code, or other content supported by the model.<\/p>\n<p>The prompt guides behavior during an interaction, but it does not by itself modify the parameters used to train the model. The result depends on the <strong>system&#8217;s capabilities<\/strong>, higher-level instructions, available context, and how the task is expressed.<\/p>\n\n<h2>Prompts in computing and AI<\/h2>\n<p>In computing, prompt also refers to the terminal indicator showing that a system is ready to receive a command. It may display the user, current directory, or a symbol such as `$` or `>`. This <strong>command prompt<\/strong> is an input interface, not a complete instruction.<\/p>\n<p>In <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/generative-ai\">generative AI<\/a>, the usual meaning is the <strong>content sent<\/strong> to the model. It may request an explanation, classification, translation, code generation, or document analysis. It can also include reference material that the answer should use.<\/p>\n<p>A prompt does not train the base model with every request. Training and <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/fine-tuning\">fine-tuning<\/a> change parameters through separate datasets and processes; prompting conditions the output during <strong>inference<\/strong>.<\/p>\n<h2>How a model interprets it<\/h2>\n<p>The model processes the prompt together with system instructions, conversation history, tool results, and other available content. The system represents this content as <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/ai-token\">AI tokens<\/a>. All the material occupies part of the <strong><a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/context-window\">context window<\/a><\/strong>, whose limit determines how much can be considered in one interaction.<\/p>\n<p>Models generate responses from <strong>learned patterns<\/strong> and the context received. Clear instructions can reduce ambiguity, but they do not make the output deterministic or guarantee factual accuracy. Different models or settings may interpret the same text differently.<\/p>\n<p>In applications such as <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/chatgpt\">ChatGPT<\/a>, several <strong>instruction layers<\/strong> may influence the result. Application and system rules take priority over a user request when they conflict. External data should be distinguished from instructions so that a document or webpage cannot improperly alter the task.<\/p>\n<h2>Components of a prompt<\/h2>\n<p>An effective prompt contains only the <strong>information needed<\/strong> to define the task and assess the response. Depending on the use case, it may combine these components:<\/p>\n<ul>\n<li><strong>Objective:<\/strong> The specific action the system should perform.<\/li>\n<li><strong>Context:<\/strong> Relevant background, data, or documents.<\/li>\n<li><strong>Constraints:<\/strong> Limits on scope, tone, length, or permitted sources.<\/li>\n<li><strong>Format:<\/strong> The expected structure, such as a list, table, JSON object, or code block.<\/li>\n<li><strong>Examples:<\/strong> Inputs and outputs that demonstrate the desired criterion.<\/li>\n<\/ul>\n<p><strong>Specific information<\/strong> is usually more useful than generic formulas. Identifying the audience, purpose, and available data helps bound the response. Adding a fictional persona or asking the model to act as an expert does not replace missing knowledge, sources, or criteria.<\/p>\n<h2>Prompting techniques<\/h2>\n<p><strong>Prompting techniques<\/strong> organize instructions and context so that the task is easier to understand. Not every technique is needed for every request, and effectiveness varies by model and objective.<\/p>\n<ul>\n<li><strong>Zero-shot:<\/strong> The task is described without response examples.<\/li>\n<li><strong>Few-shot:<\/strong> One or more representative examples are included.<\/li>\n<li><strong>Grounding:<\/strong> Documents or data are provided as the basis for the output.<\/li>\n<li><strong>Decomposition:<\/strong> A complex task is divided into steps or chained requests.<\/li>\n<li><strong>Structured output:<\/strong> A schema is defined to make the result easier to validate or reuse.<\/li>\n<\/ul>\n<p><strong>Prompt engineering<\/strong> is the practice of designing, testing, and maintaining these instructions for a specific task. It includes comparing variants, retaining test cases, and reviewing behavior when the model, context, or application changes.<\/p>\n<h2>Evaluation and limits<\/h2>\n<p><strong>Prompt quality<\/strong> is not measured by length but by the ability to produce suitable results across representative cases. An evaluation may assess accuracy, coverage, format, consistency, safety, cost, and latency according to the system&#8217;s purpose.<\/p>\n<p>Prompts do not remove <strong>model limitations<\/strong>. A response may contain errors, invent facts, ignore part of the context, or reproduce biases. Tasks affecting important decisions need verifiable sources, additional controls, and human review when appropriate.<\/p>\n<p><strong>Prompt injection<\/strong> is another risk, in which untrusted content attempts to introduce instructions that conflict with the application&#8217;s objective. Protection requires separating data from instructions, limiting permissions, and validating actions rather than relying only on a sentence added to the prompt.<\/p>\n<p>A sound process starts with a simple instruction and an expected result, adds context or examples when they provide value, and retests the exact version. This <strong>iterative evaluation<\/strong> distinguishes a reproducible improvement from a favorable response obtained by chance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition: A prompt is an input that communicates an instruction, question, context, or dataset to a system so that it produces a response or performs an action. In generative AI, it may combine text, images, audio, code, or other content supported by the model. The prompt guides behavior during an interaction, but it does not [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"template":"","encyclopedia-tag":[1381],"class_list":["post-47352","encyclopedia","type-encyclopedia","status-publish","hentry","encyclopedia-tag-ai-fundamentals"],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia\/47352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/28"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=47352"}],"wp:term":[{"taxonomy":"encyclopedia-tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia-tag?post=47352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}