Skip to content

Commit 2292b37

Browse files
authored
Merge pull request #201063 from HeidiSteen/heidist-debug-ga
[azure search] Debug sessions GA
2 parents b8c9d15 + 8c135f2 commit 2292b37

6 files changed

+34
-46
lines changed

articles/search/cognitive-search-debug-session.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
---
2-
title: Debug Sessions concepts (preview)
2+
title: Debug Sessions concepts
33
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 a preview feature.
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 an enrichment pipeline.
55

66
manager: nitinme
77
author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 12/30/2021
11+
ms.date: 06/15/2022
1212
---
1313

1414
# Debug Sessions in Azure Cognitive Search
1515

16-
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 are 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.
17-
18-
> [!Important]
19-
> Debug Sessions is a preview feature provided under [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
16+
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 are 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.
2017

2118
## How a debug session works
2219

23-
When you start a session, the search service creates a copy of the skillset, indexer, and a data source containing a single document that will be used to test the skillset. All session state will be saved to a container in an Azure Storage account that you provide.
20+
When you start a session, the search service creates a copy of the skillset, indexer, and a data source containing a single document that will be used to test the skillset. All session state will be saved to a blob container in an Azure Storage account that you provide. You can reuse the same container for all subsequent debug sessions you create. A helpful container name might be "cognitive-search-debug-sessions".
2421

2522
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.
2623

@@ -32,15 +29,15 @@ The visual editor is organized into tabs and panes. This section introduces the
3229

3330
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).
3431

35-
Selecting a skill in the graph will display the details of that instance of the skill in the right pane, including it's 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.
32+
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.
3633

3734
:::image type="content" source="media/cognitive-search-debug/skills-graph.png" alt-text="Screenshot of Skills Graph tab." border="true":::
3835

3936
### Skill details pane
4037

4138
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.
4239

43-
Skill details includes the following areas:
40+
Skill details include the following areas:
4441

4542
+ **Skill Settings** shows a formatted version of the skill definition.
4643
+ **Skill JSON Editor** shows the raw JSON document of the definition.
@@ -57,7 +54,7 @@ A skill can execute multiple times in a skillset for a single document. For exam
5754

5855
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 may manifest in a downstream skill.
5956

60-
When debugging an error with a custom skill, there is the option to generate a request for a skill invocation in the execution history.
57+
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.
6158

6259
## AI Enrichments tab > Enriched Data Structure
6360

articles/search/cognitive-search-how-to-debug-skillset.md

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: how-to
11-
ms.date: 06/02/2022
11+
ms.date: 06/15/2022
1212
---
1313

1414
# Debug an Azure Cognitive Search skillset in Azure portal
@@ -17,33 +17,28 @@ Start a portal-based debug session to identify and resolve errors, validate chan
1717

1818
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. If you're unfamiliar with how a debug session works, see [Debug sessions in Azure Cognitive 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).
1919

