Skip to content

Glossary: Running Open Models Locally

Dot product

Multiplying two vectors number by number and adding up the results. For vectors of length 1 it equals cosine similarity, which is why `doc_vectors @ query` scores every chunk at once.

Where the book teaches it

Related terms

Cosine similarityNumPy