Skip to content

Commit 732767a

Browse files
committed
formatting
1 parent af05f1c commit 732767a

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

articles/search/includes/quickstarts/search-get-started-vector-dotnet.md

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,16 @@ The first example demonstrates a basic scenario where you want to find document
121121
dotnet run
122122
```
123123
124-
After you run the project, the search results are printed in the output window:
125-
126-
```output
127-
Single Vector Search Results:
128-
Score: 0.6605852, HotelId: 48, HotelName: Nordick's Valley Motel
129-
Score: 0.6333684, HotelId: 13, HotelName: Luxury Lion Resort
130-
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-
```
124+
After you run the project, the search results are printed in the output window:
125+
126+
```output
127+
Single Vector Search Results:
128+
Score: 0.6605852, HotelId: 48, HotelName: Nordick's Valley Motel
129+
Score: 0.6333684, HotelId: 13, HotelName: Luxury Lion Resort
130+
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+
```
134134
135135
### Single vector search with filter
136136
@@ -158,20 +158,20 @@ You can add filters, but the filters are applied to the nonvector content in you
158158

159159
1. Run the project again, and the status of each document is printed below it:
160160

161-
```output
162-
Vector query with a geo filter:
163-
-HotelId: 48
161+
```output
162+
Vector query with a geo filter:
163+
-HotelId: 48
164164
HotelName: Nordick's Valley Motel
165165
Score: 0.6605852246284485
166166
City/State: Washington D.C./null
167167
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.
168168
169-
-HotelId: 49
169+
-HotelId: 49
170170
HotelName: Swirling Currents Hotel
171171
Score: 0.602634072303772
172172
City/State: Arlington/VA
173173
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+
```
175175
176176
### Hybrid search
177177
@@ -305,9 +305,7 @@ The hybrid query with semantic ranking is filtered to show only the hotels withi
305305

306306
:::code language="csharp" source="~/azure-search-dotnet-samples/quickstart-vector-search/vectorsearchexamples/SearchExamples.cs" id="SearchHybridVectorAndSemantic":::
307307

308-
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`).
311309

312310
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."
313311

@@ -345,11 +343,11 @@ The hybrid query with semantic ranking is filtered to show only the hotels withi
345343
Category: Suite
346344
```
347345

348-
Key takeaways:
346+
Key takeaways:
349347

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.
351349

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.
353351

354352
## Clean up
355353

0 commit comments

Comments
 (0)