Skip to content

Commit 5364f7b

Browse files
committed
Debug sessions update for build 2020
1 parent 25f1d3c commit 5364f7b

20 files changed

+350
-1
lines changed

articles/search/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
- name: Skillsets
101101
href: cognitive-search-working-with-skillsets.md
102102
name: Debug sessions
103-
href: congnitive-search-debug-session.md
103+
href: cognitive-search-debug-session.md
104104
- name: Knowledge store
105105
href: knowledge-store-concept-intro.md
106106
- name: Projections
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Debug an AI enrichment skillset (preview)
3+
titleSuffix: Azure Cognitive Search
4+
description: Debug sessions, accessed through the Azure portal, provides an IDE like environment where you can identify and fix errors, validate changes, and push changes to skillsets in the AI enrichment pipeline. Debug sessions is in preview.
5+
6+
manager: nitinme
7+
author: tchristiani
8+
ms.author: terrychr
9+
ms.service: cognitive-search
10+
ms.topic: conceptual
11+
ms.date: 05/19/2020
12+
---
13+
14+
# Debug sessions
15+
16+
Debug sessions is a visual editor that works with an existing skillset in the Azure portal. Within a debug session you can identify and resolve errors, validate changes, and push changes to a production skillset in the AI enrichment pipeline.
17+
18+
> [!Important]
19+
> Debug sessions support for Azure Cognitive Search is available [upon request](https://aka.ms/DebugSessions) as a limited-access preview. Preview features are provided without a service level agreement, and are not recommended for production workloads. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
20+
>
21+
> Once you are granted access to the preview, you'll be able to access and use Debug sessions for the service using the Azure portal.
22+
23+
## Using debug sessions
24+
25+
When you start a session, the service creates a copy of the skillset, indexer, and index where a single document is used to test the skillset. Changes made within the session are saved to the session. The changes made within the debug session will not affect the production skillset unless the changes are committed to it. Committing changes will overwrite the production skillset.
26+
27+
During a debug session you can edit a skillset, inspect, and validate each node in the enrichment tree in the context of a specific document. Once the enrichment pipeline issues are resolved, changes can be saved to the session and committed to the skillset in production.
28+
29+
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.
30+
31+
## Creating a debug session
32+
33+
To start a debug session you must have an existing AI enrichment pipeline including; a data source, a skillset, an indexer, and an index. To configure a debug session, you need to name the session, and provide a general-purpose storage account that will be used to cache the skill executions during the indexer run. You will also need to select the indexer that will be running. The indexer has references stored to the data source, skillset, and index. The debug session will default to the first document in the data source or you can specify a document in the data source to step through.
34+
35+
> [!div class="mx-imgBorder"]
36+
> ![Creating a debug session](media/cognitive-search-debug/debug-session-new.png)
37+
38+
## Debug session features
39+
40+
The debug session begins by executing the skillset on the selected document. The debug session will record additional metadata associated with each operation in the skillset. The metadata created by the pipeline's skill executions, informs the following set of features that are then used to help identify and fix issues with the skillset.
41+
42+
## AI enrichments
43+
44+
As skills execute a tree of enrichments, representing the document, grows. Using a tree to visualize the outputs of skills or enrichments provides a comprehensive look at all the enrichments performed. You can look across the entire document and inspect each node of the enrichment tree. This perspective makes it easier to shape objects. This format also provides visual cues to the type, path, and contents of each node in the tree.
45+
46+
## Skill graph
47+
48+
The skill graph view provides a hierarchical, visual representation of the skillset. The graph is a top to bottom representation of the order in which the skills are executed. Skills that are dependent upon the output of other skills will be shown lower in the graph. Skills at the same level in the hierarchy can execute in parallel.
49+
50+
Selecting a skill in the graph will highlight the skills connected to it, the node(s) that create its inputs and the node(s) that accept its outputs. Each skill node displays its type, errors or warnings, and execution counts. The skills graph is where you will select which skill to debug or enhance.
51+
52+
> [!div class="mx-imgBorder"]
53+
> ![Skill graph](media/cognitive-search-debug/skills-graph.png)
54+
55+
## Skill details
56+
57+
The skill details pane displays a set of areas for working with a specific skill. You can review and edit the details of the skill's settings. The skill's JSON definition is provided. The details of the skill's execution and the errors and warnings are also displayed. The Skill Settings & Skill JSON Editor allow for direct edits to the skill. The Expression Evaluator </> opens a window for viewing and editing the expressions of the skills inputs and outputs.
58+
59+
Nested input controls in the skill settings window can be used to build complex shapes for projections, output field mappings 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.
60+
61+
## Skill execution history
62+
63+
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 each document. The skill execution history provides a deeper look into each invocation of the skill.
64+
65+
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. This allows identification of the root cause of a problem that may manifest in a downstream skill.
66+
67+
When a potential issue is identified, the execution history displays links to the skills that generated the specific inputs, providing a stack-trace like feature. Clicking on the skill associated with an input, navigates to the skill to fix any bugs or continue to trace the specific issue.
68+
69+
When building a custom skill or debugging an error with a custom skill, there is the option to generate a request for a skill invocation in the execution history.
70+
71+
## Enriched data structure
72+
73+
The enriched data structure pane shows the document's enrichments through the skillset, detailing the context for each enrichment and the originating skill. The expression evaluator `</>` can also be used to view the contents for each enrichment.
74+
75+
> [!div class="mx-imgBorder"]
76+
> ![Enriched data structure](media/cognitive-search-debug/enriched-data-structure-display.png)
77+
78+
## Expression evaluator
79+
80+
Debug sessions have a few features that are available across the different components. The 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.
81+
82+
## Errors/Warnings
83+
84+
This window displays all of the errors and warnings the skillset produces as it is executed against the document in the debug session.
85+
86+
## Next steps
87+
88+
> [!div class="nextstepaction"]
89+
> [Explore Debug sessions feature tutorial](https://docs.microsoft.com/azure/search/cognitive-search-tutorial-debug-sessions)

0 commit comments

Comments
 (0)