Vectors: The Language of Data

From arrows to arrays -- how AI represents everything as vectors

Vectors are the atoms of linear algebra and the native data format of AI. This module builds your intuition from geometric arrows to NumPy arrays. You'll learn vector addition, scalar multiplication, and the dot product -- then discover that dot products measure similarity, the idea behind cosine similarity in recommendation systems and LLM embeddings. Visualize everything with matplotlib so the geometry clicks before the formulas. Mini-lab: Compute cosine similarity between sentence embeddings to find the most similar document in a small collection.

Estimated time: 60 minutes

Stuck on something? The AI tutor sees this lecture—just ask.

Loading learning experience...