Categories

What is a vector embedding and what is it used for

0:40

About this video

Embeddings before the LLM: similarity sorts almost every document, and the model only decides the borderline ones.

A vector embedding is a list of real numbers that represents the semantic meaning of a piece of text, an image, or any other data. Two sentences with the same meaning produce vectors that are close together; two unrelated ones produce vectors that are far apart. Semantic search, RAG, and recommendation systems are all built on this principle.

Video transcript
  1. 0:01 Keyword matching fails:
  2. 0:02 it fires on any page that mentions the word.
  3. 0:05 Precision, 0.71.
  4. 0:08 Instead, embed all 36 documents:
  5. 0:10 one vector each, with no model calls.
  6. 0:13 By similarity to the topic, relevant pages and decoys pull apart on their own.
  7. 0:18 A floor of 0.15 rejects 19 documents and a ceiling of
  8. 0:23 0.40 accepts 6, for free.
  9. 0:27 Only the 11 uncertain ones reach the local LLM, the only expensive step.
  10. 0:32 Precision rises from 0.71 to 1.00.

Read the full article Watch on YouTube

More videos

All videos