Skip to content

Commit c127b0b

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into addgif
2 parents 15788b9 + 6fd6dfe commit c127b0b

34 files changed

+285
-193
lines changed
307 KB
Loading

articles/ai-services/language-service/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,8 @@ items:
801801
href: tutorials/use-kubernetes-service.md
802802
- name: Use language in power automate flows
803803
href: tutorials/power-automate.md
804+
- name: Use language in prompt flow
805+
href: tutorials/prompt-flow.md
804806
- name: 🆕 Native document support
805807
items:
806808
- name: 🆕 Use native documents for language processing
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Use Language in Azure prompt flow
3+
description: Learn how to use Azure AI Language in prompt flow.
4+
author: jboback
5+
ms.author: jboback
6+
ms.service: azure-ai-language
7+
ms.topic: how-to
8+
ms.date: 07/09/2024
9+
---
10+
11+
# Use Language in Azure prompt flow
12+
13+
> [!IMPORTANT]
14+
> Some of the features described in this article might only be available in preview. This preview is provided without a service-level agreement, and we don't recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
15+
16+
[Prompt flow in Azure AI Studio](../../../ai-studio/how-to/prompt-flow.md) is a development tool designed to streamline the entire development cycle of AI applications powered by Large Language Models (LLMs). You can explore and quickly start to use and fine-tune various natural language processing capabilities from Azure AI Language, reducing your time to value and deploying solutions with reliable evaluation.
17+
18+
This tutorial teaches you how to use Language in prompt flow utilizing [Azure AI Studio](https://ai.azure.com).
19+
20+
## Prerequisites
21+
22+
- An Azure subscription - <a href="https://azure.microsoft.com/free/cognitive-services" target="_blank">Create one for free</a>.
23+
24+
- Access granted to Azure OpenAI in the desired Azure subscription.
25+
26+
Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at <a href="https://aka.ms/oai/access" target="_blank">https://aka.ms/oai/access</a>. Open an issue on this repo to contact us if you have an issue.
27+
28+
- You need an Azure AI Studio hub or permissions to create one. Your user role must be **Azure AI Developer**, **Contributor**, or **Owner** on the hub. For more information, see [hubs](../../../ai-studio/concepts/ai-resources.md) and [Azure AI roles](../../../ai-studio/concepts/rbac-ai-studio.md).
29+
- If your role is **Contributor** or **Owner**, you can [create a hub in this tutorial](#create-a-project-in-azure-ai-studio).
30+
- If your role is **Azure AI Developer**, the hub must already be created.
31+
32+
- Your subscription needs to be below your [quota limit](../../../ai-studio/how-to/quota.md) to deploy a new flow in this tutorial.
33+
34+
## Create a project in Azure AI Studio
35+
36+
Your project is used to organize your work and save state.
37+
38+
[!INCLUDE [Create project](../../../ai-studio/includes/create-projects.md)]
39+
40+
## Using Azure AI Language via the prompt flow gallery
41+
42+
You can create an Azure AI Language flow by either cloning the samples available in the gallery or creating a flow from scratch. If you already have flow files in local or file share, you can also import the files to create a flow. For the purposes of this tutorial we'll be using the prebuilt **Analyze Conversations** flow.
43+
44+
To create a prompt flow from the gallery in Azure AI Studio:
45+
46+
1. Sign in to Azure AI Studio and select your project.
47+
48+
1. From the collapsible left menu, select Prompt flow.
49+
50+
1. Select + Create.
51+
52+
1. Find the **Analyze Conversations** tile in the gallery and select *Clone*.
53+
54+
1. In the right sidebar, name the folder and click the **Clone** button.
55+
56+
1. After the process is complete, you'll be taken to the prompt flow wizard. Click **Start Compute Session** in the upper right hand corner to begin. The various parts of the wizard are out lined below:
57+
58+
:::image type="content" source="../media/prompt-flow/prompt-flow-wizard.png" alt-text="Screenshot of the prompt flow wizard page with each part of the tool numbered." lightbox="../media/prompt-flow/prompt-flow-wizard.png":::
59+
60+
1. A graph view of your flow.
61+
1. Files in your flow. Click the arrow to expand this section.
62+
1. Azure AI Language tools in the "More tools" dropdown menu, which you can add capabilities that you need for your flow. There are more tools that you can add from LLM, Prompt, and Python menu. This menu is only accessible after the compute session has started.
63+
1. Configure your output.
64+
1. Configure steps (or tools) in the flow.
65+
1. Run, evaluate, and deploy your flow.
66+
67+
1. Once you've configured everything to your liking, press the run button in the upper right hand corner.
68+
69+
## Related content
70+
71+
* [Azure AI Language homepage](https://aka.ms/azure-language)
72+
* [Azure AI Language product demo videos](https://aka.ms/language-videos)
73+
* [Explore Azure AI Language in Azure AI Studio](https://aka.ms/AzureAiLanguage)

articles/api-center/import-api-management-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This article shows two options for using the Azure CLI to add APIs to your API c
2222
* Run [az apic api register](/cli/azure/apic/api#az-apic-api-register) to register a new API in your API center.
2323
* Run [az apic api definition import-specification](/cli/azure/apic/api/definition#az-apic-api-definition-import-specification) to import the API definition to an existing API.
2424

25-
* **Option 2** - Import APIs directly from API Management to your API center using the [az apic import-from-apim](/cli/azure/apic/az-apic-import-from-apim) command.
25+
* **Option 2** - Import APIs directly from API Management to your API center using the [az apic import-from-apim](/cli/azure/apic#az-apic-import-from-apim) command.
2626

2727
After importing API definitions or APIs from API Management, you can add metadata and documentation in your API center to help stakeholders discover, understand, and consume the API.
2828

articles/api-center/manage-apis-azure-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ To delete individual API versions and definitions, use [az apic api version dele
133133

134134
## Related content
135135

136-
* See the [Azure CLI reference for Azure API Center](/cli/azure/apic) for a complete command list, including commands to manage [environments](/cli/azure/apic/environment), [deployments](/cli/azure/apic/api/deployment), [metadata schemas](/cli/azure/apic/metadata), and [services](/cli/azure/apic/service).
136+
* See the [Azure CLI reference for Azure API Center](/cli/azure/apic) for a complete command list, including commands to manage [environments](/cli/azure/apic/environment), [deployments](/cli/azure/apic/api/deployment), [metadata schemas](/cli/azure/apic/metadata), and [services](/cli/azure/apic).
137137
* [Import APIs to your API center from API Management](import-api-management-apis.md)
138138
* [Use the Visual Studio extension for API Center](use-vscode-extension.md) to build and register APIs from Visual Studio Code.

articles/automation/manage-runtime-environment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ An Azure Automation account in supported public region (except Central India, Ge
7676

7777
> [!NOTE]
7878
> - When you import a package, it might take several minutes. 100MB is the maximum total size of the files that you can import.
79-
> - Use *.zip* files for PowerShell runbook types as mentioned [here](https://learn.microsoft.com/powershell/scripting/developer/module/understanding-a-windows-powershell-module?view=powershell-7.4)
79+
> - Use *.zip* files for PowerShell runbook types as mentioned [here](/powershell/scripting/developer/module/understanding-a-windows-powershell-module)
8080
> - For Python 3.8 packages, use .tar.gz or .whl files targeting cp38-amd64.
8181
> - For Python 3.10 (preview) packages, use .whl files targeting cp310 Linux OS.
8282

articles/azure-functions/flex-consumption-plan.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ This table shows the language stack versions that are currently supported for Fl
113113

114114
Currently in preview each region in a given subscription has a memory limit of `512,000 MB` for all instances of apps running on Flex Consumption plans. This means that, in a given subscription and region, you could have any combination of instance memory sizes and counts, as long as they stay under the quota limit. For example, each the following examples would mean the quota has been reached and the apps would stop scaling:
115115

116-
+ You have one 2048GB app scaled to 100 and a second 2048GB app scaled to 150 instances
117-
+ You have one 2048GB app that scaled out to 250 instances
118-
+ You have one 4096GB app that scaled out to 125 instances
119-
+ You have one 4096GB app scaled to 100 and one 2048GB app scaled to 50 instances
116+
+ You have one 2,048 MB app scaled to 100 and a second 2,048 MB app scaled to 150 instances
117+
+ You have one 2,048 MB app that scaled out to 250 instances
118+
+ You have one 4,096 MB app that scaled out to 125 instances
119+
+ You have one 4,096 MB app scaled to 100 and one 2,048 MB app scaled to 50 instances
120120

121121
This quota can be increased to allow your Flex Consumption apps to scale further, depending on your requirements. If your apps require a larger quota please create a support ticket.
122122

articles/azure-monitor/agents/agent-linux-troubleshoot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ This is a known issue that occurs on the first upload of Linux data into a Log A
226226

227227
### Probable causes
228228

229-
A regression in nss-pem package [v1.0.3-5.el7](https://centos.pkgs.org/7/centos-x86_64/nss-pem-1.0.3-7.el7.x86_64.rpm.html) caused a severe performance issue. We've been seeing this issue come up a lot in Redhat/CentOS 7.x distributions. To learn more about this issue, see [1667121 Performance regression in libcurl](https://bugzilla.redhat.com/show_bug.cgi?id=1667121).
229+
A regression in nss-pem package [v1.0.3-5.el7](https://pkgs.org/download/nss-pem) caused a severe performance issue. We've been seeing this issue come up a lot in Redhat/CentOS 7.x distributions. To learn more about this issue, see [1667121 Performance regression in libcurl](https://bugzilla.redhat.com/show_bug.cgi?id=1667121).
230230

231231
Performance-related bugs don't happen all the time, and they're difficult to reproduce. If you experience such an issue with omiagent, use the script `omiHighCPUDiagnostics.sh`, which will collect the stack trace of the omiagent when it exceeds a certain threshold.
232232

@@ -240,7 +240,7 @@ Performance-related bugs don't happen all the time, and they're difficult to rep
240240

241241
### Resolution
242242

243-
1. Upgrade the nss-pem package to [v1.0.3-5.el7_6.1](https://centos.pkgs.org/7/centos-x86_64/nss-pem-1.0.3-7.el7.x86_64.rpm.html): <br/>
243+
1. Upgrade the nss-pem package to [v1.0.3-5.el7_6.1](https://pkgs.org/download/nss-pem): <br/>
244244
`sudo yum upgrade nss-pem`
245245

246246
1. If nss-pem isn't available for upgrade, which mostly happens on CentOS, downgrade curl to 7.29.0-46. If you run "yum update" by mistake, curl will be upgraded to 7.29.0-51 and the issue will happen again: <br/>

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ It's not possible to filter telemetry in Java native.
25322532

25332533
## Get the trace ID or span ID
25342534

2535-
You might want to get the trace ID or span ID. If you have logs sent to a destination other than Application Insights, consider adding the trace ID or span ID. Doing so enables better correlation when debugging and diagnosing issues.
2535+
You can obtain the `Trace ID` and `Span ID` of the currently active Span using following steps.
25362536

25372537
### [ASP.NET Core](#tab/aspnetcore)
25382538

articles/azure-monitor/includes/get-authentication-token.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Get an authentication token using any of the following methods:
1414
When requesting a token, you must provide a `resource` parameter. The `resource` parameter is the URL of the resource you want to access.
1515

1616
Resources include:
17-
- https://management.azure.com
18-
- https://api.loganalytics.io
19-
- https://monitoring.azure.com
17+
- `https://management.azure.com`
18+
- `https://api.loganalytics.io`
19+
- `https://monitoring.azure.com`
2020

2121

2222
## [REST](#tab/rest)
@@ -56,7 +56,7 @@ To get a token using CLI, you can use the following command
5656
az account get-access-token
5757
```
5858

59-
For more information, see [az account get-access-token](/cli/azure/account?view=azure-cli-latest#az-account-get-access-token)
59+
For more information, see [az account get-access-token](/cli/azure/account#az-account-get-access-token)
6060

6161
## [SDK](#tab/SDK)
6262
### Get a token using the SDKs

0 commit comments

Comments
 (0)