internalsGet Pro

Module 08 · Lesson 8 of 9Pro

Clustering with embeddings

Level
Intermediate
Topic
Unsupervised learning
Reading time
18 min

When you finish this page you can

  1. Explain why normalizing embeddings to length 1 makes Euclidean distance, and so k-means, compare directions the way cosine similarity does.
  2. Find duplicate listings among 50,000 products with a nearest-neighbour search and a similarity threshold, sized for a free notebook.
  3. Group products into themes with k-means, or with PCA and then HDBSCAN, and say when each fits.
  4. Check clusters and thresholds by reading samples before anyone acts on them.
  1. Norms and distances between data points14 min
  2. k-means: grouping similar data points14 min
  3. Hierarchical, density and mixture-model clustering18 min

Four copies of one bottle

is our example online store. Its ML team works on a notebook sample of 50,000 products. Joseph, who leads the growth team, searches for “steel water bottle”. Four of the top ten results are the same bottle, listed by different sellers under slightly different titles.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan