You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-query-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Geospatial search matches on a location's latitude and longitude coordinates for
100
100
101
101
Geospatial search uses kilometers for distance. Coordinates are specified in this format: `(longitude, latitude`).
102
102
103
-
Here's an example of a filter for geospatial search. This filter finds other `Location` fields in the search index that have coordinates within a 300kilometer radius of the geograpy point (in this example, Washington D.C.). It returns address information in the result, and includes an optional `facets` clause for self-navigation based on location.
103
+
Here's an example of a filter for geospatial search. This filter finds other `Location` fields in the search index that have coordinates within a 300-kilometer radius of the geography point (in this example, Washington D.C.). It returns address information in the result, and includes an optional `facets` clause for self-navigation based on location.
104
104
105
105
```http
106
106
POST https://{{searchServiceName}}.search.windows.net/indexes/hotels-vector-quickstart/docs/search?api-version=2023-07-01-Preview
Copy file name to clipboardExpand all lines: articles/search/vector-search-ranking.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Vector search algorithms are specified in the json path `vectorSearch.algorithmC
27
27
28
28
-[Create a vector index](vector-search-how-to-create-index.md)
29
29
30
-
Because many algorithm configuration parameters are used to initialize the vector index during index creation, they are immutable parameters and cannot be changed once the index is built. There is a subset of query-time parameters that may be modified.
30
+
Because many algorithm configuration parameters are used to initialize the vector index during index creation, they're immutable parameters and can't be changed once the index is built. There's a subset of query-time parameters that may be modified.
31
31
32
32
## How HNSW ranking works
33
33
@@ -37,7 +37,7 @@ For example, if a query request is about hotels, the model maps the query into a
37
37
38
38
### Indexing vectors with the HNSW algorithm
39
39
40
-
The goal of indexing a new vector into a HNSW graph is to add it to the graph structure in a manner that allows for efficient nearest neighbor search. The following steps summarize the process:
40
+
The goal of indexing a new vector into an HNSW graph is to add it to the graph structure in a manner that allows for efficient nearest neighbor search. The following steps summarize the process:
41
41
42
42
1. Initialization: Start with an empty HNSW graph, or the existing HNSW graph if it's not a new index.
43
43
@@ -47,9 +47,9 @@ The goal of indexing a new vector into a HNSW graph is to add it to the graph st
47
47
48
48
- Each node is connected to up to `m` neighbors that are nearby. This is the `m` parameter.
49
49
50
-
- The number of data points that will be considered as candidate connections is governed by the `efConstruction` parameter. This dynamic list will form the set of closest points in the existing graph for the algorithm to consider. Higher `efConstruction` values will result in more nodes being considered, which often leads to denser local neighborhoods for each vector.
50
+
- The number of data points that considered as candidate connections is governed by the `efConstruction` parameter. This dynamic list forms the set of closest points in the existing graph for the algorithm to consider. Higher `efConstruction` values result in more nodes being considered, which often leads to denser local neighborhoods for each vector.
51
51
52
-
- These connections use the configured similarity `metric` to determine distance. Some connections will be "long-distance" connections that connect across different hierarchical levels, creating shortcuts in the graph that enhance search efficiency.
52
+
- These connections use the configured similarity `metric` to determine distance. Some connections are "long-distance" connections that connect across different hierarchical levels, creating shortcuts in the graph that enhance search efficiency.
53
53
54
54
1. Graph pruning and optimization: This may be performed after indexing all vectors to improve navigability and efficiency of the HNSW graph.
55
55
@@ -63,7 +63,7 @@ In the HNSW algorithm, a vector query search operation is executed by navigating
63
63
64
64
1. Pruning: To improve efficiency, the algorithm prunes the search space by only considering nodes that are likely to contain nearest neighbors. This is achieved by maintaining a priority queue of potential candidates and updating it as the search progresses. The length of this queue is configured by the parameter `efSearch`.
65
65
66
-
1. Refinement: As the algorithm moves to lower, more granular levels, HNSW will consider more neighbors near the query, which allows the candidate set of vectors to be refined, improving accuracy.
66
+
1. Refinement: As the algorithm moves to lower, more granular levels, HNSW considers more neighbors near the query, which allows the candidate set of vectors to be refined, improving accuracy.
67
67
68
68
1. Completion: The search completes when the desired number of nearest neighbors have been identified, or when other stopping criteria are met. This desired number of nearest neighbors is governed by the query-time parameter `k`.
0 commit comments