20-
> [!Important]
21-
> Debug sessions is a preview portal feature, provided under [Supplemental Terms of Use](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
22-
2320
## Prerequisites
2421

2522
+ An existing enrichment pipeline, including a data source, a skillset, an indexer, and an index.
2623

27-
+ You must have at least **Contributor** role over the Search service, to be able to run Debug Sessions.
24+
+ A **Contributor** role assignment in the Search service.
2825

2926
+ An Azure Storage account, used to save session state.
3027

31-
+ You must have at least **Storage Blob Data Contributor** role assgined over the Storage account.
32-
33-
+ If the Azure Storage account has configured a firewall, you must configure it to [provide access to the Search service](search-indexer-howto-access-ip-restricted.md).
28+
+ A **Storage Blob Data Contributor** role assignment in Azure Storage.
3429

30+
+ If the Azure Storage account is behind a firewall, configure it to [allow Search service access](search-indexer-howto-access-ip-restricted.md).
3531

3632
## Limitations
3733

3834
A Debug Session works with all generally available [indexer data sources](search-data-sources-gallery.md) and most preview data sources. The following list notes the exceptions:
3935

4036
+ The MongoDB API (preview) of Cosmos DB is currently not supported.
4137

42-
+ For the SQL API of Cosmos DB, if a row fails during index and there is no corresponding metadata, the debug session might not pick the correct row.
38+
+ For the SQL API of Cosmos DB, if a row fails during index and there's no corresponding metadata, the debug session might not pick the correct row.
4339

4440
+ For the SQL API of Cosmos DB, if a partitioned collection was previously non-partitioned, a Debug Session won't find the document.
4541

46-
4742
## Create a debug session
4843

4944
1. [Sign in to Azure portal](https://portal.azure.com) and find your search service.
@@ -164,7 +159,7 @@ Custom skills can be more challenging to debug because the code runs externally.
164159
```
165160

166161
> [!NOTE]
167-
> By default, Azure Functions are exposed on 7071. Other tools and configurations might require that you provide a different port.
162+
> By default, Azure functions are exposed on 7071. Other tools and configurations might require that you provide a different port.
168163

169164
1. When ngrok starts, copy and save the public forwarding URL for the next step. The forwarding URL is randomly generated.
170165

@@ -176,20 +171,13 @@ Within the debug session, modify your Custom Web API Skill URI to call the ngrok
176171

177172
You can edit the skill definition in the portal.
178173

179-
### Test
174+
### Test your code
180175

181176
At this point, new requests from your debug session should now be sent to your local Azure Function. You can use breakpoints in your Visual Studio code to debug your code or run step by step.
182177

183-
184-
## Expected behaviors
185-
186-
+ If debugging for a CosmosDB SQL data source, if the CosmosDB SQL collection was previously non-partitioned, and then it was changed to a partitioned collection on the CosmosDB end, Debug Sessions won't be able to pick up the correct document from CosmosDB.
187-
+ CosmosDB SQL errors omit some metadata about what row failed, so in some cases, Debug Sessions won’t pick the correct row.
188-
189-
190178
## Next steps
191179

192180
Now that you understand the layout and capabilities of the Debug Sessions visual editor, try the tutorial for a hands-on experience.
193181

194182
> [!div class="nextstepaction"]
195-
> [Tutorial: Explore Debug sessions](./cognitive-search-tutorial-debug-sessions.md)
183+
> [Tutorial: Explore Debug sessions](./cognitive-search-tutorial-debug-sessions.md)

articles/search/cognitive-search-tutorial-debug-sessions.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: 'Tutorial: Debug skillsets'
33
titleSuffix: Azure Cognitive Search
4-
description: Debug sessions (preview) is an Azure portal tool used to find, diagnose, and repair problems in a skillset.
4+
description: Debug sessions is an Azure portal tool used to find, diagnose, and repair problems in a skillset.
55

66
author: HeidiSteen
77
ms.author: heidist
88
manager: nitinme
99

1010
ms.service: cognitive-search
1111
ms.topic: tutorial
12-
ms.date: 12/31/2021
12+
ms.date: 06/15/2022
1313
---
1414

1515
# Tutorial: Debug a skillset using Debug Sessions
@@ -20,10 +20,6 @@ Skillsets coordinate a series of actions that analyze or transform content, wher
2020

2121
In this article, you'll use **Debug sessions** to find and fix missing inputs and outputs. The tutorial is all-inclusive. It provides sample data, a Postman collection that creates objects, and instructions for debugging problems in the skillset.
2222

23-
> [!Important]
24-
> Debug sessions is a preview feature provided under [Supplemental Terms of Use](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
25-
>
26-
2723
## Prerequisites
2824

2925
Before you begin, have the following prerequisites in place:
@@ -224,15 +220,15 @@ There are two ways to research this error. The first is to look at where the inp
224220

225221
1. Still in the **Enriched Data Structure**, open the Expression Evaluator **</>** for the "language" node and copy the expression `/document/language`.
226222

227-
1. In the right pane, select **Skill Settings** for the #1 skill and open the Expression Evaluator **</>** for the input "languageCode."
223+
1. In the right pane, select **Skill Settings** for the #1 skill and open the Expression Evaluator **</>** for the input "languageCode".
228224

229225
1. Paste the new value, `/document/language` into the Expression box and click **Evaluate**. It should display the correct input "en".
230226

231227
1. Select **Save**.
232228

233-
1. Select **Run**.
229+
1. Select **Run**.
234230

235-
After the debug session execution completes, check the Errors/Warnings tab and it will show that all of the input warnings are gone. There now remains just the two warnings about output fields for organizations and locations.
231+
After the debug session execution completes, check the Errors/Warnings tab and it will show that all of the input warnings are gone. There now remain just the two warnings about output fields for organizations and locations.
236232

237233
## Fix missing skill output values
238234

articles/search/search-api-preview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 05/27/2022
11+
ms.date: 06/15/2022
1212
---
13+
1314
# Preview features in Azure Cognitive Search
1415

15-
This article is a comprehensive list of all features that are in public preview. Preview functionality is provided without a service level agreement, and is 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/).
16+
This article is a comprehensive list of all features that are in public preview. Preview functionality is provided under [Supplemental Terms of Use](https://azure.microsoft.com/support/legal/preview-supplemental-terms/), without a service level agreement, and isn't recommended for production workloads.
1617

17-
Preview features that transition to general availability are removed from this list. If a feature isn't listed below, you can assume it is generally available. For announcements regarding general availability, see [Service Updates](https://azure.microsoft.com/updates/?product=search) or [What's New](whats-new.md).
18+
Preview features that transition to general availability are removed from this list. If a feature isn't listed below, you can assume it's generally available or retired. For announcements regarding general availability, see [Service Updates](https://azure.microsoft.com/updates/?product=search) or [What's New](whats-new.md).
1819

1920
|Feature&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Category | Description | Availability |
2021
|---------|------------------|-------------|---------------|
@@ -33,7 +34,6 @@ Preview features that transition to general availability are removed from this l
3334
| [**featuresMode parameter**](/rest/api/searchservice/preview-api/search-documents#query-parameters) | Relevance (scoring) | Relevance score expansion to include details: per field similarity score, per field term frequency, and per field number of unique tokens matched. You can consume these data points in [custom scoring solutions](https://github.com/Azure-Samples/search-ranking-tutorial). | Add this query parameter using [Search Documents](/rest/api/searchservice/preview-api/search-documents), API versions 2021-04-30-Preview, 2020-06-30-Preview, or 2019-05-06-Preview. |
3435
| [**Azure Machine Learning (AML) skill**](cognitive-search-aml-skill.md) | AI enrichment (skills) | A new skill type to integrate an inferencing endpoint from Azure Machine Learning. Get started with [this tutorial](cognitive-search-tutorial-aml-custom-skill.md). | Use [Search Preview REST API](/rest/api/searchservice/), API versions 2021-04-30-Preview, 2020-06-30-Preview, or 2019-05-06-Preview. Also available in the portal, in skillset design, assuming Cognitive Search and Azure ML services are deployed in the same subscription. |
3536
| [**Incremental enrichment**](cognitive-search-incremental-indexing-conceptual.md) | AI enrichment (skills) | Adds caching to an enrichment pipeline, allowing you to reuse existing output if a targeted modification, such as an update to a skillset or another object, does not change the content. Caching applies only to enriched documents produced by a skillset.| Add this configuration setting using [Create or Update Indexer Preview REST API](/rest/api/searchservice/create-indexer), API versions 2021-04-30-Preview, 2020-06-30-Preview, or 2019-05-06-Preview. |
36-
| [**Debug Sessions**](cognitive-search-debug-session.md) | Portal, AI enrichment (skills) | An in-session skillset editor used to investigate and resolve issues with a skillset. Fixes applied during a debug session can be saved to a skillset in the service. | Portal only, using mid-page links on the Overview page to open a debug session. |
3737
| [**moreLikeThis**](search-more-like-this.md) | Query | Finds documents that are relevant to a specific document. This feature has been in earlier previews. | Add this query parameter in [Search Documents Preview REST API](/rest/api/searchservice/search-documents) calls, with API versions 2021-04-30-Preview, 2020-06-30-Preview, 2019-05-06-Preview, 2016-09-01-Preview, or 2017-11-11-Preview. |
3838

3939
## How to call a preview REST API

articles/search/search-sku-manage-costs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ There is no meter on the number of queries, query responses, or documents ingest
5252

5353
Data traffic might also incur networking costs. See the [Bandwidth pricing](https://azure.microsoft.com/pricing/details/bandwidth/).
5454

55-
Several premium features ([Knowledge store](knowledge-store-concept-intro.md), [Debug Sessions](cognitive-search-debug-session.md), [Enrichment cache (preview)](cognitive-search-incremental-indexing-conceptual.md)) have a dependency on Azure Storage. The meters for Azure Storage apply in this case, and the associated storage costs of using these features will be included in the Azure Storage bill.
55+
Several premium features such as [knowledge store](knowledge-store-concept-intro.md), [Debug Sessions](cognitive-search-debug-session.md), and [enrichment cache](cognitive-search-incremental-indexing-conceptual.md) have a dependency on Azure Storage. The meters for Azure Storage apply in this case, and the associated storage costs of using these features will be included in the Azure Storage bill.
5656

5757
[Customer-managed keys](search-security-manage-encryption-keys.md) provide double encryption of sensitive content. This feature requires a billable [Azure Key Vault](https://azure.microsoft.com/pricing/details/key-vault/)).
5858

articles/search/whats-new.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,23 @@ author: HeidiSteen
77
ms.author: heidist
88
ms.service: cognitive-search
99
ms.topic: overview
10-
ms.date: 06/07/2022
10+
ms.date: 06/15/2022
1111
ms.custom: references_regions
1212
---
13+
1314
# What's new in Azure Cognitive Search
1415

1516
Learn what's new in the service. Bookmark this page to keep up to date with service updates.
1617

1718
* [**Preview features**](search-api-preview.md) is a list of current features that haven't been approved for production workloads.
1819
* [**Previous versions**](/previous-versions/azure/search/) is an archive of earlier feature announcements.
1920

21+
## June 2022
22+
23+
|Feature&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Description | Availability |
24+
|------------------------------------|--------------|---------------|
25+
| [Debug Sessions](cognitive-search-debug-session.md) | Debug sessions, a built-in editor that runs in Azure portal, is now generally available. | Generally available. |
26+
2027
## May 2022
2128

2229
|Feature&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Description | Availability |

0 commit comments

Comments
 (0)