10. IVF vs HNSW

Chapter 10 of 18 · 15 min
EXERCISE

Load 100,000 real document embeddings. Build both IVFFlat and HNSW indexes. Compare query results (not just speed) by checking if both return the same top-5 results.