Skip to main content
Learn AI Create the Future — with Pranay
  • Learn
  • Paths
  • Projects
  • Practice
  • Glossary
  • Errors
  • LeetCode
  • Main site

Main site →
Select language

Translation is unavailable right now. Your browser’s own “Translate page” usually works.

Machine translation by Google

Topics

  • 🧱 Foundations 2 sections
  • 🤖 Machine Learning 11 sections
  • 📊 Statistics and Experiments 4 sections
  • 🧭 Doing the Work 9 sections
  • 🧠 Deep Learning 11 sections
  • 🧰 Libraries and Frameworks 4 sections
  • 💬 Language and NLP 15 sections
    • Natural Language Processing 8 lessons
    • Text Preprocessing 9 lessons
    • Classical NLP That Still Works 7 lessons
    • The Embedding Family 10 lessons
    • The BERT Family 10 lessons
    • Sequence Labelling and Structure 10 lessons
    • Topic Modelling and Text Clustering 9 lessons
    • Semantic Search and Reranking 11 lessons
      • Overview
      • Keyword search vs semantic search
      • Bi-encoders vs cross-encoders
      • Reranking the top 50
      • Hybrid search with reciprocal rank fusion
      • How HNSW and IVF actually work
      • FAISS
      • Query rewriting and expansion
      • Filtered vector search
      • ColBERT and late interaction
      • Learned sparse retrieval with SPLADE
      • Building a retrieval test set for your own corpus
    • Chunking and Long Documents 8 lessons
    • Question Answering 10 lessons
    • Summarisation 10 lessons
    • Sentiment, Opinion and Text Mining 9 lessons
    • Multilingual and Indic NLP 12 lessons
    • Messy Real-World Text 10 lessons
    • Evaluating Text Systems 7 lessons
  • 👁️ Computer Vision 13 sections
  • 🎙️ Speech, Forecasting and Recommenders 3 sections
  • ✨ Generative AI and LLMs 4 sections
  • 🔬 Inside a Transformer 11 sections
  • ⚙️ Production and MLOps 16 sections
  • 🌍 AI in the Real World 12 sections
  • ⚖️ Safety, Ethics and Law 2 sections

See all topics

  1. Home
  2. Learn
  3. Semantic Search and Reranking

💬 Language and NLP · Section 048

🔍 Semantic Search and Reranking

Search that finds the right passage even when none of the words match, and the reranking step that makes it good.

Every lesson in this section is written by Pranay Mahendrakar.

11 of 11 lessons published · Three reading levels on every lesson

Start with “Keyword search vs semantic search”

Lessons in order

Work top to bottom. Each lesson assumes the one above it.

  1. 01 Keyword search vs semantic search
  2. 02 Bi-encoders vs cross-encoders
  3. 03 Reranking the top 50
  4. 04 Hybrid search with reciprocal rank fusion
  5. 05 How HNSW and IVF actually work
  6. 06 FAISS
  7. 07 Query rewriting and expansion
  8. 08 Filtered vector search
  9. 09 ColBERT and late interaction
  10. 10 Learned sparse retrieval with SPLADE
  11. 11 Building a retrieval test set for your own corpus
Previous Topic Modelling and Text Clustering Next Chunking and Long Documents

Learn AI

Learn Artificial Intelligence the easy way.

Learn. Build. Ask. Share.

Free forever. No sign-up, no ads, no tracking.

Learn

  • All topics
  • Learning paths
  • Projects
  • Practice playground
  • AI glossary
  • Error database
  • LeetCode solutions

Start here

  • Python for AI
  • Mathematics for AI
  • Machine Learning
  • Classic Algorithms in Depth
  • Linear Models and Regularisation
  • Ensembles and Gradient Boosting

This site

  • Search
  • New lessons feed
  • Sitemap
  • About Pranay Mahendrakar
  • pranaymahendrakar.com

© 2026 Pranay Mahendrakar. Written for people who are starting from zero.

10 new lessons every day. If something here is wrong or confusing, that is worth fixing — say so.