Skip to content

Commit 7eebc4b

Browse files
committed
Initial Commit
1 parent ab0b208 commit 7eebc4b

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: Use Language service in 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: 06/14/2024
9+
---
10+
11+
# Use Language service in prompt flow
12+
13+
[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.
14+
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. |
30+
31+
## Prerequisites
32+
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).
35+
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>`
40+
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>`
46+
47+
## Using Azure AI Language via the prompt flow gallery
48+
49+
[Introduce the procedure.]
50+
51+
1. Procedure step
52+
1. Procedure step
53+
1. Procedure step
54+
55+
<!-- Required: Steps to complete the task - H2
56+
57+
In one or more H2 sections, organize procedures. A section
58+
contains a major grouping of steps that help the user complete
59+
a task.
60+
61+
Begin each section with a brief explanation for context, and
62+
provide an ordered list of steps to complete the procedure.
63+
64+
If it applies, provide sections that describe alternative tasks or
65+
procedures.
66+
67+
-->
68+
69+
## Next step -or- Related content
70+
71+
> [!div class="nextstepaction"]
72+
> [Next sequential article title](link.md)
73+
74+
-or-
75+
76+
* [Related article title](link.md)
77+
* [Related article title](link.md)
78+
* [Related article title](link.md)
79+
80+
<!-- Optional: Next step or Related content - H2
81+
82+
Consider adding one of these H2 sections (not both):
83+
84+
A "Next step" section that uses 1 link in a blue box
85+
to point to a next, consecutive article in a sequence.
86+
87+
-or-
88+
89+
A "Related content" section that lists links to
90+
1 to 3 articles the user might find helpful.
91+
92+
-->

0 commit comments

Comments
 (0)