Skip to content

Glossary: RAG Basics

Normalized vectors

Also written: normalize_embeddings

Vectors scaled to length 1. With them, a plain dot product gives the cosine similarity, so one matrix multiplication scores every chunk.

Where the book teaches it

Related terms

Cosine similarityEmbeddingNumPy