Skip to content

Commit b0fcd4e

Browse files
committed
Language in prompt flow
1 parent 7eebc4b commit b0fcd4e

File tree

2 files changed

+22
-29
lines changed

2 files changed

+22
-29
lines changed
387 KB
Loading

articles/ai-services/language-service/tutorials/prompt-flow.md

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,41 @@
11
---
2-
title: Use Language service in prompt flow
2+
title: Use Language in Azure prompt flow
33
description: Learn how to use Azure AI Language in prompt flow.
44
author: jboback
55
ms.author: jboback
66
ms.service: azure-ai-language
77
ms.topic: how-to
8-
ms.date: 06/14/2024
8+
ms.date: 07/09/2024
99
---
1010

11-
# Use Language service in prompt flow
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/en-us/support/legal/preview-supplemental-terms/).
1215
1316
[Prompt flow in Azure AI Studio](https://learn.microsoft.com/en-us/azure/ai-studio/how-to/prompt-flow) 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.
1417

15-
The Prompt flow tool is a wrapper for various Azure AI Language APIs. The current list of supported capabilities is as follows:
16-
17-
| Name | Description |
18-
|---------------------------------------|-----------------------------------------------------|
19-
| Abstractive Summarization | Generate abstractive summaries from documents. |
20-
| Extractive Summarization | Extract summaries from documents. |
21-
| Conversation Summarization | Summarize conversations. |
22-
| Entity Recognition | Recognize and categorize entities in documents. |
23-
| Key Phrase Extraction | Extract key phrases from documents. |
24-
| Language Detection | Detect the language of documents. |
25-
| PII Entity Recognition | Recognize and redact PII entities in documents. |
26-
| Conversational PII | Recognize and redact PII entities in conversations. |
27-
| Sentiment Analysis | Analyze the sentiment of documents. |
28-
| Conversational Language Understanding | Predict intents and entities from user's utterances.|
29-
| Translator | Translate documents. |
18+
This tutorial will teach you how to use Language in prompt flow utilizing [Azure AI Studio](https://ai.azure.com). |
3019

3120
## Prerequisites
3221

33-
- Install the [prompt flow Azure AI Language PyPl package](https://pypi.org/project/promptflow-azure-ai-language/)
34-
- For local users: `pip install promptflow-azure-ai-language`, You may also want to install the [prompt flow for VS Code extension](https://marketplace.visualstudio.com/items?itemName=prompt-flow.prompt-flow).
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
3535

36-
The tool calls APIs from Azure AI Language. To use it, you must create a connection to an [Azure AI Language resource](https://learn.microsoft.com/en-us/azure/ai-services/language-service/). [Create a Language Resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics) first, if necessary.
37-
- In prompt flow, add a new `CustomConnection`
38-
- Under the `secrets` field, specify the resource's APi key: `api_key: <Azure AI Language Resource api key>`
39-
- Under the `configs` field, specify te resource's endpoint: `endpoint: <Azure AI Language Resource endpoint>`
36+
Your project is used to organize your work and save state.
4037

41-
To use the `Translator` tool, you must set up an additional connection to an [Azure AI Language resource](https://learn.microsoft.com/en-us/azure/ai-services/language-service/). [Create a Language Resource](https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesTextAnalytics) first, if necessary.
42-
- In prompt flow, add a new `CustomConnection`
43-
- Under the `secrets` field, specify the resource's APi key: `api_key: <Azure AI Translator Resource api key>`
44-
- Under the `configs` field, specify te resource's endpoint: `endpoint: <Azure AI Translator Resource endpoint>`
45-
- If your Translator Resource is regional and non-global, specify its region under `configs` as well: `region: <Azure AI Translator Resource region>`
38+
[!INCLUDE [Create project](../../../ai-studio/includes/create-projects.md)]
4639

4740
## Using Azure AI Language via the prompt flow gallery
4841

0 commit comments

Comments
 (0)