Skip to content

Commit c08448b

Browse files
committed
fix copy/paste problem
1 parent 8241e68 commit c08448b

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

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

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -479,33 +479,15 @@ This search uses [SearchClient](/javascript/api/@azure/search-documents/searchcl
479479
Category: Suite
480480
```
481481

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.
492-
493-
:::code language="javascript" source="~/azure-search-javascript-samples/quickstart-vector-js/src/deleteIndex.js" :::
494-
1. Build and run the file:
495-
496-
```console
497-
node -r dotenv/config dist/deleteIndex.js
498-
```
499-
500482
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.
509491

510492
## Clean up
511493

@@ -515,17 +497,16 @@ You can find and manage resources in the Azure portal by using the **All resourc
515497

516498
If you want to keep the search service, but delete the index and documents, you can delete the index programmatically.
517499

518-
1. Create a `deleteIndex.ts` file in the `src` directory.
500+
1. Create a `deleteIndex.js` file in the `src` directory.
519501
1. Add the dependencies, environment variables, and code to delete the index.
520502

521503
:::code language="javascript" source="~/azure-search-javascript-samples/quickstart-vector-js/src/deleteIndex.js" :::
522-
1. Run the file:
504+
1. Build and run the file:
523505

524506
```console
525507
node -r dotenv/config dist/deleteIndex.js
526508
```
527509

528-
529510
## Next steps
530511

531512
- 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

Comments
 (0)