Skip to content

Language Models

🎯 Learning objectives

  • Understand how language models work
  • Know the difference between traditional programming and language models (see the previous section for the foundation)
  • Understand what a context window is and why it matters
  • Know the most important limitations

In the previous section we talked about generative AI – now we zoom in on the most discussed type: language models (e.g. ChatGPT, Claude, Gemini). How do they work – and what do you need to know to use them effectively?

  • Language models predict the next word based on patterns in training data.
  • The context window limits how much can be included at once.
  • RAG fetches relevant excerpts so you don’t have to fill entire documents into the prompt.
  • Key risks: knowledge cutoff, hallucinations, lack of β€œreal” understanding, and variation in responses.

Test your knowledge

3 questions Β· 100% correct to pass Β· Review your answers when done