4
Mastering Embeddings
You shall know a word by the company it keeps.
— J.R. Firth
Humans operate with words, computers operate with numbers. AI networks operate with embeddings, logits, numeric tokens, and floating-point weights. Imagine you’re planning a party and need to arrange your guests in a way that makes everyone happy. You have friends who love dancing, some who enjoy deep conversations, and a few who are foodies. How do you ensure that each group gets what they want? This is where the magic of vector embeddings comes in, but instead of guests, we’re dealing with words, phrases, or even bigger paragraphs.
In this chapter, we will get hands-on experience with vector embeddings. You’ll learn how vectors are used to represent complex ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access