Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Learn AI in Bits

Learn AI in Bits artwork

073 - What Is an Embedding?

Oct 4, 20265 minAudioSeason 1, Episode 73
ShareXLinkedInFacebookWhatsAppEmail

What exactly is an embedding, and why is it such an important building block in modern AI? This episode explains how text becomes a numerical vector, how comparing those vectors enables semantic search, and how the same idea powers retrieval augmented generation, recommendations, and multimodal retrieval. An embedding model turns a piece of text into a vector, a list of numbers that represents patterns in the input rather than individual words or a fixed dictionary of meanings. Related sentences end up with vectors that are mathematically close together, while unrelated ones end up farther apart, in a space that can span hundreds or thousands of dimensions. As a concrete example, Hugging Face's sentence-transformers/all-MiniLM-L6-v1 model produces a 384-dimensional embedding for a single sentence, straight from its model card. The episode walks through how similarity is measured, including cosine similarity, using three example sentences to show how two related sentences land close together in the embedding space while an unrelated one lands much farther away. It then builds toward semantic search: embedding both a user's question and a database of documents, then retrieving whichever documents' vectors land closest to the question's vector, so a search for "How can I get back into my account?" can surface documentation titled "Recover access to your account" even without matching words. From there, the episode covers retrieval augmented generation, where a system embeds and stores a company's documents, retrieves the most relevant ones for a given question, and hands them to a language model as context. It's direct about the limits, too: different embedding models trained on different data for different tasks can produce different vector spaces and different results, so an embedding is never a perfect stand-in for everything a piece of text means. The episode closes on multimodal embeddings, where Hugging Face's own documentation describes shared embedding spaces that let a text query retrieve related images, extending the same mathematical idea beyond text alone. Sources & References Hugging Face: Using Sentence Transformers - https://huggingface.co/docs/hub/en/sentence-transformers Hugging Face: sentence-transformers/all-MiniLM-L6-v1 - https://huggingface.co/sentence-transformers/all-MiniLM-L6-v1 Hugging Face: Semantic Search with FAISS - https://huggingface.co/docs/course/chapter5/6 Hugging Face: Multimodal Embedding & Reranker Models with Sentence Transformers - https://huggingface.co/blog/multimodal-sentence-transformers Voice narration is AI-generated.

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. 099 - How Does an LLM Generate Text?

    Nov 23, 20265 minAudio

    Follow a prompt through the inner workings of a large language model. This episode explains tokenization, embeddings, transformer layers, attention, logits, probability selection, and the KV cache. It also compares...

    Credit the people on this episode

  2. 098 - Product Managers: What AI Skills Are Companies Looking for?

    Nov 23, 20265 minAudio

    Explore the AI skills employers increasingly expect from product managers working on AI products. This episode covers core product management, AI literacy, model and agent fundamentals, evaluation, product metrics, and...

    Credit the people on this episode

  3. 097 - Developers: What AI Skills Are Companies Looking?

    Nov 23, 20266 minAudio

    Companies are looking for developers who can combine strong software fundamentals with practical AI skills. This episode looks at AI-assisted development, model APIs, RAG, agents, evaluation, debugging, and system...

    Credit the people on this episode

  4. 096 - Structured Outputs — How to Make AI Return Valid JSON

    Nov 22, 20265 minAudio

    Structured outputs help AI models return data that software can reliably read. This episode explains JSON, JSON Schema, and the difference between JSON mode and schema-constrained responses. It also compares how OpenAI,...

    Credit the people on this episode

  5. 095 - Function Calling: How AI Uses Tools

    Nov 22, 20265 minAudio

    Function calling lets AI models work with external tools, APIs, and business systems. This episode explains the tool-calling loop, how applications define and execute functions, and how OpenAI, Claude, Gemini, and...

    Credit the people on this episode