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/includes/quickstarts/search-get-started-vector-javascript.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -420,7 +420,7 @@ This search uses [SearchClient](/javascript/api/@azure/search-documents/searchcl
420
420
421
421
## Create a semantic hybrid search
422
422
423
-
Here's the last query in the collection. This hybrid query with semantic ranking is filtered to show only the hotels within a 500-kilometer radius of Washington D.C. You can set `vectorFilterMode` to null, which is equivalent to the default (`preFilter` for newer indexes and `postFilter` for older ones).
423
+
Here's the last query in the collection.
424
424
425
425
This search uses [SearchClient](/javascript/api/@azure/search-documents/searchclient).[search](/javascript/api/@azure/search-documents/searchclient#@azure-search-documents-searchclient-search) and the [VectorQuery](/javascript/api/@azure/search-documents/vectorquery) and [SearchOptions](/javascript/api/@azure/search-documents/searchoptions).
426
426
@@ -479,20 +479,33 @@ This search uses [SearchClient](/javascript/api/@azure/search-documents/searchcl
479
479
Category: Suite
480
480
```
481
481
482
-
The search finds 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)
482
+
## Clean up
483
+
484
+
When you're working in your own subscription, it's a good idea at the end of a project to identify whether you still need the resources you created. Resources left running can cost you money. You can delete resources individually or delete the resource group to delete the entire set of resources.
485
+
486
+
You can find and manage resources in the Azure portal by using the **All resources** or **Resource groups** link in the leftmost pane.
487
+
488
+
If you want to keep the search service, but delete the index and documents, you can delete the index programmatically.
489
+
490
+
1. Create a `deleteIndex.js` file in the `src` directory.
491
+
1. Add the dependencies, environment variables, and code to delete the index.
You can think of the semantic ranking as a way to improve the relevance of search results by understanding the meaning behind the words in the query and the content of the documents. In this case, the semantic ranking helps to identify hotels that aren't only relevant to the keywords but also match the intent of the query:
496
+
```console
497
+
node -r dotenv/config dist/deleteIndex.js
498
+
```
485
499
486
-
* **Without semantic ranking**, Nordick's Valley Motel is number one.
487
-
* **With semantic ranking**, the machine comprehension models recognize that historic applies to "hotel, within walking distance to dining (restaurants) and shopping."
500
+
You can think of the semantic ranking as a way to improve the relevance of search results by understanding the meaning behind the words in the query and the content of the documents. In this case, the semantic ranking helps to identify hotels that are not only relevant to the keywords but also match the intent of the query:
488
501
489
502
Key takeaways:
490
503
491
-
- Vector search is specified through the `vectorSearchOptions` property. Keyword search is specified through the `semanticSearchOptions` property.
492
-
493
-
- 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.
494
-
495
-
- 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.
504
+
- Vector search is specified through the `vectorSearchOptions` property. Keyword search is specified through the `semanticSearchOptions` property.
505
+
506
+
- 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.
507
+
508
+
- 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.
496
509
497
510
## Clean up
498
511
@@ -502,16 +515,17 @@ You can find and manage resources in the Azure portal by using the **All resourc
502
515
503
516
If you want to keep the search service, but delete the index and documents, you can delete the index programmatically.
504
517
505
-
1. Create a `deleteIndex.js` file in the `src` directory.
518
+
1. Create a `deleteIndex.ts` file in the `src` directory.
506
519
1. Add the dependencies, environment variables, and code to delete the index.
- Review the repository of code samples for vector search capabilities in Azure AI Search for [JavaScript](https://github.com/Azure/azure-search-vector-samples/tree/main/demo-javascript)
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-vector-typescript.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
@@ -525,11 +525,11 @@ This search uses [SearchClient](/javascript/api/@azure/search-documents/searchcl
525
525
526
526
Key takeaways:
527
527
528
-
- Vector search is specified through the `vectorSearchOptions` property. Keyword search is specified through the `semanticSearchOptions` property.
529
-
530
-
- 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.
531
-
532
-
- 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.
528
+
- Vector search is specified through the `vectorSearchOptions` property. Keyword search is specified through the `semanticSearchOptions` property.
529
+
530
+
- 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.
531
+
532
+
- 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