CourseAI Engineering: The Complete Course · Module 6: Transformers · part 43 of 105
Part 43 · Module 6: Transformers

Lesson 1: Attention, the step where words help each other

14 min read·13 Oct 2026
Module 6 · Lesson 1 · About 35 minutes · Needs: Module 4 (what an embedding is)

The situation

Priya forwards a complaint. A customer wrote "My vacuum dock arrived cracked, please replace it" and BrightCart's assistant replied with instructions for replacing the vacuum. The customer wanted a new dock.

A person reads that sentence and knows "it" means the dock without thinking. A model has to work it out. The mechanism it uses is called attention (in full, self-attention: the words of one sentence attending to each other), and it is the one idea that made modern language models possible. This lesson shows how it works, one picture at a time, using that sentence.

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.