Key points
- Prompts are plain text inputs that guide an AI model to generate a specific output.
- Large language models break text into smaller chunks called tokens to process instructions.
- The context window limits how much total text the model can read and remember at once.
- Clear rules and structured inputs help you get repeatable, reliable answers from AI tools.
What you will learn
- Explain tokens and the context window
- See why wording changes answers
- Keep long conversations on track
Introduction to how prompts work
When you type a message into an artificial intelligence tool, you write a prompt. You might ask the tool to size a centrifugal pump or check a valve data sheet. You can also ask it to summarize a water treatment report. To use these tools well, you need to understand how prompts work under the hood.
An artificial intelligence model does not think like a human engineer. It lacks engineering intuition and cannot feel pressure drop or visualize fluid flow. Instead, it predicts the next likely word based on text it read during training. Your prompt sets up the starting conditions for that prediction.
Think of writing a prompt as writing a specification for a junior engineer. If your instructions are vague, you get a vague answer. When you provide clear limits and structured data, the output matches your expectations. The next sections break down the core mechanics behind this process.
Key terms in plain English
- Token: A chunk of text, often a word or syllable, that the model counts and processes.
- Context window: The total token budget—covering your prompt and the answer—that the model holds in memory at once.
- Tokenization: The process of splitting your text into smaller character pieces so the model can read them as numbers.
- Inference: The run phase where the model feeds your prompt through its network to generate an answer.
- Parameter: An internal numerical setting that determines how strongly different words influence each other in the model.
Tokens: the currency of AI models
AI models cannot read raw English sentences directly because they only process numbers. The first step in handling your prompt is tokenization. During this step, the software chops your text into smaller word pieces called tokens.
A token is not always a whole word. Short and common words like “in” or “at” usually count as one token. Technical terms like “electrolyser”, “NPSHa” (Net Positive Suction Head Available), or “bicarbonate” split into two or more tokens. As a rule of thumb, one token is about four characters, or seventy-five words for every one hundred tokens.
This token math matters because AI providers charge you based on token counts. Every model also has strict limits on how many tokens it can process. If you paste a fifty-page pump manual into a prompt, you may exceed the limit. The model will then forget the start of your document.
The context window and memory limits
Every AI model operates inside a working memory boundary called the context window. Standard context windows range from 8,000 tokens up to 1,000,000 tokens or more. For comparison, 8,000 tokens equals roughly six pages of single-spaced technical text.
The context window holds your prompt, your chat history, and the new response. As the conversation grows longer, older messages fall out of this window. When that happens, the model simply forgets the early details you shared.
Imagine you are designing a complex green hydrogen plant across several design loops. The model might forget an operating pressure you mentioned an hour ago as text piles up. You can prevent this memory loss by starting a fresh chat for each new topic.
| Text Type | Approximate Word Count | Estimated Token Count |
|---|---|---|
| Single engineering term (“AODD”) | 1 word | 1 to 2 tokens |
| Short valve sizing query | 25 words | 35 to 45 tokens |
| Page of technical specifications | 500 words | 650 to 800 tokens |
| Standard equipment manual chapter | 5,000 words | 6,500 to 8,000 tokens |
How instructions shape the output
Your written instructions act as mathematical boundaries inside the model. They guide the probability of each word the model picks next. A prompt asking for a casual email triggers conversational words. A prompt citing ISO/IEC 23894 forces the model to use formal, technical terms.
Consider how a prompt handles a fluid flow problem. Ask “Why is my pump cavitating?”, and you get generic answers like low suction pressure or clogged strainers. However, when you supply exact operating parameters, the response sharpens dramatically.
Let us look at an example of input expansion. Suppose you evaluate a centrifugal pump handling water at 80 °C with an NPSHa of 2.5 m. A weak prompt simply says: “Check my pump.” A strong prompt provides clear boundary conditions to guide the math:
“Act as a senior rotating equipment engineer. Check if a centrifugal pump handling water at 80 °C will cavitate. The vapor pressure of water at 80 °C is 47.4 kPa (per standard thermodynamic tables). The available NPSH is 2.5 m. The required NPSH3 from the manufacturer curve is 1.8 m. Show your margin calculation.”
The second prompt gives the model exact numbers and a clear role. ISO/IEC 22989 explains how AI systems process structured data inputs. The standard shows that clear constraints cut hallucination, or invented false facts, during technical tasks.
Try it yourself
- Open your preferred AI chat tool and start a new conversation.
- Type a vague prompt about equipment, such as: “Tell me about safety relief valves.” Read the response and note its level of detail.
- Now, write a targeted prompt with strict constraints: “Act as a safety engineer. Explain the difference between a conventional spring-loaded relief valve and a balanced bellows relief valve in 3 bullet points, referencing API 520 Part I principles.”
- Compare the second response to the first. Notice how adding constraints removes fluff and improves technical depth.
What a good result looks like: The second response directly lists key mechanical differences, like how backpressure affects opening pressure. It uses clean bullet points and explains bellows sealing. Crucially, it stays on topic without introducing unrelated valve types.
Quick quiz
Question 1: What is a token in the context of large language models?
Answer: A token is a chunk of text, ranging from a single character to a full word. The AI model uses it as a basic numerical unit. It counts these units to process instructions and generate responses.
Question 2: What happens when your chat history exceeds the model’s context window?
Answer: The model drops the oldest parts of the conversation from its active memory. As a result, you lose earlier constraints or details. The model will no longer remember requirements you stated at the start.
Question 3: Why do technical prompts benefit from specifying design standards like ISO or API?
Answer: Citing industry standards acts as a mathematical boundary for the model. It steers word predictions toward formal, verified engineering terms. This prevents the tool from falling back on generic consumer assumptions.
Frequently asked questions
Why does changing a single word in a prompt sometimes completely change the answer?
AI models calculate word probabilities based on the context you provide. Changing a key term, like swapping “relief valve” for “control valve”, shifts the model’s internal mathematical map. This shift triggers a completely different pathway of technical terms during inference, or text generation.
Can I break a prompt into multiple messages, or should I send everything at once?
You can split information across several messages if your chat stays within the context window. However, sending your boundary conditions together yields better results. Stating your temperatures, pressures, and standards in your initial prompt gives you a more accurate first response.
How do I know if my prompt has exceeded the model’s limits?
Some platforms display a token counter right on the chat screen. You can also spot overflow by watching the model’s behavior. If it repeats itself, contradicts earlier instructions, or forgets numbers you provided, you have exceeded its memory limit.
Do you have a pump selection challenge, a workflow question, or a plant data problem? Get in touch with Avoltium for help structuring your prompts for maximum accuracy.
Prompt Engineering · Lesson 1 of 6 · All free AI courses







