├── .gitignore
├── Instructions
├── Exercises
│ ├── 01-azure-search.md
│ ├── 02-search-skills.md
│ ├── 03-knowledge-store.md
│ ├── 04-exercise-enrich-cognitive-custom-classes.md
│ ├── 05-exercise-implement-enhancements-to-search-results.md
│ ├── 06-exercise-enrich-search-index-use-model.md
│ ├── 07-exercise-add-to-index-use-push-api.md
│ ├── 08-exercise-debug-search-issues.md
│ ├── 09-semantic-search-exercise.md
│ └── 10-vector-search-exercise.md
├── Labs
│ ├── 01-azure-search.md
│ ├── 02-search-skills.md
│ ├── 03-knowledge-store.md
│ ├── 04-exercise-enrich-cognitive-custom-classes.md
│ ├── 05-exercise-implement-enhancements-to-search-results.md
│ ├── 06-exercise-enrich-search-index-use-model.md
│ ├── 07-exercise-add-to-index-use-push-api.md
│ ├── 08-exercise-debug-search-issues.md
│ ├── 09-semantic-search-exercise.md
│ └── 10-vector-search-exercise.md
└── media
│ ├── 04-media
│ ├── add-deployment.png
│ ├── add-enrichments.png
│ ├── add-output-fields-indexer.png
│ ├── attach-cognitive-services.png
│ ├── azure-resources-created.png
│ ├── check-indexer-results.png
│ ├── choose-container.png
│ ├── connect-data.png
│ ├── copy-function-url.png
│ ├── copy-prediction-endpoint.png
│ ├── copy-sample-query.png
│ ├── create-custom-text-classification-project.png
│ ├── customize-target-index.png
│ ├── deploy-azure-resources.png
│ ├── deploy-azure.svg
│ ├── deploy-function-app.png
│ ├── deploy-model.png
│ ├── download-sample-data.png
│ ├── edit-azure-blob-index-fields.png
│ ├── edit-local-settings.png
│ ├── enriched-index.png
│ ├── enter-basic-information.png
│ ├── enter-language-service-information.png
│ ├── execute-remote-function.png
│ ├── executed-function-json-response.png
│ ├── optimize-visual-studio-code.png
│ ├── project-settings-primary-key.png
│ ├── select-additional-features.png
│ ├── select-azure-blob-storage.png
│ ├── select-custom-skillset.png
│ ├── select-project-type.png
│ ├── select-python-interpreter.png
│ ├── select-search-indexer.png
│ ├── start-training-job.png
│ ├── started-language-studio.png
│ ├── test-function-app.png
│ ├── train-jobs.png
│ └── upload-files.png
│ ├── 05-media
│ ├── add-cognitive-services-new.png
│ ├── add-translation-enrichment-new.png
│ ├── add-weights-new.png
│ ├── import-data-new-small.png
│ └── import-data-new.png
│ ├── 06-media
│ ├── 04-select-endpoint.png
│ ├── completed-pipeline-new.png
│ ├── copy-rest-endpoint.png
│ ├── create-compute-instance-new.png
│ ├── create-inference-cluster-new.png
│ ├── download-score-conda.png
│ ├── navigate-storage-account.png
│ ├── select-pre-built-components-new.png
│ ├── submit-pipeline.png
│ └── test-results-search-explorer.png
│ ├── 07-media
│ ├── azure-resources-created-small.png
│ ├── azure-resources-created.png
│ ├── check-search-service-index.png
│ ├── debug-application.png
│ ├── deploy-azure-resources.png
│ ├── deploy-azure.svg
│ ├── edit-program-code.png
│ ├── search-api-keys-exercise-version.png
│ ├── setup-visual-studio-code-solution.png
│ ├── thread-code-ready-small.png
│ ├── thread-code-ready.png
│ ├── update-app-settings.png
│ └── upload-hundred-thousand-documents.png
│ ├── 08-media
│ ├── add-enrichments-small.png
│ ├── add-enrichments.png
│ ├── arm-template-deployment.png
│ ├── debug-session-complete.png
│ ├── debug-session-errors.png
│ ├── deploy-azure.svg
│ ├── import-data-selection-screen-small.png
│ ├── import-data.png
│ ├── indexer-warnings-small.png
│ ├── indexer-warnings.png
│ ├── language-detection-skill-settings.png
│ ├── skillset-attach-service.png
│ ├── update-skillset.png
│ └── warnings-fixed-indexer.png
│ ├── ai-services.png
│ ├── cloudshell-launch-portal.png
│ ├── semantic-search
│ ├── importdata.png
│ ├── indexes.png
│ └── semanticsearch.png
│ └── vector-search
│ ├── import.png
│ ├── search keys.png
│ └── variables.png
├── LICENSE
├── Labfiles
├── 01-azure-search
│ ├── C-Sharp
│ │ ├── margies-travel
│ │ │ ├── Models
│ │ │ │ └── SearchResult.cs
│ │ │ ├── Pages
│ │ │ │ ├── Error.cshtml
│ │ │ │ ├── Error.cshtml.cs
│ │ │ │ ├── Index.cshtml
│ │ │ │ ├── Index.cshtml.cs
│ │ │ │ ├── Privacy.cshtml
│ │ │ │ ├── Privacy.cshtml.cs
│ │ │ │ ├── Shared
│ │ │ │ │ ├── _Layout.cshtml
│ │ │ │ │ └── _ValidationScriptsPartial.cshtml
│ │ │ │ ├── _ViewImports.cshtml
│ │ │ │ └── _ViewStart.cshtml
│ │ │ ├── Program.cs
│ │ │ ├── Properties
│ │ │ │ └── launchSettings.json
│ │ │ ├── Startup.cs
│ │ │ ├── appsettings.json
│ │ │ ├── search-client.csproj
│ │ │ └── wwwroot
│ │ │ │ ├── css
│ │ │ │ └── site.css
│ │ │ │ ├── favicon.ico
│ │ │ │ ├── images
│ │ │ │ └── margies.jpg
│ │ │ │ ├── js
│ │ │ │ └── site.js
│ │ │ │ └── lib
│ │ │ │ ├── bootstrap
│ │ │ │ ├── LICENSE
│ │ │ │ └── dist
│ │ │ │ │ ├── css
│ │ │ │ │ ├── bootstrap-grid.css
│ │ │ │ │ ├── bootstrap-grid.css.map
│ │ │ │ │ ├── bootstrap-grid.min.css
│ │ │ │ │ ├── bootstrap-grid.min.css.map
│ │ │ │ │ ├── bootstrap-reboot.css
│ │ │ │ │ ├── bootstrap-reboot.css.map
│ │ │ │ │ ├── bootstrap-reboot.min.css
│ │ │ │ │ ├── bootstrap-reboot.min.css.map
│ │ │ │ │ ├── bootstrap.css
│ │ │ │ │ ├── bootstrap.css.map
│ │ │ │ │ ├── bootstrap.min.css
│ │ │ │ │ └── bootstrap.min.css.map
│ │ │ │ │ └── js
│ │ │ │ │ ├── bootstrap.bundle.js
│ │ │ │ │ ├── bootstrap.bundle.js.map
│ │ │ │ │ ├── bootstrap.bundle.min.js
│ │ │ │ │ ├── bootstrap.bundle.min.js.map
│ │ │ │ │ ├── bootstrap.js
│ │ │ │ │ ├── bootstrap.js.map
│ │ │ │ │ ├── bootstrap.min.js
│ │ │ │ │ └── bootstrap.min.js.map
│ │ │ │ ├── jquery-validation-unobtrusive
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── jquery.validate.unobtrusive.js
│ │ │ │ └── jquery.validate.unobtrusive.min.js
│ │ │ │ ├── jquery-validation
│ │ │ │ ├── LICENSE.md
│ │ │ │ └── dist
│ │ │ │ │ ├── additional-methods.js
│ │ │ │ │ ├── additional-methods.min.js
│ │ │ │ │ ├── jquery.validate.js
│ │ │ │ │ └── jquery.validate.min.js
│ │ │ │ └── jquery
│ │ │ │ ├── LICENSE.txt
│ │ │ │ └── dist
│ │ │ │ ├── jquery.js
│ │ │ │ ├── jquery.min.js
│ │ │ │ └── jquery.min.map
│ │ └── readme.txt
│ ├── Python
│ │ ├── margies-travel
│ │ │ ├── .env
│ │ │ ├── app.py
│ │ │ ├── static
│ │ │ │ ├── css
│ │ │ │ │ └── site.css
│ │ │ │ └── images
│ │ │ │ │ └── margies.jpg
│ │ │ └── templates
│ │ │ │ ├── base.html
│ │ │ │ ├── default.html
│ │ │ │ ├── error.html
│ │ │ │ └── search.html
│ │ └── readme.txt
│ ├── UploadDocs.cmd
│ ├── UploadDocs.ps1
│ ├── UploadDocs.sh
│ ├── data
│ │ ├── collateral
│ │ │ ├── Dubai Brochure.pdf
│ │ │ ├── Las Vegas Brochure.pdf
│ │ │ ├── London Brochure.pdf
│ │ │ ├── Margies Travel Company Info.pdf
│ │ │ ├── New York Brochure.pdf
│ │ │ └── San Francisco Brochure.pdf
│ │ └── reviews
│ │ │ ├── 201801.pdf
│ │ │ ├── 201802.pdf
│ │ │ ├── 201803.pdf
│ │ │ ├── 201804.pdf
│ │ │ ├── 201805.pdf
│ │ │ ├── 201806.pdf
│ │ │ ├── 201807.pdf
│ │ │ ├── 201808.pdf
│ │ │ ├── 201809.pdf
│ │ │ ├── 201810.pdf
│ │ │ ├── 201811.pdf
│ │ │ ├── 201812.pdf
│ │ │ ├── 201813.pdf
│ │ │ ├── 201814.pdf
│ │ │ ├── 201815.pdf
│ │ │ ├── 201816.pdf
│ │ │ ├── 201817.pdf
│ │ │ ├── 201818.pdf
│ │ │ ├── 201819.pdf
│ │ │ ├── 201820.pdf
│ │ │ ├── 201821.pdf
│ │ │ ├── 201822.pdf
│ │ │ ├── 201823.pdf
│ │ │ ├── 201824.pdf
│ │ │ ├── 201825.pdf
│ │ │ ├── 201826.pdf
│ │ │ ├── 201827.pdf
│ │ │ ├── 201828.pdf
│ │ │ ├── 201829.pdf
│ │ │ ├── 201830.pdf
│ │ │ ├── 201831.pdf
│ │ │ ├── 201832.pdf
│ │ │ ├── 201833.pdf
│ │ │ ├── 201834.pdf
│ │ │ ├── 201835.pdf
│ │ │ ├── 201836.pdf
│ │ │ ├── 201837.pdf
│ │ │ ├── 201838.pdf
│ │ │ ├── 201839.pdf
│ │ │ ├── 201840.pdf
│ │ │ ├── 201841.pdf
│ │ │ ├── 201842.pdf
│ │ │ ├── 201843.pdf
│ │ │ ├── 201844.pdf
│ │ │ ├── 201845.pdf
│ │ │ ├── 201846.pdf
│ │ │ ├── 201847.pdf
│ │ │ ├── 201848.pdf
│ │ │ ├── 201849.pdf
│ │ │ ├── 201850.pdf
│ │ │ ├── 201851.pdf
│ │ │ ├── 201852.pdf
│ │ │ ├── 201853.pdf
│ │ │ ├── 201854.pdf
│ │ │ ├── 201855.pdf
│ │ │ ├── 201856.pdf
│ │ │ ├── 201857.pdf
│ │ │ ├── 201858.pdf
│ │ │ ├── 201859.pdf
│ │ │ ├── 201860.pdf
│ │ │ ├── 201861.pdf
│ │ │ ├── 201862.pdf
│ │ │ ├── 201863.pdf
│ │ │ ├── 201864.pdf
│ │ │ ├── 201865.pdf
│ │ │ └── 201866.pdf
│ └── modify-search
│ │ ├── index.json
│ │ ├── indexer.json
│ │ ├── modify-search.cmd
│ │ ├── modify-search.sh
│ │ └── skillset.json
├── 02-search-skill
│ ├── C-Sharp
│ │ └── wordcount
│ │ │ └── readme.txt
│ ├── Python
│ │ └── wordcount
│ │ │ └── readme.txt
│ ├── create-search
│ │ ├── create-search.cmd
│ │ ├── create-search.sh
│ │ ├── data_source.json
│ │ ├── index.json
│ │ ├── indexer.json
│ │ └── skillset.json
│ ├── data
│ │ ├── collateral
│ │ │ ├── Dubai Brochure.pdf
│ │ │ ├── Las Vegas Brochure.pdf
│ │ │ ├── London Brochure.pdf
│ │ │ ├── Margies Travel Company Info.pdf
│ │ │ ├── New York Brochure.pdf
│ │ │ └── San Francisco Brochure.pdf
│ │ └── reviews
│ │ │ ├── 201801.pdf
│ │ │ ├── 201802.pdf
│ │ │ ├── 201803.pdf
│ │ │ ├── 201804.pdf
│ │ │ ├── 201805.pdf
│ │ │ ├── 201806.pdf
│ │ │ ├── 201807.pdf
│ │ │ ├── 201808.pdf
│ │ │ ├── 201809.pdf
│ │ │ ├── 201810.pdf
│ │ │ ├── 201811.pdf
│ │ │ ├── 201812.pdf
│ │ │ ├── 201813.pdf
│ │ │ ├── 201814.pdf
│ │ │ ├── 201815.pdf
│ │ │ ├── 201816.pdf
│ │ │ ├── 201817.pdf
│ │ │ ├── 201818.pdf
│ │ │ ├── 201819.pdf
│ │ │ ├── 201820.pdf
│ │ │ ├── 201821.pdf
│ │ │ ├── 201822.pdf
│ │ │ ├── 201823.pdf
│ │ │ ├── 201824.pdf
│ │ │ ├── 201825.pdf
│ │ │ ├── 201826.pdf
│ │ │ ├── 201827.pdf
│ │ │ ├── 201828.pdf
│ │ │ ├── 201829.pdf
│ │ │ ├── 201830.pdf
│ │ │ ├── 201831.pdf
│ │ │ ├── 201832.pdf
│ │ │ ├── 201833.pdf
│ │ │ ├── 201834.pdf
│ │ │ ├── 201835.pdf
│ │ │ ├── 201836.pdf
│ │ │ ├── 201837.pdf
│ │ │ ├── 201838.pdf
│ │ │ ├── 201839.pdf
│ │ │ ├── 201840.pdf
│ │ │ ├── 201841.pdf
│ │ │ ├── 201842.pdf
│ │ │ ├── 201843.pdf
│ │ │ ├── 201844.pdf
│ │ │ ├── 201845.pdf
│ │ │ ├── 201846.pdf
│ │ │ ├── 201847.pdf
│ │ │ ├── 201848.pdf
│ │ │ ├── 201849.pdf
│ │ │ ├── 201850.pdf
│ │ │ ├── 201851.pdf
│ │ │ ├── 201852.pdf
│ │ │ ├── 201853.pdf
│ │ │ ├── 201854.pdf
│ │ │ ├── 201855.pdf
│ │ │ ├── 201856.pdf
│ │ │ ├── 201857.pdf
│ │ │ ├── 201858.pdf
│ │ │ ├── 201859.pdf
│ │ │ ├── 201860.pdf
│ │ │ ├── 201861.pdf
│ │ │ ├── 201862.pdf
│ │ │ ├── 201863.pdf
│ │ │ ├── 201864.pdf
│ │ │ ├── 201865.pdf
│ │ │ └── 201866.pdf
│ ├── setup.cmd
│ ├── setup.sh
│ └── update-search
│ │ ├── update-index.json
│ │ ├── update-indexer.json
│ │ ├── update-search.cmd
│ │ ├── update-search.sh
│ │ └── update-skillset.json
├── 03-knowledge-store
│ ├── create-search
│ │ ├── create-search.cmd
│ │ ├── create-search.sh
│ │ ├── data_source.json
│ │ ├── index.json
│ │ ├── indexer.json
│ │ └── skillset.json
│ ├── data
│ │ ├── collateral
│ │ │ ├── Dubai Brochure.pdf
│ │ │ ├── Las Vegas Brochure.pdf
│ │ │ ├── London Brochure.pdf
│ │ │ ├── Margies Travel Company Info.pdf
│ │ │ ├── New York Brochure.pdf
│ │ │ └── San Francisco Brochure.pdf
│ │ └── reviews
│ │ │ ├── 201801.pdf
│ │ │ ├── 201802.pdf
│ │ │ ├── 201803.pdf
│ │ │ ├── 201804.pdf
│ │ │ ├── 201805.pdf
│ │ │ ├── 201806.pdf
│ │ │ ├── 201807.pdf
│ │ │ ├── 201808.pdf
│ │ │ ├── 201809.pdf
│ │ │ ├── 201810.pdf
│ │ │ ├── 201811.pdf
│ │ │ ├── 201812.pdf
│ │ │ ├── 201813.pdf
│ │ │ ├── 201814.pdf
│ │ │ ├── 201815.pdf
│ │ │ ├── 201816.pdf
│ │ │ ├── 201817.pdf
│ │ │ ├── 201818.pdf
│ │ │ ├── 201819.pdf
│ │ │ ├── 201820.pdf
│ │ │ ├── 201821.pdf
│ │ │ ├── 201822.pdf
│ │ │ ├── 201823.pdf
│ │ │ ├── 201824.pdf
│ │ │ ├── 201825.pdf
│ │ │ ├── 201826.pdf
│ │ │ ├── 201827.pdf
│ │ │ ├── 201828.pdf
│ │ │ ├── 201829.pdf
│ │ │ ├── 201830.pdf
│ │ │ ├── 201831.pdf
│ │ │ ├── 201832.pdf
│ │ │ ├── 201833.pdf
│ │ │ ├── 201834.pdf
│ │ │ ├── 201835.pdf
│ │ │ ├── 201836.pdf
│ │ │ ├── 201837.pdf
│ │ │ ├── 201838.pdf
│ │ │ ├── 201839.pdf
│ │ │ ├── 201840.pdf
│ │ │ ├── 201841.pdf
│ │ │ ├── 201842.pdf
│ │ │ ├── 201843.pdf
│ │ │ ├── 201844.pdf
│ │ │ ├── 201845.pdf
│ │ │ ├── 201846.pdf
│ │ │ ├── 201847.pdf
│ │ │ ├── 201848.pdf
│ │ │ ├── 201849.pdf
│ │ │ ├── 201850.pdf
│ │ │ ├── 201851.pdf
│ │ │ ├── 201852.pdf
│ │ │ ├── 201853.pdf
│ │ │ ├── 201854.pdf
│ │ │ ├── 201855.pdf
│ │ │ ├── 201856.pdf
│ │ │ ├── 201857.pdf
│ │ │ ├── 201858.pdf
│ │ │ ├── 201859.pdf
│ │ │ ├── 201860.pdf
│ │ │ ├── 201861.pdf
│ │ │ ├── 201862.pdf
│ │ │ ├── 201863.pdf
│ │ │ ├── 201864.pdf
│ │ │ ├── 201865.pdf
│ │ │ └── 201866.pdf
│ ├── setup.cmd
│ └── setup.sh
├── 04-enrich-custom-classes
│ ├── azuredeploy.json
│ ├── movie-genre-function.zip
│ └── movies summary.zip
├── 07-exercise-add-to-index-use-push-api
│ ├── OptimizeDataIndexing
│ │ ├── Address.cs
│ │ ├── DataGenerator.cs
│ │ ├── ExponentialBackoff.cs
│ │ ├── Hotel.cs
│ │ ├── OptimizeDataIndexing.csproj
│ │ ├── Program.cs
│ │ └── appsettings.json
│ └── azuredeploy.json
├── 08-debug-search
│ ├── azuredeploy.json
│ └── templates
│ │ ├── SearchAssets.ps1
│ │ ├── base-datasource.json
│ │ ├── base-index.json
│ │ ├── base-indexer.json
│ │ └── base-skills.json
├── 10-vector-search
│ └── Vector Search.postman_collection v1.0.json
└── readme.txt
├── README.md
├── _build.yml
├── _config.yml
└── index.md
/.gitignore:
--------------------------------------------------------------------------------
1 | bin
2 | obj
3 | *.sln
--------------------------------------------------------------------------------
/Instructions/Exercises/09-semantic-search-exercise.md:
--------------------------------------------------------------------------------
1 | ---
2 | lab:
3 | title: 'Set up semantic ranker'
4 | ---
5 |
6 | # Set up semantic ranker
7 |
8 | > **Note**
9 | > To complete this lab, you will need an [Azure subscription](https://azure.microsoft.com/free?azure-portal=true) in which you have administrative access. This exercise also requires the **Azure AI Search** service with a billable tier.
10 |
11 | In this exercise, you will add semantic ranker to an index and use semantic ranker for a query.
12 |
13 | ## Enable semantic ranker
14 |
15 | 1. Open the Azure portal and sign in.
16 | 1. Select **All resources** and select your search service.
17 | 1. In the navigation pane, select **Semantic ranker**.
18 | 1. In **Availability**, in the **Free** option, select **Select Plan**.
19 |
20 | 
21 |
22 | ## Import a sample index
23 |
24 | 1. Return to the **Overview** page of your search service.
25 | 1. Select **Import data**.
26 |
27 | 
28 |
29 | 1. In **Data Source**, select **Samples**.
30 | 1. Select **hotels-sample** and select **Next: Add cognitive skills (Optional)**.
31 | 1. Select **Skip to: Customize target index**.
32 | 1. Select **Next: Create an indexer**.
33 | 1. Select **Submit**.
34 |
35 | ## Configure semantic ranking
36 |
37 | Once you have a search index and semantic ranker enabled, you can configure semantic ranking. You require a search client that supports preview APIs on the query request. You could use Search explorer in the Azure portal, the Postman app, the Azure SDK for .NET, or the Azure SDK for Python. In this exercise, you will use Search explorer in the Azure portal.
38 |
39 | To configure semantic ranking, follow these steps:
40 |
41 | 1. On the navigation bar, in **Search management**, select **Indexes**.
42 |
43 | 
44 |
45 | 1. Select your index.
46 | 1. Select **Semantic configurations** and select **Add semantic configuration**.
47 | 1. In **Name** type **hotels-conf**.
48 | 1. In **Title field** select **HotelName**.
49 | 1. Under **Content fields**, in **Field name**, select **Description**.
50 | 1. Repeat the previous step for the following fields:
51 | - **Category**
52 | - **Address/City**
53 | 1. Under **Keyword fields**, in **Field name**, select **Tags**.
54 | 1. Select **Save**.
55 | 1. On your index page, select **Save**.
56 | 1. Select **Search explorer**.
57 | 1. Select **View** and select **JSON view**.
58 | 1. In JSON query editor type the following text:
59 |
60 | ```json
61 | {
62 | "queryType": "semantic",
63 | "queryLanguage" : "en-us",
64 | "search": "all hotels near the water" ,
65 | "semanticConfiguration": "hotels-conf" ,
66 | "searchFields": "",
67 | "speller": "lexicon" ,
68 | "answers": "extractive|count-3",
69 | "count": true
70 | }
71 | ```
72 |
73 | 1. Select **Search**.
74 | 1. Review the results of the query.
75 |
76 | ## Clean-up
77 |
78 | If you no longer require the Azure AI Search service, you should delete the resource from your Azure subscription to reduce costs.
79 |
80 | >**Note**
81 | > Deleting your Azure AI Search service ensures your subscription won't be charged for resources. You will however be charged a small amount for data storage as long as the storage exists in your subscription. If you have finished exploring the Cognitive Search service, you can delete the Cognitive Search service and associated resources. However, if you plan to complete any other labs in this series, you will need to recreate it.
82 | > To delete your resources:
83 | > 1. In the [Azure portal](https://portal.azure.com?azure-portal=true ), in the **Resource groups** page, open the resource group you specified when creating your Cognitive Search service.
84 | > 1. Click **Delete resource group**, type the resource group name to confirm you want to delete it, and select **Delete**.
85 |
--------------------------------------------------------------------------------
/Instructions/Exercises/10-vector-search-exercise.md:
--------------------------------------------------------------------------------
1 | ---
2 | lab:
3 | title: 'Use the REST API to run vector search queries'
4 | ---
5 |
6 | # Use the REST API to run vector search queries
7 |
8 | In this exercise you'll set up your project, create an index, upload your documents, and run queries.
9 |
10 | You'll need the following to successfully this exercise:
11 |
12 | - The [Postman app](https://www.postman.com/downloads/)
13 | - An Azure subscription
14 | - Azure AI Search service
15 | - The Postman sample collection located in this repository - *Vector-Search-Quickstart.postman_collection v1.0 json*.
16 |
17 | > **Note**
18 | > You can find more information about the Postman app [here](https://learn.microsoft.com/en-us/azure/search/search-get-started-rest) if required.
19 |
20 | ## Set up your project
21 |
22 | First set up your project by carrying out the following steps:
23 |
24 | 1. Note the **URL** and **Key** from your Azure AI Search service.
25 |
26 | 
27 |
28 | 1. Download the [Postman sample collection](https://github.com/MicrosoftLearning/mslearn-knowledge-mining/blob/main/Labfiles/10-vector-search/Vector%20Search.postman_collection%20v1.0.json).
29 | 1. Open Postman and import the collection by selecting the **Import** button and drag and drop the collection folder into the box.
30 |
31 | 
32 |
33 | 1. Select the **Fork** button to create a fork of the collection and add a unique name.
34 | 1. Right-click your collection name and select **Edit**.
35 | 1. Select the **Variables** tab and enter the following values using the search service and index names from your Azure AI Search service:
36 |
37 | 
38 |
39 | 1. Save your changes by selecting the **Save** button.
40 |
41 | You're ready to send your requests to the Azure AI Search service.
42 |
43 | ## Create an Index
44 |
45 | Next, create your index in Postman:
46 |
47 | 1. Select **PUT Create/Update Index** from the side menu.
48 | 1. Update the URL with your **search-service-name**, **index-name** and **api-version** that you noted earlier.
49 | 1. Select the **Body** tab to see the response.
50 | 1. Set the **index-name** with your index name value from your URL and select **Send**.
51 |
52 | You should see a status code of type **200** which indicates a successful request.
53 |
54 | ## Upload Documents
55 |
56 | There are 108 documents included in the Upload Documents request, each one has a full set of embeddings for the **titleVector** and **contentVector** fields.
57 |
58 | 1. Select **POST Upload Docs** from the side menu.
59 | 1. Update the URL with your **search-service-name**, **index-name** and **api-version** as before.
60 | 1. Select the **Body** tab to see the response and select **Send**.
61 |
62 | You should see a status code of type **200** to show that your request was successful.
63 |
64 | ## Run Queries
65 |
66 | 1. Now try running the following queries on the side menu. To do this, make sure to update the URL each time as before and send a request by selecting **Send**:
67 |
68 | - Single Vector search
69 | - Single Vector search w/Filter
70 | - Simple hybrid search
71 | - Simple hybrid search w/Filter
72 | - Cross-field search
73 | - Multi-Query search
74 |
75 | 1. Select the **Body** tab to see the response and view the results.
76 |
77 | You should see a status code of type **200** for a successful request.
78 |
79 | ### Clean-up
80 |
81 | Now that you've completed the exercise, delete all the resources you no longer need. Start with the code cloned to your machine. Then delete the Azure resources.
82 |
--------------------------------------------------------------------------------
/Instructions/Labs/09-semantic-search-exercise.md:
--------------------------------------------------------------------------------
1 | ---
2 | lab:
3 | title: 'Set up semantic ranker'
4 | ---
5 |
6 | # Set up semantic ranker
7 |
8 | > **Note**
9 | > To complete this lab, you will need an [Azure subscription](https://azure.microsoft.com/free?azure-portal=true) in which you have administrative access. This exercise also requires the **Azure AI Search** service with a billable tier.
10 |
11 | In this exercise, you will add semantic ranker to an index and use semantic ranker for a query.
12 |
13 | ## Enable semantic ranker
14 |
15 | 1. Open the Azure portal and sign in.
16 | 1. Select **All resources** and select your search service.
17 | 1. In the navigation pane, select **Semantic ranker**.
18 | 1. In **Availability**, in the **Free** option, select **Select Plan**.
19 |
20 | 
21 |
22 | ## Import a sample index
23 |
24 | 1. Return to the **Overview** page of your search service.
25 | 1. Select **Import data**.
26 |
27 | 
28 |
29 | 1. In **Data Source**, select **Samples**.
30 | 1. Select **hotels-sample** and select **Next: Add cognitive skills (Optional)**.
31 | 1. Select **Skip to: Customize target index**.
32 | 1. Select **Next: Create an indexer**.
33 | 1. Select **Submit**.
34 |
35 | ## Configure semantic ranking
36 |
37 | Once you have a search index and semantic ranker enabled, you can configure semantic ranking. You require a search client that supports preview APIs on the query request. You could use Search explorer in the Azure portal, the Postman app, the Azure SDK for .NET, or the Azure SDK for Python. In this exercise, you will use Search explorer in the Azure portal.
38 |
39 | To configure semantic ranking, follow these steps:
40 |
41 | 1. On the navigation bar, in **Search management**, select **Indexes**.
42 |
43 | 
44 |
45 | 1. Select your index.
46 | 1. Select **Semantic configurations** and select **Add semantic configuration**.
47 | 1. In **Name** type **hotels-conf**.
48 | 1. In **Title field** select **HotelName**.
49 | 1. Under **Content fields**, in **Field name**, select **Description**.
50 | 1. Repeat the previous step for the following fields:
51 | - **Category**
52 | - **Address/City**
53 | 1. Under **Keyword fields**, in **Field name**, select **Tags**.
54 | 1. Select **Save**.
55 | 1. On your index page, select **Save**.
56 | 1. Select **Search explorer**.
57 | 1. Select **View** and select **JSON view**.
58 | 1. In JSON query editor type the following text:
59 |
60 | ```json
61 | {
62 | "queryType": "semantic",
63 | "queryLanguage" : "en-us",
64 | "search": "all hotels near the water" ,
65 | "semanticConfiguration": "hotels-conf" ,
66 | "searchFields": "",
67 | "speller": "lexicon" ,
68 | "answers": "extractive|count-3",
69 | "count": true
70 | }
71 | ```
72 |
73 | 1. Select **Search**.
74 | 1. Review the results of the query.
75 |
76 | ## Clean-up
77 |
78 | If you no longer require the Azure AI Search service, you should delete the resource from your Azure subscription to reduce costs.
79 |
80 | >**Note**
81 | > Deleting your Azure AI Search service ensures your subscription won't be charged for resources. You will however be charged a small amount for data storage as long as the storage exists in your subscription. If you have finished exploring the Cognitive Search service, you can delete the Cognitive Search service and associated resources. However, if you plan to complete any other labs in this series, you will need to recreate it.
82 | > To delete your resources:
83 | > 1. In the [Azure portal](https://portal.azure.com?azure-portal=true ), in the **Resource groups** page, open the resource group you specified when creating your Cognitive Search service.
84 | > 1. Click **Delete resource group**, type the resource group name to confirm you want to delete it, and select **Delete**.
85 |
--------------------------------------------------------------------------------
/Instructions/Labs/10-vector-search-exercise.md:
--------------------------------------------------------------------------------
1 | ---
2 | lab:
3 | title: 'Use the REST API to run vector search queries'
4 | ---
5 |
6 | # Use the REST API to run vector search queries
7 |
8 | In this exercise you'll set up your project, create an index, upload your documents, and run queries.
9 |
10 | You'll need the following to successfully this exercise:
11 |
12 | - The [Postman app](https://www.postman.com/downloads/)
13 | - An Azure subscription
14 | - Azure AI Search service
15 | - The Postman sample collection located in this repository - *Vector-Search-Quickstart.postman_collection v1.0 json*.
16 |
17 | > **Note**
18 | > You can find more information about the Postman app [here](https://learn.microsoft.com/en-us/azure/search/search-get-started-rest) if required.
19 |
20 | ## Set up your project
21 |
22 | First set up your project by carrying out the following steps:
23 |
24 | 1. Note the **URL** and **Key** from your Azure AI Search service.
25 |
26 | 
27 |
28 | 1. Download the [Postman sample collection](https://github.com/MicrosoftLearning/mslearn-knowledge-mining/blob/main/Labfiles/10-vector-search/Vector%20Search.postman_collection%20v1.0.json).
29 | 1. Open Postman and import the collection by selecting the **Import** button and drag and drop the collection folder into the box.
30 |
31 | 
32 |
33 | 1. Select the **Fork** button to create a fork of the collection and add a unique name.
34 | 1. Right-click your collection name and select **Edit**.
35 | 1. Select the **Variables** tab and enter the following values using the search service and index names from your Azure AI Search service:
36 |
37 | 
38 |
39 | 1. Save your changes by selecting the **Save** button.
40 |
41 | You're ready to send your requests to the Azure AI Search service.
42 |
43 | ## Create an Index
44 |
45 | Next, create your index in Postman:
46 |
47 | 1. Select **PUT Create/Update Index** from the side menu.
48 | 1. Update the URL with your **search-service-name**, **index-name** and **api-version** that you noted earlier.
49 | 1. Select the **Body** tab to see the response.
50 | 1. Set the **index-name** with your index name value from your URL and select **Send**.
51 |
52 | You should see a status code of type **200** which indicates a successful request.
53 |
54 | ## Upload Documents
55 |
56 | There are 108 documents included in the Upload Documents request, each one has a full set of embeddings for the **titleVector** and **contentVector** fields.
57 |
58 | 1. Select **POST Upload Docs** from the side menu.
59 | 1. Update the URL with your **search-service-name**, **index-name** and **api-version** as before.
60 | 1. Select the **Body** tab to see the response and select **Send**.
61 |
62 | You should see a status code of type **200** to show that your request was successful.
63 |
64 | ## Run Queries
65 |
66 | 1. Now try running the following queries on the side menu. To do this, make sure to update the URL each time as before and send a request by selecting **Send**:
67 |
68 | - Single Vector search
69 | - Single Vector search w/Filter
70 | - Simple hybrid search
71 | - Simple hybrid search w/Filter
72 | - Cross-field search
73 | - Multi-Query search
74 |
75 | 1. Select the **Body** tab to see the response and view the results.
76 |
77 | You should see a status code of type **200** for a successful request.
78 |
79 | ### Clean-up
80 |
81 | Now that you've completed the exercise, delete all the resources you no longer need. Start with the code cloned to your machine. Then delete the Azure resources.
82 |
--------------------------------------------------------------------------------
/Instructions/media/04-media/add-deployment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/add-deployment.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/add-enrichments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/add-enrichments.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/add-output-fields-indexer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/add-output-fields-indexer.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/attach-cognitive-services.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/attach-cognitive-services.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/azure-resources-created.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/azure-resources-created.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/check-indexer-results.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/check-indexer-results.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/choose-container.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/choose-container.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/connect-data.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/connect-data.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/copy-function-url.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/copy-function-url.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/copy-prediction-endpoint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/copy-prediction-endpoint.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/copy-sample-query.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/copy-sample-query.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/create-custom-text-classification-project.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/create-custom-text-classification-project.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/customize-target-index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/customize-target-index.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/deploy-azure-resources.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/deploy-azure-resources.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/deploy-function-app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/deploy-function-app.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/deploy-model.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/deploy-model.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/download-sample-data.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/download-sample-data.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/edit-azure-blob-index-fields.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/edit-azure-blob-index-fields.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/edit-local-settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/edit-local-settings.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/enriched-index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/enriched-index.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/enter-basic-information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/enter-basic-information.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/enter-language-service-information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/enter-language-service-information.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/execute-remote-function.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/execute-remote-function.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/executed-function-json-response.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/executed-function-json-response.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/optimize-visual-studio-code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/optimize-visual-studio-code.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/project-settings-primary-key.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/project-settings-primary-key.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-additional-features.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-additional-features.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-azure-blob-storage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-azure-blob-storage.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-custom-skillset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-custom-skillset.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-project-type.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-project-type.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-python-interpreter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-python-interpreter.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/select-search-indexer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/select-search-indexer.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/start-training-job.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/start-training-job.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/started-language-studio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/started-language-studio.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/test-function-app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/test-function-app.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/train-jobs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/train-jobs.png
--------------------------------------------------------------------------------
/Instructions/media/04-media/upload-files.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/04-media/upload-files.png
--------------------------------------------------------------------------------
/Instructions/media/05-media/add-cognitive-services-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/05-media/add-cognitive-services-new.png
--------------------------------------------------------------------------------
/Instructions/media/05-media/add-translation-enrichment-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/05-media/add-translation-enrichment-new.png
--------------------------------------------------------------------------------
/Instructions/media/05-media/add-weights-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/05-media/add-weights-new.png
--------------------------------------------------------------------------------
/Instructions/media/05-media/import-data-new-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/05-media/import-data-new-small.png
--------------------------------------------------------------------------------
/Instructions/media/05-media/import-data-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/05-media/import-data-new.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/04-select-endpoint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/04-select-endpoint.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/completed-pipeline-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/completed-pipeline-new.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/copy-rest-endpoint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/copy-rest-endpoint.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/create-compute-instance-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/create-compute-instance-new.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/create-inference-cluster-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/create-inference-cluster-new.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/download-score-conda.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/download-score-conda.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/navigate-storage-account.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/navigate-storage-account.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/select-pre-built-components-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/select-pre-built-components-new.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/submit-pipeline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/submit-pipeline.png
--------------------------------------------------------------------------------
/Instructions/media/06-media/test-results-search-explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/06-media/test-results-search-explorer.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/azure-resources-created-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/azure-resources-created-small.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/azure-resources-created.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/azure-resources-created.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/check-search-service-index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/check-search-service-index.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/debug-application.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/debug-application.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/deploy-azure-resources.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/deploy-azure-resources.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/edit-program-code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/edit-program-code.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/search-api-keys-exercise-version.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/search-api-keys-exercise-version.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/setup-visual-studio-code-solution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/setup-visual-studio-code-solution.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/thread-code-ready-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/thread-code-ready-small.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/thread-code-ready.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/thread-code-ready.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/update-app-settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/update-app-settings.png
--------------------------------------------------------------------------------
/Instructions/media/07-media/upload-hundred-thousand-documents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/07-media/upload-hundred-thousand-documents.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/add-enrichments-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/add-enrichments-small.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/add-enrichments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/add-enrichments.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/arm-template-deployment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/arm-template-deployment.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/debug-session-complete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/debug-session-complete.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/debug-session-errors.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/debug-session-errors.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/import-data-selection-screen-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/import-data-selection-screen-small.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/import-data.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/import-data.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/indexer-warnings-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/indexer-warnings-small.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/indexer-warnings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/indexer-warnings.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/language-detection-skill-settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/language-detection-skill-settings.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/skillset-attach-service.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/skillset-attach-service.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/update-skillset.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/update-skillset.png
--------------------------------------------------------------------------------
/Instructions/media/08-media/warnings-fixed-indexer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/08-media/warnings-fixed-indexer.png
--------------------------------------------------------------------------------
/Instructions/media/ai-services.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/ai-services.png
--------------------------------------------------------------------------------
/Instructions/media/cloudshell-launch-portal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/cloudshell-launch-portal.png
--------------------------------------------------------------------------------
/Instructions/media/semantic-search/importdata.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/semantic-search/importdata.png
--------------------------------------------------------------------------------
/Instructions/media/semantic-search/indexes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/semantic-search/indexes.png
--------------------------------------------------------------------------------
/Instructions/media/semantic-search/semanticsearch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/semantic-search/semanticsearch.png
--------------------------------------------------------------------------------
/Instructions/media/vector-search/import.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/vector-search/import.png
--------------------------------------------------------------------------------
/Instructions/media/vector-search/search keys.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/vector-search/search keys.png
--------------------------------------------------------------------------------
/Instructions/media/vector-search/variables.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MicrosoftLearning/mslearn-knowledge-mining/d2e8ac03b1eb11c545c52e600fddb5f57b1a4d1c/Instructions/media/vector-search/variables.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Microsoft Learning
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Labfiles/01-azure-search/C-Sharp/margies-travel/Models/SearchResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Azure.Search.Documents.Indexes;
3 | using Azure.Search.Documents.Indexes.Models;
4 |
5 |
6 | namespace search_client.Models
7 | {
8 | public partial class SearchResult
9 | {
10 | [SearchableField(IsFilterable=true)]
11 | public string url { get; set; }
12 |
13 | [SearchableField()]
14 | public string merged_content { get; set; }
15 |
16 | [SearchableField(IsFilterable=true, IsSortable=true)]
17 | public string metadata_storage_name { get; set; }
18 |
19 | [SearchableField(IsFilterable=true, IsSortable=true, IsFacetable=true)]
20 | public string metadata_author { get; set; }
21 |
22 | [SearchableField(IsFilterable=true, IsSortable=true)]
23 | public int metadata_storage_size { get; set; }
24 |
25 | [SearchableField(IsFilterable=true, IsSortable=true)]
26 | public DateTime metadata_storage_last_modified { get; set; }
27 |
28 | [SimpleField(IsFilterable=true, IsSortable=true)]
29 | public string sentiment { get; set; }
30 |
31 | [SearchableField(IsFilterable=true)]
32 | public string language { get; set; }
33 |
34 | [SearchableField(IsFilterable=true)]
35 | public string[] locations { get; set; }
36 |
37 | [SearchableField()]
38 | public string[] keyphrases { get; set; }
39 |
40 | [SearchableField()]
41 | public string[] imageTags { get; set; }
42 |
43 | [SearchableField()]
44 | public string[] imageCaption { get; set; }
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/Labfiles/01-azure-search/C-Sharp/margies-travel/Pages/Error.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model ErrorModel
3 | @{
4 | ViewData["Title"] = "Error";
5 | }
6 |
7 |
Error.
8 |
An error occurred while processing your request.
9 |
10 | @if (Model.ShowRequestId)
11 | {
12 |
13 | Request ID:@Model.RequestId
14 |
15 | }
16 |
17 |
Development Mode
18 |
19 | Swapping to the Development environment displays detailed information about the error that occurred.
20 |
21 |
22 | The Development environment shouldn't be enabled for deployed applications.
23 | It can result in displaying sensitive information from exceptions to end users.
24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
25 | and restarting the app.
26 |