Lab · Search & RAG · ~3 min

Embedding similarity

Compare two texts with a bag-of-words cosine score. See why embeddings beat keywords, then practice in the embeddings lesson.

Bag-of-words cosine: 0.000Shared terms: none. Real embedding models score meaning, not just overlapping words — try a paraphrase with no shared nouns.

How to read this

  • Use this to feel cosine similarity, not to pick a production embedding model.
  • Try a paraphrase with almost no shared words — the toy score drops; a real model often would not.
  • Continue in What are embeddings, then RAG.