What is generative AI?
Generative AI creates new content - text, images, code, audio - rather than just classifying or predicting from existing data.
Azure OpenAI Service gives you managed, enterprise-grade access to OpenAI's models (GPT, embeddings, DALL-E) inside your own Azure subscription, with Azure's security, networking and compliance wrapped around it.
Key model families
- GPT models (e.g. GPT-4 class) - generate and understand natural language and code, used for chat, summarisation, writing, reasoning.
- Embeddings models - turn text into numeric vectors for search, clustering and comparing meaning (used in RAG systems).
- DALL-E models - generate images from text prompts.
- Whisper - speech-to-text transcription and translation.
Prompts and prompt engineering
- A prompt is the input you give the model; the completion is its output.
- System message sets behaviour/persona/rules for the whole conversation.
- Few-shot prompting gives examples in the prompt to steer output format and style - no retraining needed.
- Zero-shot prompting asks the model to do a task with no examples at all.
- Prompt engineering (wording, examples, structure) is the cheapest, fastest way to improve output quality - try this before fine-tuning.
Key generation parameters
- Temperature (0-1 typically) - controls randomness; low = focused/deterministic, high = creative/varied.
- Top P - nucleus sampling, alternative way to control randomness by limiting the probability mass considered.
- Max tokens - caps the length of the response; a token is roughly 4 characters or 0.75 of a word in English.
- Stop sequences - strings that tell the model to stop generating.
Grounding and responsible use
- Base models can 'hallucinate' - producing plausible but false or unverifiable content - because they generate the statistically likely next token, not verified facts.
- Grounding techniques (e.g. Retrieval Augmented Generation, RAG) reduce hallucination by feeding the model relevant, trusted data (like your own documents) at prompt time via Azure AI Search plus 'your data' features in Azure OpenAI Studio.
- Fine-tuning trains a model further on your own labelled examples to change its style or specialise it for a task - used only when prompt engineering isn't enough.
- Azure OpenAI includes built-in content filtering for harmful content, and Microsoft's Responsible AI principles (fairness, reliability & safety, privacy & security, inclusiveness, transparency, accountability) apply throughout.
Common exam trap
Don't confuse Azure OpenAI Service (specific OpenAI models via Azure) with Azure AI Studio / Azure AI Foundry (the broader platform for building generative AI apps, including model catalog beyond OpenAI). Also remember DALL-E is for image generation, not Whisper (that's speech) - the exam likes to mix these up.
What does Azure OpenAI Service provide?
Managed, enterprise-grade access to OpenAI models such as GPT, embeddings, DALL-E and Whisper, inside your own Azure subscription.
tap to reveal
What is a prompt, and what is a completion?
A prompt is the input text given to the model; the completion is the text the model generates in response.
tap to reveal
What does the temperature parameter control?
Randomness of the output - low temperature gives focused, predictable answers, high temperature gives more varied, creative answers.
tap to reveal
Roughly how many characters is one token?
About 4 characters, or roughly 0.75 of a word in English.
tap to reveal
What does max tokens control?
The maximum length of the model's generated response (completion).
tap to reveal
What is few-shot prompting?
Including a few example input/output pairs directly in the prompt to guide the model's response, without retraining it.
tap to reveal
What is zero-shot prompting?
Asking the model to perform a task with no examples given in the prompt at all.
tap to reveal
What is hallucination in generative AI?
When a model generates plausible-sounding but false, made-up or unverifiable content.
tap to reveal
What is Retrieval Augmented Generation (RAG)?
A technique that grounds model responses by retrieving relevant trusted data (e.g. via Azure AI Search) and feeding it into the prompt, reducing hallucination.
tap to reveal
When should you use fine-tuning instead of prompt engineering?
Only when prompt engineering and examples alone can't achieve the needed style, accuracy or specialisation - fine-tuning trains the model further on your own labelled data.
tap to reveal
What does the DALL-E model do in Azure OpenAI Service?
Generates images from text prompts.
tap to reveal
What does the Whisper model do?
Transcribes and translates speech into text.
tap to reveal
What are embeddings used for?
Converting text into numeric vectors that represent meaning, enabling semantic search, clustering and similarity comparison.
tap to reveal
Name the six Microsoft Responsible AI principles.
Fairness, reliability & safety, privacy & security, inclusiveness, transparency, and accountability.
tap to reveal
What built-in safety feature does Azure OpenAI Service include?
Content filtering that helps detect and block harmful or inappropriate generated content.
tap to reveal