HNSW (Hierarchical Navigable Small World) is a vector-search algorithm designed to find similar vectors quickly in huge datasets. It uses additional in-memory data structures, increasing vector-index storage compared with Exhaustive KNN. section 3.1
Choose the search method according to dataset size and available memory:
- Use HNSW when fast searches across huge datasets justify the additional index space. section 3.1
- Use Exhaustive KNN for smaller datasets when HNSW’s memory overhead is unnecessary. section 3.1
Azure AI Search index choice
A small Azure AI Search dataset uses Exhaustive KNN with cosine similarity instead of HNSW, avoiding doubled vector-index space and extra in-memory structures. section 3.1
Figure 3.2 A correctly set-up Azure AI Search Index. Make sure to set the Retrievable, Filterable, Sortable, Facetable, and Searchable columns exactly as shown in this image.
Inspect the correctly configured Azure AI Search index and its field settings before deploying vector search. section 3.1










