---
title: "Evolving Pinterest’s Embedding Retrieval Platform"
description: "Pinterest is evolving Manas, its in-house distributed search platform serving billions of embeddings across 80+ clusters, along three fronts: quantization, SSD-based ANN serving, and multi-embedding retrieval."
url: "https://swe.quest/articles/evolving-pinterest-s-embedding-retrieval-platform-c93c0b5fa7cc0d54"
canonical: "https://medium.com/pinterest-engineering/evolving-pinterests-embedding-retrieval-platform-aede4e831e01"
source: "Pinterest Engineering"
published: "2026-09-11"
difficulty: "hard"
kind: "Case study"
reading_minutes: 7
tags: ["vector-search","search","cost-optimization","recommendation-systems","performance"]
---

# Evolving Pinterest’s Embedding Retrieval Platform

A post on [Pinterest Engineering](https://swe.quest/sources/pinterest.md), published 2026-09-11, 7 min read, Case study. Original: [https://medium.com/pinterest-engineering/evolving-pinterests-embedding-retrieval-platform-aede4e831e01](https://medium.com/pinterest-engineering/evolving-pinterests-embedding-retrieval-platform-aede4e831e01)

## Summary

Pinterest is evolving Manas, its in-house distributed search platform serving billions of embeddings across 80+ clusters, along three fronts: quantization, SSD-based ANN serving, and multi-embedding retrieval. Benchmarks on 100M embeddings showed PQ shrinks indices by 74–93% with 70–80% recall, while SQ cuts 59–75% with over 90% recall. Rolling both out per use case after A/B tests yielded 20–30% serving cost savings, and SIMD-based Linear Scaling SQ trimmed per-query compute by 10–15%. For SSD serving, SPANN with PQ-compressed posting lists and full-precision centroids beat DiskANN by 3x QPS at 1/3 the latency, and saved over 40% CPU versus HNSW on a 5B-embedding index with under 5% recall loss. Manas now also supports ColBERT-style late-interaction queries scored with Sum of MaxSim.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- approximate nearest neighbor search ([easy posts on Search](https://swe.quest/tags/search.md?difficulty=easy))
- HNSW and IVF indexes
- two-tower retrieval models
- vector quantization ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))

## Keywords

Manas, SPANN, DiskANN, HNSW, Product Quantization, Scalar Quantization, ColBERT, SIMD

## Related posts

- [Dense Retrieval](https://swe.quest/articles/dense-retrieval-26c4c0ae9e7ea3b7.md): Vinted Engineering · 2025-11-18 · Hard · 12 min read · Vector search, Search, Machine learning, Performance engineering, E-commerce
  Vinted added embedding-based dense retrieval to its multilingual, highly visual marketplace search using a two-tower model: a fine-tuned projection head on frozen multilingual CLIP for queries, and an item tower fusing CLIP image embeddings with categorical metadata, trained contrastively on 100M+ pairs.
- [Binary and Scalar Embedding Quantization for Significantly Faster & Cheaper Retrieval](https://swe.quest/articles/binary-and-scalar-embedding-quantization-for-significantly-faster-cheaper-01e481f2c952922f.md): Hugging Face · 2024-03-22 · Medium · 16 min read · Vector search, RAG & retrieval, Cost optimization, Python
  Quantizing embeddings themselves, rather than model weights, sharply cuts retrieval memory, disk and cost.
- [SilverTorch: Index as Model — A New Retrieval Paradigm for Recommendation Systems](https://swe.quest/articles/silvertorch-index-as-model-a-new-retrieval-paradigm-for-recommendation-systems-ef74ef8d6c4ca959.md): Meta Engineering · 2026-05-26 · Hard · 14 min read · Recommendations & ranking, Inference & serving, Vector search, Hardware, Performance engineering
  SilverTorch replaces Meta's microservice-based recommendation retrieval with "Index as Model": the item index, eligibility filter, ANN search, neural reranker and multi-task scorer all become tensors or nn.Modules inside a single PyTorch model served on GPUs in one forward pass.
- [On-disk HNSW index for Postgres with pg\_embedding](https://swe.quest/articles/on-disk-hnsw-index-for-postgres-with-pg-embedding-aadc4bd81ebf65c4.md): Neon · 2023-08-03 · Medium · 5 min read · Vector search, PostgreSQL
  pg\_embedding's new version builds its HNSW vector index on disk rather than in memory and adds cosine, Manhattan and Euclidean (L2) distance support.
- [Matryoshka embeddings: faster OpenAI vector search using Adaptive Retrieval](https://swe.quest/articles/matryoshka-embeddings-faster-openai-vector-search-using-adaptive-retrieval-739d1a8595798695.md): Supabase · 2024-02-13 · Medium · 17 min read · Vector search, PostgreSQL, RAG & retrieval, Performance engineering
  OpenAI's text-embedding-3 models are trained with Matryoshka Representation Learning, so an embedding can be shortened by truncating trailing dimensions and renormalizing, which reproduces the API's \`dimensions\` output.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
