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
Score: 0.605672, HotelId: 4, HotelName: Sublime Palace Hotel
131
+
Score: 0.6026341, HotelId: 49, HotelName: Swirling Currents Hotel
132
+
Score: 0.57902366, HotelId: 2, HotelName: Old Century Hotel
133
+
```
134
134
135
135
### Single vector search with filter
136
136
@@ -158,20 +158,20 @@ You can add filters, but the filters are applied to the nonvector content in you
158
158
159
159
1. Run the project again, and the status of each document is printed below it:
160
160
161
-
```output
162
-
Vector query with a geo filter:
163
-
-HotelId: 48
161
+
```output
162
+
Vector query with a geo filter:
163
+
-HotelId: 48
164
164
HotelName: Nordick's Valley Motel
165
165
Score: 0.6605852246284485
166
166
City/State: Washington D.C./null
167
167
Description: Only 90 miles (about 2 hours) from the nation's capital and nearby most everything the historic valley has to offer. Hiking? Wine Tasting? Exploring the caverns? It's all nearby and we have specially priced packages to help make our B&B your home base for fun while visiting the valley.
168
168
169
-
-HotelId: 49
169
+
-HotelId: 49
170
170
HotelName: Swirling Currents Hotel
171
171
Score: 0.602634072303772
172
172
City/State: Arlington/VA
173
173
Description: Spacious rooms, glamorous suites and residences, rooftop pool, walking access to shopping, dining, entertainment and the city center. Each room comes equipped with a microwave, a coffee maker and a minifridge. In-room entertainment includes complimentary W-Fi and flat-screen TVs.
174
-
```
174
+
```
175
175
176
176
### Hybrid search
177
177
@@ -305,9 +305,7 @@ The hybrid query with semantic ranking is filtered to show only the hotels withi
1. Run the project again, and the status of each document is printed below it:
309
-
310
-
Review the output below the cell. The response is three hotels, which are filtered by location and faceted by `StateProvince` and semantically reranked to promote results that are closest to the search string query (`historic hotel walk to restaurants and shopping`).
308
+
1. Run the project again, and review the output below the cell. The response is three hotels, which are filtered by location and faceted by `StateProvince` and semantically reranked to promote results that are closest to the search string query (`historic hotel walk to restaurants and shopping`).
311
309
312
310
The Swirling Currents Hotel now moves into the top spot. Without semantic ranking, Nordick's Valley Motel is number one. With semantic ranking, the machine comprehension models recognize that `historic` applies to "hotel, within walking distance to dining (restaurants) and shopping."
313
311
@@ -345,11 +343,11 @@ The hybrid query with semantic ranking is filtered to show only the hotels withi
345
343
Category: Suite
346
344
```
347
345
348
-
Key takeaways:
346
+
Key takeaways:
349
347
350
-
- In a hybrid search, you can integrate vector search with full-text search over keywords. Filters, spell check, and semantic ranking apply to textual content only, and not vectors. In this final query, there's no semantic `answer` because the system didn't produce one that was sufficiently strong.
348
+
- In a hybrid search, you can integrate vector search with full-text search over keywords. Filters, spell check, and semantic ranking apply to textual content only, and not vectors. In this final query, there's no semantic `answer` because the system didn't produce one that was sufficiently strong.
351
349
352
-
- Actual results include more detail, including semantic captions and highlights. Results were modified for readability. To get the full structure of the response, run the request in the REST client.
350
+
- Actual results include more detail, including semantic captions and highlights. Results were modified for readability. To get the full structure of the response, run the request in the REST client.
0 commit comments