Skip to content

Commit c44c2e2

Browse files
authored
Merge pull request #54245 from sherzyang/main
Update units.
2 parents 9c152fb + 6bbae75 commit c44c2e2

5 files changed

Lines changed: 38 additions & 16 deletions

File tree

learn-pr/wwl-data-ai/get-started-text-analysis-azure/includes/3-language-sdk.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ To connect to an AI service, your application uses an **API** (Application Progr
1515

1616
## Using general-purpose AI models for text analysis
1717

18-
Start with a Microsoft Foundry resource and create an Foundry project within your resource. In the *new* Foundry portal, you can browse the model catalog and deploy a general-purpose model.
18+
Start with a Microsoft Foundry resource and create a Foundry project within your resource. In the *new* Foundry portal, you can browse the model catalog and deploy a general-purpose model.
1919

20-
You can build a client application that interacts with Microsoft Foundry Models using the **Azure OpenAI API**. The OpenAI API lets your code `talk` to a deployed model by sending requests to an *endpoint*, along with an *API key* to prove you're authorized.
20+
You can build a client application that interacts with Microsoft Foundry Models using the **Azure OpenAI API**. The OpenAI API lets your code talk to a deployed model by sending requests to an *endpoint*, along with an *API key* to prove you're authorized.
2121

2222
The **Responses API** is the modern, unified API within Azure OpenAI for interacting with language models. It is designed to handle complete AI interactions, not just text generation.
2323

@@ -99,7 +99,7 @@ The OpenAI API is straightforward to use, but results can vary between calls bec
9999

100100
## Using the Azure Language SDK
101101

102-
The **Azure Language SDK** is a client library for Azure Language in Foundry Tools. The SDK makes it easy for developers to add NLP features, such as language detection and redacting personally identifiable information (PII), to their applications. You can use the SDK when writing applications in *Python*, *JavaScript*, *C#*, or *Java*.
102+
The **Azure Language SDK** is a client library for *Azure Language in Foundry Tools*. The SDK makes it easy for developers to add NLP features, such as language detection and redacting personally identifiable information (PII), to their applications.
103103

104104
Let's see how you can use the Azure Language Python SDK to build an application that analyzes text. To use the Azure Language Python SDK, you need to have a *Foundry resource*. Then you need to install a compatible version of Python and the Azure Language Python SDK.
105105

@@ -167,6 +167,8 @@ for entity in result.entities:
167167
print(f" {entity.text} | category={entity.category} | confidence={entity.confidence_score}")
168168
```
169169

170-
With the OpenAI API and the Azure Language SDK, you can write code for AI applications that process natural language and generate insight from your text. Next, let's take a look at how to include Azure Language capabilities in AI agents.
170+
With the OpenAI API and the Azure Language SDK, you can write code for AI applications that process natural language and generate insight from your text.
171+
172+
Next, let's take a look at how to include Azure Language capabilities in AI agents.
171173

172174
::: zone-end

learn-pr/wwl-data-ai/get-started-text-analysis-azure/includes/4-language-mcp.md

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,46 @@
99

1010
::: zone pivot="text"
1111

12-
An AI agent uses tools and models to perform tasks such as reasoning, planning, retrieval, and calling external services. While AI agents can use various generative AI models to perform language-related tasks, you can create an agent that uses Azure Language in Foundry Tools to ensure consistent and predictable text analysis functionality.
12+
AI agents use tools and models to perform tasks such as reasoning, planning, retrieval, and calling external services. While an agent can use a generative AI model to understand and generate language, that model alone can't perform text analysis tasks that require deterministic, structured analysis. Adding **Azure Language in Foundry Tools** to an agent gives it consistent and predictable text analysis functionality.
1313

14-
The **Azure Language MCP server** in Foundry Tools is a managed service that exposes Azure Language capabilities through the **Model Context Protocol (MCP)** so that AI agents can use advanced language processing tools without custom integration work.
14+
## Understand MCP
1515

16-
A **MCP server** gives an agent access to tools, data, or actions that the agent can't do on its own. The agent can make a request to the MCP server. The MCP server might respond by:
17-
- Providing *data* (for example: files, records, or analytics)
18-
- Taking *action* (for example: sending an email)
16+
The **Model Context Protocol (MCP)** is an open standard that defines how AI agents connect to external tools and data sources. Think of MCP like a universal adapter: instead of writing custom integration code for every service an agent needs, you connect the agent to an MCP server that already exposes those capabilities in a standard way.
1917

20-
You can access the Azure Language MCP server and other Foundry Tools in the *new* Foundry portal.
18+
MCP uses a client-server architecture:
2119

22-
## Use the Azure Language MCP Server in Foundry portal
20+
- The *MCP client* is the AI agent (or the host application running the agent). It sends requests and receives responses.
21+
- The *MCP server* is the service that exposes tools, data, or actions. It listens for requests, executes the appropriate capability, and returns a structured result.
2322

24-
You can start out in the *new* Foundry portal by deploying a model and saving it in the Foundry playground as an agent.
23+
When an agent connects to an MCP server, it can discover what tools the server offers and invoke them as needed—without any custom integration work. The server might respond to a request by:
2524

26-
> [!NOTE]
27-
> A Foundry resource provides a unified environment that already includes access to Language tools. You do not need to create a separate Azure Language resource to access the Azure Language MCP server.
25+
- Providing *data* (for example: sentiment scores, key phrases, or entity records)
26+
- Taking *action* (for example: processing a batch of documents)
27+
28+
This separation of concerns keeps agent logic clean and makes it easy to swap or extend capabilities by connecting to different MCP servers.
29+
30+
## Azure Language MCP server
31+
32+
The **Azure Language MCP server** is a managed service that exposes *Azure Language in Foundry Tools* capabilities through MCP. It acts as the bridge between your agent and the full suite of Azure Language features—named entity recognition, sentiment analysis, language detection, and more.
33+
34+
Because the server follows the MCP standard, your agent can call these language analysis tools using the same protocol it uses for any other MCP server. You don't need to call the Azure Language REST API directly or manage authentication tokens in your agent code.
35+
36+
## Use the Azure Language MCP server in Foundry portal
2837

29-
You can add tools, such as **Azure Language in Foundry Tools**, to your agent in the Foundry playground.
38+
To build an agent that uses Azure Language, you can start in the Foundry portal by deploying a model and saving it as an agent.
3039

31-
To connect to the Azure Language MCP server, you need to configure your connection with your *Foundry resource name*. Once you've connected the MCP server to an agent as a tool, you can use prompts to instruct the agent to use the tool to analyze text. The ability to use Azure Language as a tool in an agent helps you build agentic solutions that make sense of text documents.
40+
![Screenshot of the Foundry playground with a deployed model and a dialog box to save as an agent.](../media/save-agent.png)
41+
42+
You can add the Azure Language MCP server as a tool in the Foundry playground by searching tools for *Azure Language in Foundry Tools*. To connect to the Azure Language MCP server, configure your connection with your *Foundry resource name*. Once you've connected the MCP server to your agent, use prompts to instruct the agent to analyze text using the tool.
43+
44+
![Screenshot of the dialog box used to configure the connection between the agent and Azure Language in Foundry Tools.](../media/connect-tool.png)
45+
46+
With the MCP server connected, your agent can combine the reasoning capability of the language model with the precision of Azure Language's text analysis features—making it well suited for tasks like routing support tickets by detected language or identifying and redacting personally identifiable information (PII).
47+
48+
![Screenshot of the Azure Language in Foundry Tools connected to an agent in the Foundry portal.](../media/language-agent-example.png)
49+
50+
> [!NOTE]
51+
> A Foundry resource provides a unified environment that already includes access to Language tools. You don't need to create a separate Azure Language resource to access the Azure Language MCP server.
3252
3353
Next, try out text analysis in Foundry yourself.
3454

281 KB
Loading
288 KB
Loading
217 KB
Loading

0 commit comments

Comments
 (0)