mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
Summary: This PR adds a Python HNSW tutorial corresponding to the existing C++ HNSW tutorial. The example creates synthetic vectors, builds an IndexHNSWFlat index, runs a search, and prints the nearest-neighbor IDs and distances for the final queries. Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5260 Reviewed By: mnorris11 Differential Revision: D107272616 Pulled By: alibeklfc fbshipit-source-id: 721d7a1a95aa79150d6cb9653bd803065c82dcd7