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/cognitive-search-debug-session.md
+17-23Lines changed: 17 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,59 +10,53 @@ ms.service: cognitive-search
10
10
ms.custom:
11
11
- ignite-2023
12
12
ms.topic: conceptual
13
-
ms.date: 09/29/2023
13
+
ms.date: 07/21/2024
14
14
---
15
15
16
16
# Debug Sessions in Azure AI Search
17
17
18
-
Debug Sessions is a visual editor that works with an existing skillset in the Azure portal, exposing the structure and content of a single enriched document, as it's produced by an indexer and skillset for the duration of the session. Because you're working with a live document, the session is interactive - you can identify errors, modify and invoke skill execution, and validate the results in real time. If your changes resolve the problem, you can commit them to a published skillset to apply the fixes globally.
18
+
Debug Sessions is a visual editor that works with an existing skillset in the Azure portal, exposing the structure and content of a single enriched document as it's produced by an indexer and skillset for the duration of the session. Because you're working with a live document, the session is interactive - you can identify errors, modify and invoke skill execution, and validate the results in real time. If your changes resolve the problem, you can commit them to a published skillset to apply the fixes globally.
19
19
20
-
## How a debug session works
21
-
22
-
When you start a session, the search service creates a copy of the skillset, indexer, and a data source containing a single document used to test the skillset. All session state is saved to a new blob container created by the Azure AI Search service in an Azure Storage account that you provide. The name of the generated container has a prefix of "ms-az-cognitive-search-debugsession". The prefix is required because it mitigates the chance of accidentally exporting session data to another container in your account.
23
-
24
-
A cached copy of the enriched document and skillset is loaded into the visual editor so that you can inspect the content and metadata of the enriched document, with the ability to check each document node and edit any aspect of the skillset definition. Any changes made within the session are cached. Those changes will not affect the published skillset unless you commit them. Committing changes will overwrite the production skillset.
20
+
This article explains how the editor is organized. Tabs and sections of the editor unpack different layers of the skillset so that you can examine skillset structure, flow, and the content it generates at run time.
25
21
26
-
If the enrichment pipeline does not have any errors, a debug session can be used to incrementally enrich a document, test and validate each change before committing the changes.
22
+
## How a debug session works
27
23
28
-
## Managing the Debug Session state
24
+
When you start a session, the search service creates a copy of the skillset, indexer, and a data source containing a single document used to test the skillset. All session state is saved to a new blob container created by the Azure AI Search service in an Azure Storage account that you provide. The name of the generated container has a prefix of `ms-az-cognitive-search-debugsession`. The prefix is required because it mitigates the chance of accidentally exporting session data to another container in your account.
29
25
30
-
You can rerun a debug session using the **Start** button, or cancel an in-progress session using the **Cancel** button.
26
+
A cached copy of the enriched document and skillset is loaded into the visual editor so that you can inspect the content and metadata of the enriched document, with the ability to check each document node and edit any aspect of the skillset definition. Any changes made within the session are cached. Those changes won't affect the published skillset unless you commit them. Committing changes will overwrite the production skillset.
31
27
32
-
:::image type="content" source="media/cognitive-search-debug/debug-session-commands.png" alt-text="Screenshot of the Debug Session control buttons." border="true":::
28
+
If the enrichment pipeline doesn't have any errors, a debugsession can be used to incrementally enrich a document, test and validate each change before committing the changes.
33
29
34
30
## AI Enrichments tab > Skill Graph
35
31
36
32
The visual editor is organized into tabs and panes. This section introduces the components of the visual editor.
37
33
38
34
The **Skill Graph** provides a visual hierarchy of the skillset and its order of execution from top to bottom. Skills that are dependent upon the output of other skills are positioned lower in the graph. Skills at the same level in the hierarchy can execute in parallel. Color coded labels of skills in the graph indicate the types of skills that are being executed in the skillset (TEXT or VISION).
39
35
40
-
Selecting a skill in the graph will display the details of that instance of the skill in the right pane, including its definition, errors or warnings, and execution history. The **Skill Graph** is where you will select which skill to debug or enhance. The details pane to the right is where you edit and explore.
36
+
The **Skill Graph** is where you select which skill to debug or enhance. The details pane to the right is where you edit and explore.
41
37
42
38
:::image type="content" source="media/cognitive-search-debug/skills-graph.png" alt-text="Screenshot of Skills Graph tab." border="true":::
43
39
44
40
### Skill details pane
45
41
46
-
When you select an object in the **Skill Graph**, the adjacent pane provides interactive work areas in a tabbed layout. An illustration of the details pane can be found in the previous screenshot.
47
-
48
-
Skill details include the following areas:
42
+
Skill details are presented in a tabbed layout and include the following areas:
49
43
50
-
+**Skill Settings** shows a formatted version of the skill definition.
51
-
+**Skill JSON Editor** shows the raw JSON document of the definition.
52
-
+**Executions** shows the data corresponding to each time a skill was executed.
53
-
+**Errors and warnings** shows the messages generated upon session start or refresh.
44
+
+**Skill Settings**: a formatted version of the skill definition.
45
+
+**Skill JSON Editor**: the raw JSON document of the definition.
46
+
+**Executions**: the data corresponding to each time a skill was executed.
47
+
+**Errors and warnings**: the messages generated upon session start or refresh.
54
48
55
49
On Executions or Skill Settings, select the **`</>`** symbol to open the [**Expression Evaluator**](#expression-evaluator) used for viewing and editing the expressions of the skills inputs and outputs.
56
50
57
51
Nested input controls in Skill Settings can be used to build complex shapes for [projections](knowledge-store-projection-overview.md), [output field mappings](cognitive-search-output-field-mapping.md) for a complex type field, or an input to a skill. When used with the Expression Evaluator, nested inputs provide an easy test and validate expression builder.
58
52
59
53
### Executions pane
60
54
61
-
A skill can execute multiple times in a skillset for a single document. For example, the OCR skill will execute once for each image extracted from a single document. The Executions pane displays the skill's execution history providing a deeper look into each invocation of the skill.
55
+
A skill can execute multiple times in a skillset for a single document. For example, the OCR skill executes once for each image extracted from a single document. The Executions pane displays the skill's execution history providing a deeper look into each invocation of the skill.
62
56
63
57
The execution history enables tracking a specific enrichment back to the skill that generated it. Clicking on a skill input navigates to the skill that generated that input, providing a stack-trace like feature. This allows identification of the root cause of a problem that might manifest in a downstream skill.
64
58
65
-
When you debug an error with a custom skill, there is the option to generate a request for a skill invocation in the execution history.
59
+
When you debug an error with a custom skill, there's the option to generate a request for a skill invocation in the execution history.
66
60
67
61
## AI Enrichments tab > Enriched Data Structure
68
62
@@ -72,9 +66,9 @@ The **Enriched Data Structure** pane shows the document's enrichments through th
72
66
73
67
## Expression Evaluator
74
68
75
-
**Expression Evaluator**gives a quick peek into the value of any path. It allows for editing the path and testing the results before updating any of the inputs or context for a skill or projection.
69
+
**Expression Evaluator**shows the executable elements of the kil. It allows for editing the path and testing the results before updating any of the inputs or context for a skill or projection.
76
70
77
-
You can open the window from any node or element that shows the **`</>`** symbol, including parts of a dependency graph or nodes in an enrichment tree.
71
+
You can open the evaluator from any node or element that shows the **`</>`** symbol, including parts of a dependency graph or nodes in an enrichment tree.
78
72
79
73
Expression Evaluator gives you full interactive access for testing skill context, inputs, and checking outputs.
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-how-to-debug-skillset.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ ms.service: cognitive-search
10
10
ms.custom:
11
11
- ignite-2023
12
12
ms.topic: how-to
13
-
ms.date: 01/10/2024
13
+
ms.date: 07/22/2024
14
14
---
15
15
16
16
# Debug an Azure AI Search skillset in Azure portal
17
17
18
-
Start a portal-based debug session to identify and resolve errors, validate changes, and push changes to a published skillset in your Azure AI Search service.
18
+
Start a portal-based debug session to identify and resolve errors, validate changes, and push changes to an existing skillset in your Azure AI Search service.
19
19
20
-
A debug session is a cached indexer and skillset execution, scoped to a single document, that you can use to edit and test your changes interactively. When you're finished debugging, you can save your changes to the skillset.
20
+
A debug session is a cached indexer and skillset execution, scoped to a single document, that you can use to edit and test skillset changes interactively. When you're finished debugging, you can save your changes to the skillset.
21
21
22
22
For background on how a debug session works, see [Debug sessions in Azure AI Search](cognitive-search-debug-session.md). To practice a debug workflow with a sample document, see [Tutorial: Debug sessions](cognitive-search-tutorial-debug-sessions.md).
23
23
@@ -35,7 +35,7 @@ For background on how a debug session works, see [Debug sessions in Azure AI Sea
35
35
36
36
## Limitations
37
37
38
-
Debug sessions work with all generally available [indexer data sources](search-data-sources-gallery.md) and most preview data sources. The following list notes the exceptions:
38
+
Debug sessions work with all generally available [indexer data sources](search-data-sources-gallery.md) and most preview data sources, with the following exceptions:
39
39
40
40
+ Azure Cosmos DB for MongoDB is currently not supported.
41
41
@@ -51,15 +51,15 @@ The portal doesn't support customer-managed key encryption (CMK), which means th
51
51
52
52
1. Sign in to the [Azure portal](https://portal.azure.com) and find your search service.
53
53
54
-
1. In the left navigation page, select **Debug sessions**.
54
+
1. In the left menu, select**Search management** >**Debug sessions**.
55
55
56
56
1. In the action bar at the top, select **Add debug session**.
57
57
58
58
:::image type="content" source="media/cognitive-search-debug/new-debug-session.png" alt-text="Screenshot of the debug sessions commands in the portal page." border="true":::
59
59
60
60
1. In **Debug session name**, provide a name that will help you remember which skillset, indexer, and data source the debug session is about.
61
61
62
-
1. In **Storage connection**, find a general-purpose storage account for caching the debug session. You'll be prompted to select and optionally create a blob container in Blob Storage or Azure Data Lake Storage Gen2. You can reuse the same container for all subsequent debug sessions you create. A helpful container name might be "cognitive-search-debug-sessions".
62
+
1. In **Storage connection**, find a general-purpose storage account for caching the debug session. You're prompted to select and optionally create a blob container in Blob Storage or Azure Data Lake Storage Gen2. You can reuse the same container for all subsequent debug sessions you create. An obvious container name might be "debug-sessions".
63
63
64
64
1. In **Managed identity authentication**, choose **None** if the connection to Azure Storage doesn't use a managed identity. Otherwise, choose the managed identity to which you've granted **Storage Blob Data Contributor** permissions.
65
65
@@ -77,7 +77,7 @@ The portal doesn't support customer-managed key encryption (CMK), which means th
77
77
78
78
:::image type="content" source="media/cognitive-search-debug/debug-session-new.png" alt-text="Screenshot of a debug session page." border="true":::
79
79
80
-
The debug session begins by executing the indexer and skillset on the selected document. The document's content and metadata created will be visible and available in the session.
80
+
The debug session begins by executing the indexer and skillset on the selected document. The document's content and metadata are visible and available in the session.
81
81
82
82
A debug session can be canceled while it's executing using the **Cancel** button. If you hit the **Cancel** button you should be able to analyze partial results.
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/javascript.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ With that in place, we're ready to create an index.
129
129
130
130
Create a file **hotels_quickstart_index.json**. This file defines how Azure AI Search works with the documents you'll be loading in the next step. Each field will be identified by a `name` and have a specified `type`. Each field also has a series of index attributes that specify whether Azure AI Search can search, filter, sort, and facet upon the field. Most of the fields are simple data types, but some, like `AddressType` are complex types that allow you to create rich data structures in your index. You can read more about [supported data types](/rest/api/searchservice/supported-data-types) and index attributes described in [Create Index (REST)](/rest/api/searchservice/create-index).
131
131
132
-
Add the following content to **hotels_quickstart_index.json** or [download the file](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/quickstart/v11/hotels_quickstart_index.json).
132
+
Add the following content to **hotels_quickstart_index.json** or [download the file](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/quickstart/hotels_quickstart_index.json).
133
133
134
134
```json
135
135
{
@@ -316,7 +316,7 @@ At this point, you're ready to run the sample. Use a terminal window to run the
316
316
node index.js
317
317
```
318
318
319
-
If you [downloaded the source code](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/main/quickstart/v11) and haven't installed the required packages yet, run `npm install` first.
319
+
If you [downloaded the source code](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/main/quickstart) and haven't installed the required packages yet, run `npm install` first.
320
320
321
321
You should see a series of messages describing the actions being taken by the program.
322
322
@@ -331,7 +331,7 @@ In the next step, you'll add data to index.
331
331
332
332
In Azure AI Search, documents are data structures that are both inputs to indexing and outputs from queries. You can push such data to the index or use an [indexer](/azure/search/search-indexer-overview). In this case, we'll programatically push the documents to the index.
333
333
334
-
Document inputs might be rows in a database, blobs in Blob storage, or, as in this sample, JSON documents on disk. You can either download [hotels.json](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/quickstart/v11/hotels.json) or create your own **hotels.json** file with the following content:
334
+
Document inputs might be rows in a database, blobs in Blob storage, or, as in this sample, JSON documents on disk. You can either download [hotels.json](https://github.com/Azure-Samples/azure-search-javascript-samples/blob/main/quickstart/hotels.json) or create your own **hotels.json** file with the following content:
Copy file name to clipboardExpand all lines: articles/search/resource-demo-sites.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,16 @@ ms.service: cognitive-search
9
9
ms.custom:
10
10
- ignite-2023
11
11
ms.topic: conceptual
12
-
ms.date: 09/18/2023
12
+
ms.date: 07/22/2024
13
13
---
14
14
15
15
# Demos - Azure AI Search
16
16
17
-
Demos are hosted apps that showcase search and AI enrichment functionality in Azure AI Search. Several of these demos include source code on GitHub so that you can see how they were made.
17
+
Demos are hosted apps that showcase search and AI enrichment functionality in Azure AI Search. Demos sometimes include source code on GitHub so that you can see how they were made.
18
18
19
-
Microsoft built and hosts the following demos.
19
+
The Azure AI Search currently builds and hosts the following demos.
20
20
21
21
| Demo name | Description | Source code |
22
22
|-----------|------------ |-------------|
23
23
|[Chat with your data](https://entgptsearch.azurewebsites.net/)| An Azure web app that uses ChatGPT in Azure OpenAI with fictitious health plan data in a search index. |[https://github.com/Azure-Samples/azure-search-openai-demo/](https://github.com/Azure-Samples/azure-search-openai-demo/)|
24
-
|[JFK files demo](https://jfk-demo-2019.azurewebsites.net/#/)| An ASP.NET web app built on a public data set, transformed with custom and predefined skills to extract searchable content from scanned document (JPEG) files. [Learn more...](https://www.microsoft.com/ai/ai-lab-jfk-files)|[https://github.com/Microsoft/AzureSearch_JFK_Files](https://github.com/Microsoft/AzureSearch_JFK_Files)|
25
24
|[Semantic ranking for retail](https://brave-meadow-0f59c9b1e.1.azurestaticapps.net/)| Web app for a fictitious online retailer, "Terra" | Not available |
Copy file name to clipboardExpand all lines: articles/search/samples-javascript.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Code samples from the Azure AI Search team demonstrate features and workflows. M
58
58
59
59
| Samples | Article |
60
60
|---------|---------|
61
-
|[quickstart](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/main/quickstart/v11)| Source code for the JavaScript portion of [Quickstart: Full text search using the Azure SDKs](search-get-started-text.md). Covers the basic workflow for creating, loading, and querying a search index using sample data. |
61
+
|[quickstart](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/main/quickstart)| Source code for the JavaScript portion of [Quickstart: Full text search using the Azure SDKs](search-get-started-text.md). Covers the basic workflow for creating, loading, and querying a search index using sample data. |
62
62
|[search-website](https://github.com/Azure-Samples/azure-search-javascript-samples/tree/main/search-website-functions-v4)| Source code for [Tutorial: Add search to web apps](tutorial-javascript-overview.md). Demonstrates an end-to-end search app that includes a rich client plus components for hosting the app and handling search requests.|
0 commit comments