An embedding represents text as a list of numbers, called a vector, that captures aspects of its meaning. An embedding model converts a document or question into a vector so a computer can compare it with others. section 16.1.2
Similar meaning, different words
The words “dog” and “puppy” have similar meanings, so their vectors would be very similar even though the words themselves differ. This helps a search find relevant content without relying on exact keyword matches. section 16.1.2
In retrieval-augmented generation (RAG), embeddings help find documents relevant to a question:
- An embedding model converts documents and the user’s question into vectors. section 16.1.2
- A similarity search finds document vectors closest to the question’s vector. section 16.1.2


















































