Skip to main content
All posts

What is a prompt in AI? A definition with examples

A prompt is the input you give an AI model to get a response. It can include a question, instructions and context.

sorchy team

4 min read

Suppose a long email lands in your inbox. You paste it into an AI tool and write, “Summarize this email in three bullet points. Tell me what I need to do and flag any deadline.” Those instructions are your prompt. The email gives the model the information it needs to answer.

A good prompt clearly describes the task and the expected outcome. That clarity helps the model produce something suited to your needs. Accuracy also depends on the model, the information supplied, and the sources it can access.

What Is a Prompt?

In AI, a prompt is the input that guides a model toward a particular task. “Summarize this paragraph in three sentences” is an instruction, while “What are the application requirements in this document?” is a question. Both are examples of prompts.

A prompt does not have to be a text command alone. If the tool supports it, you can attach an image, an audio recording, or a document. An application’s instructions to the model and earlier conversation messages may also influence the response. It is therefore important to know what information the model can access.

What Does 'Prompt' Mean?

A prompt is the input provided to the model; the response or output is what the model produces. Treating a prompt only as a command is too narrow. It can include instructions, examples, and source information the model should use.

What Are Prompts Used For?

Prompts define the work you expect AI to do and guide how the output should be prepared. Common uses include:

  1. Finding information and summarizing: Explaining a concept, extracting the key points of a report, or summarizing meeting notes.
  2. Creating content: Drafting an email, product description, announcement, or social media post.
  3. Editing text: Translating, simplifying language, correcting spelling, or changing tone.
  4. Analyzing data: Classifying customer reviews, comparing information in a table, or filtering specific records.
  5. Getting technical help: Drafting code or formulas, or explaining possible causes of an error message.

For example, “Edit this text” leaves the intended changes unclear. “Correct spelling mistakes, remove repetition, and preserve the technical meaning” defines the boundaries of the edit.

The Main Components of a Prompt

You can think of a prompt in terms of a task, context, format, and examples. Not every prompt needs all four; the task determines which information matters.

  1. Task: The work you want the model to perform, such as summarizing, comparing two options, or preparing an announcement.
  2. Context: The intended audience, purpose, and source information. In an announcement, actual dates and application requirements are part of the context.
  3. Format: How the response should be presented, such as a table, bullet list, or short paragraphs. You can also specify language, tone, and length.
  4. Example: A sample of the expected output. Examples are particularly useful when you want a specific writing style or classification format.

You can also set constraints such as “do not change the dates provided” or “ask first if information is missing.” These clarify what the model should preserve and how it should handle uncertainty.

Vague Prompt vs. Clear Prompt: An Example

Consider two ways to request a university course-registration announcement. The dates and steps below belong to an illustrative scenario only.

Vague prompt: “Write a course-registration announcement for our website.”

Clearer prompt: “Write a course-registration announcement for first-year students on a university website. Use this information: Registration is open from February 10 at 9:00 a.m. to February 14 at 5:00 p.m. Students select their courses in the Course Registration menu of the student information system and submit them for adviser approval. Use no more than 120 words and a clear, professional tone. Do not invent dates, links, or rules. If essential information is missing, ask before drafting.”

The second prompt identifies the task, audience, source information, and output constraints. That reduces the need for the model to guess missing details. Before publishing, however, the dates and procedures still need to be checked against the university's actual information. For a reusable template and more examples, see our guide to writing a prompt.

Common Prompting Approaches

Examples and role descriptions are techniques used for different purposes. They are not mutually exclusive and can be combined in one prompt.

Zero-shot prompting: You describe the task without providing an example answer. You might start with a simple instruction such as “Translate the following sentence into English without changing its meaning.”

Few-shot prompting: You show the desired output format through a few examples. For classifying customer reviews, you might label “Arrived quickly” as positive, “The product arrived broken” as negative, and “The product is blue” as neutral.

Role prompting: You can set a perspective or tone by saying “Respond like a customer support representative: polite and solution-oriented.” Giving a role does not grant the model actual expertise or additional knowledge; you must still evaluate the accuracy of its response.

What Is Prompt Engineering?

Prompt engineering is the process of designing, testing, evaluating, and improving prompts for a specific task. The goal is to check how well the output meets predefined criteria. These may include factual accuracy, adherence to a requested format, and appropriate handling of missing information.

For a support assistant, testing only easy questions is not enough. You should also test ambiguous questions, different phrasings of the same need, and requests that are not answered in the sources. This reveals where instructions work and where they need improvement.

Applications may also use higher-level instructions to guide the model's overall behavior. Often called system instructions or a system prompt, these can define the scope and tone of responses. The user's message expresses the task they want completed at that moment.

Prompts and Source-Based Answers on Websites

When a visitor types “Which documents do I need for a scholarship application?” into an AI-powered search box, they are writing a prompt. To give a correct answer specific to that institution, the assistant needs access to the relevant application requirements.

RAG stands for Retrieval-Augmented Generation. In this approach, a system retrieves information relevant to the question from its sources and provides it to the model as context for generating an answer. A typical workflow looks like this:

  1. The visitor's question and, where necessary, conversation context are considered.
  2. Relevant content is retrieved from connected web pages or documents.
  3. That content is passed to the model along with the question and instructions guiding the answer.
  4. The model uses this information to generate a response. If the application supports it, the sources used are also displayed.

RAG helps a model ground answers in sources, but does not guarantee accuracy on its own. The sources must be current, the right information must be retrieved, and the answer must represent it correctly. Where citations are provided, readers can also check whether the linked material actually supports a claim.

This is why it helps to organize website information under clear headings and answer common questions directly.

A visitor's question in an AI-powered website question box is also a prompt. Sorchy uses your site's own content to answer those questions and shows the sources behind its responses. You can explore this experience through the Ask AI question box.

Frequently Asked Questions About Prompts

How long should a good prompt be?

There is no fixed length. A simple task may take one sentence. More involved work benefits from relevant sources, expectations, and constraints. Include what is needed to understand the task rather than adding unrelated detail.

Do I need to know how to code to write prompts?

No. For everyday use, natural-language questions and instructions are enough. Integrating a prompt-driven system into software may require technical skills, depending on the tool and project.

Does writing a prompt mean training a model?

No. Giving instructions or examples in a conversation does not, by itself, mean a model is permanently trained on them. The model uses the context provided when generating its reply. Whether shared data is later used for training depends on the service's policies and settings.

Why can the same prompt produce different answers?

The wording of the prompt is not the only factor. Model and version, conversation history, available sources, and generation settings can all affect the result. Differences can occur even under otherwise similar conditions. Templates and testing make it easier to evaluate consistency.

Does a good prompt always produce a correct answer?

No. A clear instruction helps the model understand the task, but does not automatically fix incomplete or incorrect source information. Verify important details before using the answer; add sources or adjust the instructions where needed.

Written by sorchy team

Product updates, practical guides and how sorchy works under the hood.

More from the blog

All posts

Let your site answer for itself

Add your site, wait for the index, paste one line of code.