Abekus — AI learning and job matching platform logo

FAISS

  • 43 lessons
  • About 5 hours
  • Self-paced
0%Complete
Guided Mode

Start with lesson 1

43 lessons. The first one is free, no signup needed.

🗺️ Your learning path
Your First Search
Similarity Basics

What you'll learn

  • Run exact k-nearest-neighbour search with IndexFlatL2 and IndexFlatIP and read the distance and id arrays.
  • Get cosine similarity right by normalising vectors and using inner product.
  • Train and tune IVF indexes with nlist and nprobe, and compress vectors with product and scalar quantization.
  • Build HNSW indexes and explain what M, efConstruction and efSearch change.
  • Write and read factory strings, save and load indexes, and measure recall@k against a flat ground truth.
  • Choose an index and metric for a dataset's size, memory budget and update pattern.

About this course

FAISS is an open-source library for searching large sets of vectors for the ones closest to a query. If you already turn text, images or products into embeddings, FAISS is one of the common ways to find the nearest ones quickly. This online FAISS course on Abekus teaches the Python API through short reading-card lessons, each followed by an MCQ quiz, all built on one running example: 10,000 product embeddings for an Indian online store, searched with the query "wireless earbuds".

Frequently asked questions