Artificial intelligence • Original RRTutors lesson
Generative AI and Foundation Models
Understand models that generate text, images, audio, or other outputs from learned patterns.
Concept and explanation
Generative models learn a data distribution or representation and sample outputs conditioned on prompts or other inputs. A foundation model is trained broadly and adapted for multiple tasks. Generated output can be fluent yet unsupported, unsafe, biased, or inconsistent; human review and source verification remain important where correctness matters.
How to apply it
Define allowed uses, provide relevant context, constrain output format, validate results, and keep sensitive data out of unapproved services.
Worked example
A drafting assistant can propose a first version of a report, while a reviewer checks facts, permissions, and tone.
Illustrative Python example
prompt = "Draft a neutral summary from the supplied notes."
constraints = ["use only provided notes", "mark unknown details", "include no personal data"]
print(prompt, constraints)
Expected result
Explicit constraints describe desired behavior but do not guarantee that a model will follow them.
Limitations and cautions
Generated text is not a source of truth, and outputs may resemble training material or expose sensitive content.
Practice exercise
Write a prompt and a separate verification checklist for summarizing a technical incident report.
Key takeaway: Treat generation as a proposal to validate, not an authoritative answer.