Skip to content

Commit e029fac

Browse files
committed
reformatted bulleted section
1 parent 5ee473e commit e029fac

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

articles/search/vector-search-how-to-create-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ The schema must include fields for the document key, vector fields, and any othe
8282

8383
1. Add other fields that define the substance and structure of the textual content you're indexing. At a minimum, you need a document key.
8484

85-
You should also add fields that are useful in the query or in its response. The example below shows vector fields for title and content ("titleVector", "contentVector") that are equivalent to vectosr. It also provides fields for equivalent textual content ("title", "content") useful for sorting, filtering, and reading in a search result.
85+
You should also add fields that are useful in the query or in its response. The example below shows vector fields for title and content ("titleVector", "contentVector") that are equivalent to vectors. It also provides fields for equivalent textual content ("title", "content") useful for sorting, filtering, and reading in a search result.
8686

8787
An index definition with the described elements looks like this:
8888

articles/search/vector-search-how-to-query.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,16 @@ Vectors aren't designed for readability, so avoid returning them in the response
8888
Size of the results is determined by the query parameters "k" and "top". Maximum results in a response are either:
8989

9090
+ `"k": n` results for vector-only queries
91-
9291
+ `"top": n` results for hybrid queries
9392

94-
Ranking of results is either:
95-
96-
+ Cosine similarity if the query is over a single vector field, assuming `cosine` is what you specified in the index `vectorConfiguration`.
97-
98-
Azure OpenAI embedding models use cosine similarity, so if you're using Azure OpenAI embedding models, `cosine` is the recommended metric. Other supported ranking metrics include `euclidean` and `dotProduct`.
93+
Ranking of results is computed by either:
9994

95+
+ The similarity metric specified in the index `vectorConfiguration` for a vector-only query.
10096
+ Reciprocal Rank Fusion (RRF) if there are multiple sets of search results.
10197

102-
Multiple sets are created if the query targets multiple vector fields, or if the query is a hybrid of vector and full text search, with or without the optional semantic reranking capabilities of [semantic search](semantic-search-overview.md).
98+
Azure OpenAI embedding models use cosine similarity, so if you're using Azure OpenAI embedding models, `cosine` is the recommended metric. Other supported ranking metrics include `euclidean` and `dotProduct`.
10399

104-
Within vector search, a vector query can only target one internal vector index. So for [multiple vector fields](#query-syntax-for-vector-query-over-multiple-fields) and [multiple vector queries](#query-syntax-for-multiple-vector-queries), the search engine generates parallel queries that target the respective vector indexes of each field. Output is a set of ranked results for each query, which are fused using RRF. For more information, see [Vector query execution and scoring](vector-search-ranking.md).
100+
Multiple sets are created if the query targets multiple vector fields, or if the query is a hybrid of vector and full text search, with or without the optional semantic reranking capabilities of [semantic search](semantic-search-overview.md). Within vector search, a vector query can only target one internal vector index. So for [multiple vector fields](#query-syntax-for-vector-query-over-multiple-fields) and [multiple vector queries](#query-syntax-for-multiple-vector-queries), the search engine generates multiple queries that target the respective vector indexes of each field. Output is a set of ranked results for each query, which are fused using RRF. For more information, see [Vector query execution and scoring](vector-search-ranking.md).
105101

106102
## Query syntax for vector search
107103

0 commit comments

Comments
 (0)