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
+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
@@ -63,7 +63,7 @@ The visual editor is organized into a surface area showing a progression of oper
63
63
64
64
Select any skill or mapping, and a pane opens to side showing relevant information.
65
65
66
-
:::image type="content" source="media/cognitive-search-debug/debug-session-skills-pane.png" lightbox="media/cognitive-search-debug/debug-sessions-skills-pane.png" alt-text="Screenshot showing a skill details pane with drilldown for more information.":::
66
+
:::image type="content" source="media/cognitive-search-debug/debug-session-skills-pane.png" lightbox="media/cognitive-search-debug/debug-session-skills-pane.png" alt-text="Screenshot showing a skill details pane with drilldown for more information.":::
67
67
68
68
Follow the links to drill further into skills processing. For example, the following screenshot shows the output of the first iteration of the Text Split skill.
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-how-to-debug-skillset.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
@@ -127,7 +127,7 @@ Enriched documents are internal, but a debug session gives you access to the con
127
127
128
128
1. Select a skill.
129
129
130
-
:::image type="content" source="media/cognitive-search-debug/debug-session-skills-pane.png" lightbox="media/cognitive-search-debug/debug-sessions-skills-pane.png" alt-text="Screenshot showing a skill details pane with drilldown for more information.":::
130
+
:::image type="content" source="media/cognitive-search-debug/debug-session-skills-pane.png" lightbox="media/cognitive-search-debug/debug-session-skills-pane.png" alt-text="Screenshot showing a skill details pane with drilldown for more information.":::
131
131
132
132
1. Follow the links to drill further into skills processing. For example, the following screenshot shows the output of the first iteration of the Text Split skill.
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-skill-annotation-language.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
@@ -10,7 +10,7 @@ ms.custom:
10
10
- ignite-2023
11
11
- build-2024
12
12
ms.topic: reference
13
-
ms.date: 01/27/2022
13
+
ms.date: 08/20/2024
14
14
---
15
15
# Skill context and input annotation language
16
16
@@ -24,8 +24,8 @@ The nodes in the tree can be simple values such as strings and numbers, arrays,
24
24
Even simple values can be enriched with additional structured information.
25
25
For example, a string can be annotated with additional information that is stored beneath it in the enrichment tree.
26
26
The expressions used to query that internal structure use a rich syntax that is detailed in this article.
27
-
The enriched data structure can be [inspected from debug sessions](cognitive-search-debug-session.md#ai-enrichments-tab--enriched-data-structure).
28
-
Expressions querying the structure can also be [tested from debug sessions](cognitive-search-debug-session.md#expression-evaluator).
27
+
The enriched data structure can be [inspected from debug sessions](cognitive-search-debug-session.md).
28
+
Expressions querying the structure can also be tested from debug sessions.
29
29
30
30
Throughout the article, we'll use the following enriched data as an example.
31
31
This data is typical of the kind of structure you would get when enriching a document using a skillset with [OCR](cognitive-search-skill-ocr.md), [key phrase extraction](cognitive-search-skill-keyphrases.md), [text translation](cognitive-search-skill-text-translation.md), [language detection](cognitive-search-skill-language-detection.md), and [entity recognition](cognitive-search-skill-entity-recognition-v3.md) skills, as well as a custom tokenizer skill.
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-tutorial-debug-sessions.md
+13-18Lines changed: 13 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,8 +91,9 @@ The sample code intentionally creates a buggy index as a consequence of problems
91
91
1. Enter this JSON query string in Search explorer's JSON view. It returns fields for specific documents (identified by the unique `metadata_storage_path` field).
1. Run the query. You should see empty values for `organizations` and `locations`.
@@ -117,31 +118,27 @@ Another way to investigate errors and warnings is through the Azure portal.
117
118
118
119
1. Give the session a name.
119
120
120
-
1. Connect the session to your storage account. Create a container named "debug sessions". You can use this container repeatedly to store all of your debug session data.
121
-
122
-
1. If you configured a trusted connection between search and storage, select the user-managed identity or system identity for the connection. Otherwise, use the default (None).
121
+
1. Connect the session to your storage account.
123
122
124
123
1. In Indexer template, provide the indexer name. The indexer has references to the data source, the skillset, and index.
125
124
126
-
1. Accept the default document choice for the first document in the collection. A debug session only works with a single document. You can choose which document to debug, or just use the first one.
125
+
1. If you configured role assignments or a trusted connection between search and storage, select the system identity for the connection.
127
126
128
-
1. **Save** the session. Saving the session will kick off the enrichment pipeline as defined by the skillset for the selected document.
127
+
1. **Save** the session. Saving the session kicks off the enrichment pipeline as defined by the skillset for the selected document.
129
128
130
-
:::image type="content" source="media/cognitive-search-debug/new-debug-session-screen-required.png" alt-text="Screenshot of configuring a new debug session." border="true":::
129
+
1. Accept the default document choice for the first document in the collection. A debugsession only works with a single document. You can choose which document to debug, or just use the first one.
131
130
132
-
1. When the debug session has finished initializing, the session defaults to the **AI Enrichments** tab, highlighting the **Skill Graph**. The Skill Graph provides a visual hierarchy of the skillset and its order of execution sequentially and in parallel.
131
+
1. When the debug session has finished initializing, you should see a skills workflow with mappings and a search index. The enriched document data structure appears in a details pane on the side.
133
132
134
-
:::image type="content" source="media/cognitive-search-debug/debug-execution-complete1.png" alt-text="Screenshot of Debug Session visual editor." border="true":::
Any issues reported by the indexer can be found in the adjacent **Errors/Warnings** tab.
137
+
Any issues reported by the indexer can be found in the adjacent **Errors/Warnings** pane.
139
138
140
-
:::image type="content" source="media/cognitive-search-debug/debug-session-errors-warnings.png" alt-text="Screenshot of the errors and warnings tab." border="true":::
139
+
Notice that the number of errors and warning is a much smaller list than the one displayed earlier because this list is only detailing the errors for a single document. Like the list displayed by the indexer, you can select on a warning message and see the details of this warning.
141
140
142
-
Notice that the **Errors/Warnings** tab will provide a much smaller list than the one displayed earlier because this list is only detailing the errors for a single document. Like the list displayed by the indexer, you can select on a warning message and see the details of this warning.
143
-
144
-
Select **Errors/Warnings** to review the notifications. You should see four:
141
+
Select **Warnings** to review the notifications. You should see four:
145
142
146
143
+ "Could not execute skill because one or more skill inputs were invalid. Required skill input is missing. Name: 'text', Source: '/document/content'."
147
144
@@ -162,11 +159,9 @@ Because all four notifications are about this skill, your next step is to debug
162
159
163
160
In the **Errors/Warnings** tab, there are two missing inputs for an operation labeled `EntityRecognitionSkill.#1`. The detail of the first error explains that a required input for 'text' is missing. The second indicates a problem with an input value "/document/languageCode".
164
161
165
-
1. In **AI Enrichments** > **Skill Graph**, select the skill labeled **#1** to display its details in the right pane.
166
-
167
-
1. Select the **Executions** tab and locate the input for "text".
162
+
1. On the work surface, select the first skill.
168
163
169
-
1. Select the **</>** symbol to pop open the Expression Evaluator. The displayed result for this input doesn’t look like a text input. It looks like a series of new line characters `\n \n\n\n\n` instead of text. The lack of text means that no entities can be identified, so either this document fails to meet the prerequisites of the skill, or there's another input that should be used instead.
164
+
1. On the details pane, select the input to pop open the Expression Evaluator. The displayed result for this input doesn’t look like a text input. It looks like a series of new line characters `\n \n\n\n\n` instead of text. The lack of text means that no entities can be identified, so either this document fails to meet the prerequisites of the skill, or there's another input that should be used instead.
170
165
171
166
:::image type="content" source="media/cognitive-search-debug/expression-evaluator-text.png" alt-text="Screenshot of Expression Evaluator for the text input." border="true":::
0 commit comments