CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

How Generative AI Models Work

Generative AI models such as large language models write text by predicting what comes next. This lesson explains tokens, embeddings, prompts and the temperature setting, so you can describe how a model turns a prompt into a completion on the AI-901 exam.

10 cards

How Generative AI Models Work

In this lesson · 5 sections
Step 3 of 5

System prompts, user prompts and context

A prompt is any input you give the model. Two kinds do different jobs.

Prompt typeWho writes itPurpose
System promptThe application developerDefines the assistant's role, style and limits
User promptThe person chatting, or the app for themStates the task or question to answer now

Most chat apps also remember the conversation by sending earlier messages back with each new prompt, so a follow-up such as "and the deadline?" has context. Retrieval augmented generation (RAG) adds another layer: the app first fetches relevant documents, then places them in the prompt, so the answer is grounded in that material. In both cases the model itself is unchanged.