Cosine similarity measures how closely two embedding vectors point in the same direction by calculating the cosine of the angle between them. Because it emphasizes direction rather than magnitude, it supports semantic comparison across texts of different lengths. section 3.1
Use cosine similarity when configuring vector retrieval:
- Select cosine similarity for an Azure AI Search vector search profile. section 3.1
- Pair it with Exhaustive KNN for a small dataset when HNSW's additional in-memory structures are unnecessary. section 3.1
- Match the vector field's 1,536 dimensions to the generated OpenAI embeddings. 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.
Use the correctly configured Azure AI Search index as a setup checklist for vector retrieval settings. section 3.1
























