Skip to content
derpx06.dev
WritingExplainersNotesAbout
works on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisationworks on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisation

Learning in public.

A student's notebook on system design, distributed systems and databases. Shared as I learn.

ReadWritingExplainersNotesAbout
ElsewhereGitHubLinkedInHugging FaceLeetCode
Say hellomanaskhairnar1511@gmail.com
derpx06
NORMALmain© 2026 Derpx06Pune, Indiatop ↑
Learn/LangChain Mastery/Part 5 · 4. Embeddings & Vector Stores
Lesson 31 of 68

Embeddings: What Matters in Practice

It's not about the model. It's about data density.

Derpx0610 Jan · 1 min read
LangChain Mastery
Embeddings: What Matters in PracticeEmbedding Models in LangChainVector Stores: FAISS, ChromaPersisting & Reloading IndexesMetadata FilteringDense vs Sparse (BM25 Overview)Hybrid Search Concepts
Contents
1. Embeddings Are Geometric Meaning2. Representation > Model3. Dimensionality & Curse of Dimensions4. Summary
0% read · 1 min leftBack to top ↑
Course outline & contents0%
LangChain Mastery
Embeddings: What Matters in PracticeEmbedding Models in LangChainVector Stores: FAISS, ChromaPersisting & Reloading IndexesMetadata FilteringDense vs Sparse (BM25 Overview)Hybrid Search Concepts
Contents
1. Embeddings Are Geometric Meaning2. Representation > Model3. Dimensionality & Curse of Dimensions4. Summary

1. Embeddings Are Geometric Meaning

An embedding is a list of numbers (e.g., [0.1, -0.5, 0.8...]). These numbers represent the "coordinates" of a piece of text in a multidimensional meaning-space. Text with similar meaning ends up close together (Cosine Similarity).

But here is the catch: Embeddings compress meaning. They squeeze 1000 words into 1536 numbers. Loss is inevitable.

2. Representation > Model

Developers obsess over "OpenAI vs Cohere vs Llama." But in production, Chunking dominates quality.

If you embed a chunk that contains 3 distinct topics, the vector will be the average of those 3 topics. Result: The vector matches none of them strongly. It lands in "no man's land" in vector space.

Rule: A chunk should express one clear semantic idea.

3. Dimensionality & Curse of Dimensions

  • Small Dimensions (384): Fast, low storage. Good for simple sentences.
  • Large Dimensions (3072): Slow, expensive. Captures nuance.

But "bigger is better" is false. High-dim vectors need more data to fill the space.

4. Summary

Don't blame the model if your retrieval fails. Blame the data density. If your input is vague, your vector is vague.

Key Intuition: "Garbage in, Average out."

Track your progressSign in and your progress follows you across devices.
Sign in to track progress Next lesson
← Previous lessonLazy Loading & GeneratorsNext lesson →Embedding Models in LangChain