liveBook · Manning

Embedding

As explained in Build Applications with Local AI Models on a Mac

An embedding is a numerical vector representation of an item, such as text, positioned to capture aspects of its meaning or features.

An embedding turns text into a vector: a list of numbers that represents its meaning in a form a computer can compare. An embedding model creates these vectors for documents and questions. section 16.1.2

Similar meaning, different words

“Dog” and “puppy” use different words but have similar meanings, so their vectors would be similar. That lets a search find relevant text even when its words do not match the question. section 16.1.2

In a RAG application, embeddings help find documents to use when answering a question:

Embeddings handle the comparison step of retrieval; they are not the answer themselves. They connect document search to the wider RAG pipeline. section 16.1.2 section 18.1

How Build Applications with Local AI Models on a Mac covers it

How deep it goes
Defines vectors and embeddings, then explains similarity search in plain language without detailing embedding-model internals.
Examples
Contrasts “dog” and “puppy” to show how similar meanings can be found without matching words.
What it assumes
Defines a vector as a list of numbers, requiring no prior vector terminology.
What you can do after
Evaluate/understand why a RAG search can retrieve relevant documents when the question uses different words.
How it connects
Connects embeddings to embedding models, similarity search, vector databases, retrieval pipelines, and RAG.

Also explained in

Compare how 47 books explain embedding →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Applications with Local AI Models on a Mac. The section links point to the parts of the book it draws on.