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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.service: azure-ai-search
10
10
ms.custom:
11
11
- ignite-2023
12
12
ms.topic: conceptual
13
-
ms.date: 10/01/2024
13
+
ms.date: 12/03/2024
14
14
---
15
15
16
16
# Debug Sessions in Azure AI Search
@@ -29,13 +29,13 @@ Use Debug Sessions to investigate and resolve problems with:
29
29
30
30
+ Custom skills used to integrate external processing that you provide.
31
31
32
-
Compare the following debug session images for the first two scenarios. For both scenarios, the surface area shows the progression of skills that generate or transform content en route from the source document to the search index. The flow includes index mapping options, and you can trace the arrows to follow the processing trail. The details pane to the right is context-sensitive. It shows a representation of the enriched document, or the details of a skill or mapping.
32
+
Compare the following debug session images for the first two scenarios. For both scenarios, the surface area shows the progression of skills that generate or transform content en route from the source document to the search index. The flow includes index mapping options, and you can trace the arrows to follow the processing trail. The details pane to the right is context-sensitive. It shows a representation of the enriched document that's created by the pipeline, or the details of a skill or mapping.
33
33
34
-
The first image shows a pattern for applied AI enrichment. Skills can run sequentially or in parallel if there are no dependencies. Output field mappings send enriched or generated content from in-memory data structures to fields in an index.
34
+
The first image shows a pattern for applied AI enrichment (no vectors). Skills can run sequentially or in parallel if there are no dependencies. Index mappings show how enriched or generated content travels from in-memory data structures to fields in an index. Enriched document shows the data structure that the skillset creates.
35
35
36
36
:::image type="content" source="media/cognitive-search-debug/debug-session-flow-applied-ai.png" alt-text="Screenshot of a debug session for OCR and image analysis." lightbox="media/cognitive-search-debug/debug-session-flow-applied-ai.png":::
37
37
38
-
The second image shows a typical pattern for integrated vectorization. Skills for integrated vectorization usually includes Text Split and an embedding skill. A Text Split skill chunks a document into pages. An embedding skills provides vectorization. Projection mappings control how chunks of content are index. This particular skillset skips the parent index and creates an index of just chunked content, using metadata to identify the source of the chunk.
38
+
The second image shows a typical pattern for integrated vectorization. Skills for integrated vectorization usually include a Text Split skill and an embedding skill. A Text Split skill divides a document into chunks. An embedding skill calls an embedding API to vectorize those chunks. This particular skillset chunks content into an array of "pages". For integrated vectorization, projection mappings control how chunks are mapped to fields in the index.
39
39
40
40
:::image type="content" source="media/cognitive-search-debug/debug-session-flow-integrated-vectorization.png" alt-text="Screenshot of a debug session for integrated vectorization." lightbox="media/cognitive-search-debug/debug-session-flow-integrated-vectorization.png":::
41
41
@@ -53,7 +53,7 @@ Debug Sessions work with all generally available [indexer data sources](search-d
53
53
54
54
+ For custom skills, a user-assigned managed identity isn't supported for a debug session connection to Azure Storage. As stated in the prerequisites, you can use a system managed identity, or specify a full access connection string that includes a key. For more information, see [Connect a search service to other Azure resources using a managed identity](search-howto-managed-identities-data-sources.md).
55
55
56
-
+ Currently, the ability to select which document to debug is unavailable. This limitation is not permanent and will be lifted soon. At this time, Debug Sessions selects the first document in the source data container or folder.
56
+
+ Currently, the ability to select which document to debug is unavailable. This limitation isn't permanent and will be lifted soon. At this time, Debug Sessions selects the first document in the source data container or folder.
Copy file name to clipboardExpand all lines: articles/search/cognitive-search-how-to-debug-skillset.md
+13-25Lines changed: 13 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.service: azure-ai-search
10
10
ms.custom:
11
11
- ignite-2023
12
12
ms.topic: how-to
13
-
ms.date: 10/01/2024
13
+
ms.date: 12/03/2024
14
14
---
15
15
16
16
# Debug an Azure AI Search skillset in Azure portal
@@ -23,17 +23,15 @@ For background on how a debug session works, see [Debug sessions in Azure AI Sea
23
23
24
24
## Prerequisites
25
25
26
-
+ An Azure AI Search service. We recommend using a system-assigned managed identity and role assignments that allow Azure AI Search to write to Azure Storage and call the Azure AI resources used in the skillset.
26
+
+ An Azure AI Search service, any region or tier.
27
27
28
28
+ An Azure Storage account, used to save session state.
29
29
30
30
+ An existing enrichment pipeline, including a data source, a skillset, an indexer, and an index.
31
31
32
-
+ For role assignments, the search service identity must have:
32
+
## Security and permissions
33
33
34
-
+**Cognitive Services User** permissions on the Azure AI multiservice account used by the skillset.
35
-
36
-
+**Storage Blob Data Contributor** permissions on Azure Storage. Otherwise, plan on using a full access connection string for the debug session connection to Azure Storage.
34
+
+ To save a debug session to Azure storage, the search service identity must have **Storage Blob Data Contributor** permissions on Azure Storage. Otherwise, plan on choosing a full access connection string for the debug session connection to Azure Storage.
37
35
38
36
+ If the Azure Storage account is behind a firewall, configure it to [allow search service access](search-indexer-howto-access-ip-restricted.md).
39
37
@@ -51,8 +49,6 @@ Debug sessions work with all generally available [indexer data sources](search-d
51
49
52
50
+ For custom skills, a user-assigned managed identity isn't supported for a debug session connection to Azure Storage. As stated in the prerequisites, you can use a system managed identity, or specify a full access connection string that includes a key. For more information, see [Connect a search service to other Azure resources using a managed identity](search-howto-managed-identities-data-sources.md).
53
51
54
-
+ Currently, the ability to select which document to debug is unavailable. This limitation is not permanent and will be lifted soon. At this time, Debug Sessions selects the first document in the source data container or folder.
55
-
56
52
## Create a debug session
57
53
58
54
1. Sign in to the [Azure portal](https://portal.azure.com) and [find your search service](https://portal.azure.com/#blade/HubsExtension/BrowseResourceBlade/resourceType/Microsoft.Search%2FsearchServices).
@@ -67,33 +63,25 @@ Debug sessions work with all generally available [indexer data sources](search-d
67
63
68
64
1. In **Indexer template**, select the indexer that drives the skillset you want to debug. Copies of both the indexer and skillset are used to initialize the session.
69
65
70
-
1. In **Storage account**, find a general-purpose storage account for caching the debug session.
66
+
1. In **Document to debug**, choose the first document in the index or select a specific document. If you select a specific document, depending on the data source, you're asked for a URI or a row ID.
67
+
68
+
If your specific document is a blob, provide the blob URI. You can find the URI in the blob property page in the portal.
71
69
72
-
1. Select **Authenticate using managed identity** if you previously assigned **Storage Blob Data Contributor** permissions to the search service system-managed identity.
70
+
:::image type="content" source="media/cognitive-search-debug/copy-blob-url.png" lightbox="media/cognitive-search-debug/copy-blob-url.png" alt-text="Screenshot of the URI property in blob storage." border="true":::
71
+
72
+
1. In **Storage account**, choose a general-purpose storage account for caching the debug session.
73
+
74
+
1. Select **Authenticate using managed identity** if you previously assigned **Storage Blob Data Contributor** permissions to the search service system-managed identity. If you don't check this box, the search service connects using a full access connection string.
73
75
74
76
1. Select **Save**.
75
77
76
78
+ Azure AI Search creates a blob container on Azure Storage named *ms-az-cognitive-search-debugsession*.
77
79
+ Within that container, it creates a folder using the name you provided for the session name.
78
80
+ It starts your debug session.
79
81
80
-
1. A debug session opens to the settings page. You can make modifications to the initial configuration and override any defaults.
81
-
82
-
1. In **Storage connection string**, you can specify the connection string or change the storage account.
83
-
84
-
<!-- 1. In **Document to debug**, choose the first document in the index or select a specific document. If you select a specific document, depending on the data source, you're asked for a URI or a row ID.
85
-
86
-
If your specific document is a blob, provide the blob URI. You can find the URI in the blob property page in the portal.
87
-
88
-
:::image type="content" source="media/cognitive-search-debug/copy-blob-url.png" lightbox="media/cognitive-search-debug/copy-blob-url.png" alt-text="Screenshot of the URI property in blob storage." border="true"::: -->
89
-
90
-
1. Optionally, in **Indexer settings**, specify any [indexer execution settings](search-howto-indexing-azure-blob-storage.md) used to create the session. The settings should mirror the settings used by the actual indexer. Any indexer options that you specify in a debug session have no effect on the indexer itself.
91
-
92
-
1. If you made changes, select **Save session**, followed by **Run**.
93
-
94
82
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.
95
83
96
-
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.
84
+
A debug session can be canceled while it's executing. If you hit the **Cancel** button you should be able to analyze partial results.
97
85
98
86
It's expected for a debug session to take longer to execute than the indexer since it goes through extra processing.
0 commit comments