Skip to main content
Albero Academy

What is Generative AI?

Large language models, tokens, how they generate text, and the core terms — context window, temperature, hallucination.

Chapter 1Generative AI14 min readBeginner friendly
  • #GenAI
  • #LLM
  • #Basics

Generative AI is the class of models that create new content — text, images, code, audio — rather than just classify or predict a label. The models behind the text tools you use are large language models (LLMs). This course is a practitioner's introduction: how they work, how to prompt them well, and how to build real applications on top of them.

What is generative AI?

A traditional model might answer "is this email spam?" A generative model produces open-ended output: write the email, summarise a report, translate a paragraph, generate code. Modern LLMs are strikingly general — one model handles many tasks with no task-specific training, just a good prompt.

How LLMs work

An LLM is trained on vast amounts of text to predict the next piece of text given everything before it. Do that well enough, at enough scale, and the model appears to reason, summarise and write. At its core it is a very sophisticated next-token predictor — understanding that framing explains both its power and its failure modes.

Tokens & context

Models don't see words — they see tokens (roughly 3–4 characters of English each). The context window is how many tokens the model can consider at once — your prompt plus its reply must fit inside it. Bigger windows let you pass more documents, but cost and latency grow with tokens:

tokens, roughly
"Albero Academy" ≈ 3–4 tokens
1 page of text ≈ 500 tokens
Pricing & limits are measured per-token, both input and output.

Key terms

TermMeaning
PromptThe input text you give the model
TokenA chunk of text the model reads/writes
Context windowMax tokens the model handles at once
TemperatureRandomness: low = focused, high = creative
System promptInstructions that set the model's role & rules
HallucinationA confident but false or invented answer

Limits

  • Hallucination — models can state false facts fluently. Verify anything that matters.
  • Knowledge cutoff — a base model only knows its training data; it can't know today's news without being given it.
  • No true memory — each request is stateless; conversation "memory" is just re-sending prior messages.

Practice

Take any chat LLM and give it the same question three times, once asking for a "concise" answer, once "detailed", once "for a 10-year old". Notice how much the prompt shapes the output — that's the whole of the next chapter.

Key takeaways

  1. 01Generative AI creates new content; LLMs are the text-generating kind.
  2. 02An LLM predicts the next token; scale turns that into apparent reasoning and writing.
  3. 03Models read/write tokens; prompt + reply must fit the context window, and you pay per token.
  4. 04Learn the vocabulary: prompt, temperature, system prompt, hallucination, context window.
  5. 05Verify outputs — models hallucinate, have a knowledge cutoff, and are stateless.