WTF Are Embeddings? A software engineer’s take
summary
Overview of how embeddings are used in a RAG pipeline: documents become vectors, stored in a vector DB, queries get embedded with the same model and used to fetch matching passages. Demonstrates with Python and 1500-dimensional vectors returned by an embedding model (using coher), then visualized with UMAP down to 3D. Surprising results: banana nearest neighbor is “gorilla,” opposite is a Python function; kiwi moves from animal to fruit when contextual sentences are added. Explains cosine similarity and that embeddings capture language associations, not human categories.
AI-written summary · about
