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
+10-29Lines changed: 10 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -479,33 +479,15 @@ This search uses [SearchClient](/javascript/api/@azure/search-documents/searchcl
479
479
Category: Suite
480
480
```
481
481
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 are not only relevant to the keywords but also match the intent of the query:
501
-
502
-
Key takeaways:
503
-
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.
483
+
484
+
Key takeaways:
485
+
486
+
- Vector search is specified through the `vectorSearchOptions` property. Keyword search is specified through the `semanticSearchOptions` property.
487
+
488
+
- 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.
489
+
490
+
- 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.
509
491
510
492
## Clean up
511
493
@@ -515,17 +497,16 @@ You can find and manage resources in the Azure portal by using the **All resourc
515
497
516
498
If you want to keep the search service, but delete the index and documents, you can delete the index programmatically.
517
499
518
-
1. Create a `deleteIndex.ts` file in the `src` directory.
500
+
1. Create a `deleteIndex.js` file in the `src` directory.
519
501
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)
0 commit comments