Level 3 · Module 15 · 10 minutes
Generative AI for text
- Describe how a text model builds a reply token by token.
- Explain how a prompt steers the output.
- Distinguish drafting from verifying generated text.
Text generation is the most familiar use of generative AI. A model that has learned patterns of language can continue a prompt, answer a question, summarise a document, rewrite a paragraph or produce a first draft. The output arrives as ordinary text, which makes it easy to use and easy to over-trust.
How a text model produces a reply
The model does not plan a whole reply the way a person might. It works in small steps, producing the next token, then the next, using the text before it as context. Each token is chosen according to learned patterns of what tends to follow. The result can look like careful writing, but it comes from a sequence of likely choices.
Your prompt sets the direction. Clear instructions, examples of the tone you want and the facts to include all help. A vague prompt leaves more of the choice to the model. Even a clear prompt cannot supply facts the model never learned, and it cannot make the model check a source on its own.
Good uses for text generation
- Turning rough notes into a readable first draft.
- Rewriting the same message for a different audience.
- Suggesting outlines, titles or alternative wordings.
- Summarising a document you have provided.
These uses work better when the source material is included and the purpose is clear. A rough draft is a starting point, not a finished answer. In each case the person stays responsible. A summary can leave out a key condition. A draft can contain an invented name, quotation or reference. A confident statement can be wrong.
Training and use are separate
The model's weights were fixed before you used it. Typing a correction does not train it. A provider may keep a conversation and use it later, but that is a separate process, and you should not assume the model has learned your preferences.
A teaching picture, not a commercial system
Lessons show a prompt and a short reply, with a few tokens highlighted. Real commercial systems involve very large models and additional filtering and safety layers. The token-by-token idea is accurate, but the small example is a teaching simplification.
Common misconception
If the writing is polished, the facts in it must be reliable. Polishing comes from language patterns, not from fact checking. Claims, names, quotations and references in generated text must be checked against a trustworthy source before they are used or sent.
Guided practice
Write a short message from rough notes, then rewrite it for two different audiences. Mark every claim that would need checking before sending. Explain in one sentence why the model's fluent style cannot replace that check. This is a paper exercise; no model is trained.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem