Model foundations · about 15 minutes of study

Embeddings

An embedding maps an input to a numeric vector. A retrieval system compares those vectors to find related content. Similarity is useful evidence for ranking, not proof of truth.

Before you start: Review Tokens first. Python-like examples use variables, lists and functions.

Guided concept walkthrough

Follow the mechanism

Document

Select content and preserve its source.

1 / 4

A conceptual animation, not a live model trace. Play advances every five seconds and stops at the final stage.

Start with an everyday explanation

A library could place books about similar ideas near each other. Nearby shelves help you search, but they cannot tell you whether a particular book contains the correct policy number.

See a concrete example

For unit vectors, cosine similarity equals their dot product. Vectors [1,0] and [0.8,0.6] score 0.8; an unrelated [0,1] scores 0. This two-dimensional example is illustrative.

A claim to question

Close vectors do not establish that a document is authorized, current or factually correct.

Try before revealing the answer

Create three short policy paragraphs: two paraphrases and one with the exact policy ID but different meaning. Predict semantic and keyword rankings.

Show the worked answer

Semantic search should group paraphrases; exact-ID filtering or lexical search can protect identifier lookup. Apply authorization before returning evidence.

Now explain the idea to someone else using your own example. If you cannot explain a stage, revisit it before moving on.

Your explanation and revision notes

Loading local notes…

Read the primary reference

Sentence-BERT

The explanation and exercises are original teaching material. The linked source provides background; examples and assumed numbers here are not claims about a particular company.