Skip to content

Commit a58ccf3

Browse files
authored
Merge pull request #281374 from ecfan/parse-chunk
Parse chunk
2 parents ea5bbdd + 6b6f3f3 commit a58ccf3

File tree

9 files changed

+248
-21
lines changed

9 files changed

+248
-21
lines changed

articles/logic-apps/connectors/azure-ai.md

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
11
---
2-
title: Integrate Azure AI services with your workflows
3-
description: Integrate data in Standard workflows with Azure OpenAI and Azure AI Search for Azure Logic Apps.
2+
title: Connect to Azure AI services from workflows
3+
description: Integrate with Azure OpenAI and Azure AI Search in Standard workflows for Azure Logic Apps.
44
author: ecfan
55
services: logic-apps
66
ms.suite: integration
7+
ms.collection: ce-skilling-ai-copilot
78
ms.reviewer: estfan, azla
89
ms.topic: how-to
9-
ms.date: 02/29/2024
10+
ms.date: 07/23/2024
1011
---
1112

12-
# Integrate Azure AI services with Standard workflows in Azure Logic Apps (preview)
13+
# Connect to Azure AI services from Standard workflows in Azure Logic Apps (Preview)
1314

1415
[!INCLUDE [logic-apps-sku-standard](../../../includes/logic-apps-sku-standard.md)]
1516

1617
> [!NOTE]
1718
> This capability is in preview and is subject to the
1819
> [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
1920
20-
To integrate enterprise data and services with AI technologies, you can use the Azure OpenAI and Azure AI Search built-in connectors in automated Standard logic app workflows. These connectors support multiple authentication types, such as API keys, Microsoft Entra ID, and managed identities. They can also connect to Azure OpenAI Service and Azure AI Search endpoints behind firewalls so that your workflows securely connect to your AI resources in Azure.
21+
To integrate enterprise data and services with AI technologies, you can use the **Azure OpenAI** and **Azure AI Search** built-in connectors in Standard logic app workflows. These connectors support multiple authentication types, such as API keys, Microsoft Entra ID, and managed identities. They also can connect to Azure OpenAI Service and Azure AI Search endpoints behind firewalls so that your workflows securely connect to your AI resources in Azure.
2122

22-
This guide provides an overview and examples for how to use the Azure OpenAI and Azure AI Search connector operations in your workflow.
23+
This guide provides an overview and examples for how to use the **Azure OpenAI** and **Azure AI Search** connector operations in your workflow.
2324

2425
- [What is Azure OpenAI Service](../../ai-services/openai/overview.md)
2526
- [What is Azure AI Search](../../search/search-what-is-azure-search.md)
2627

27-
## Why use Azure Logic Apps to integrate with AI services?
28+
## Why use Azure Logic Apps with AI services?
2829

2930
Usually, building AI solutions involves several key steps and requires a few building blocks. Primarily, you need to have a dynamic ingestion pipeline and a chat interface that can communicate with large language models (LLMs) and vector databases.
3031

32+
> [!TIP]
33+
>
34+
> To learn more, you can ask Azure Copilot these questions:
35+
>
36+
> - *What is a dynamic ingestion pipeline in AI?*
37+
> - *What is a vector database in AI?*
38+
>
39+
> To find Azure Copilot, on the [Azure portal](https://portal.azure.com) toolbar, select **Copilot**.
40+
3141
You can assemble various components, not only to perform data ingestion but also to provide a robust backend for the chat interface. This backend facilitates entering prompts and generates dependable responses during interactions. However, creating the code to manage and control all these elements can prove challenging, which is the case for most solutions.
3242

3343
Azure Logic Apps offers a low code approach and simplifies backend management by providing prebuilt connectors that you use as building blocks to streamline the backend process. This approach lets you focus on sourcing your data and making sure that search results provide current and relevant information. With these AI connectors, your workflow acts as an orchestration engine that transfers data between AI services and other components that you want to integrate.
@@ -42,15 +52,24 @@ For more information, see the following resources:
4252

4353
### Azure OpenAI
4454

45-
Azure OpenAI Service provides access to [OpenAI's language models](https://openai.com/product), which include GPT-4, GPT-4 Turbo with Vision, GPT-3.5-Turbo, and the Embeddings model series. With the Azure OpenAI connector, your workflow can connect to Azure OpenAI Service and get OpenAI embeddings for your data or generate chat completions.
55+
Azure OpenAI Service provides access to [OpenAI's language models](https://openai.com/product), which include GPT-4, GPT-4 Turbo with Vision, GPT-3.5-Turbo, and the Embeddings model series. With the **Azure OpenAI** connector, your workflow can connect to Azure OpenAI Service and get OpenAI embeddings for your data or generate chat completions.
56+
57+
> [!TIP]
58+
>
59+
> To learn more, you can ask Azure Copilot these questions:
60+
>
61+
> - *What is an embedding in AI?*
62+
> - *What is a chat completion in AI?*
63+
>
64+
> To find Azure Copilot, on the [Azure portal](https://portal.azure.com) toolbar, select **Copilot**.
4665
4766
| Logic app | Environment | Connector version |
4867
|-----------|-------------|-------------------|
4968
| **Standard** | Single-tenant Azure Logic Apps and App Service Environment v3 (Windows plans only) | Built-in connector, which appears in the connector gallery under **Runtime** > **In-App** and is [service provider-based](../custom-connector-overview.md#service-provider-interface-implementation). The built-in connector can directly access Azure virtual networks without using an on-premises data gateway. <br><br>For more information, see [Azure OpenAI built-in connector reference](/azure/logic-apps/connectors/built-in/reference/openai). |
5069

5170
### Azure AI Search
5271

53-
Azure AI Search is platform for AI-powered information retrieval that helps developers build rich search experiences and generative AI apps by combining large language models with enterprise data. With the Azure AI Search connector, your workflow can connect to Azure AI Search to index documents and perform vector searches on your data.
72+
Azure AI Search is platform for AI-powered information retrieval that helps developers build rich search experiences and generative AI apps by combining large language models with enterprise data. With the **Azure AI Search** connector, your workflow can connect to Azure AI Search to index documents and perform vector searches on your data.
5473

5574
| Logic app | Environment | Connector version |
5675
|-----------|-------------|-------------------|
@@ -145,12 +164,13 @@ Each step in this pattern makes sure that the AI seamlessly extracts all the cru
145164
| 1 | Check for new data. | **When an HTTP request is received** | A trigger that either polls or waits for new data to arrive, either based on a scheduled recurrence or in response to specific events respectively. Such an event might be a new file that's uploaded to a specific storage system, such as SharePoint, OneDrive, or Azure Blob Storage. <br><br>In this example, the **Request** trigger operation waits for an HTTP or HTTPS request sent from another endpoint. The request includes the URL for a new uploaded document. |
146165
| 2 | Get the data. | **HTTP** | An **HTTP** action that retrieves the uploaded document using the file URL from the trigger output. |
147166
| 3 | Compose document details. | **Compose** | A **Data Operations** action that concatenates various items. <br><br>This example concatenates key-value information about the document. |
148-
| 4 | Tokenize the data. | **HTTP** | An **HTTP** action that calls a custom Azure function that [batches and tokenizes](../../ai-services/openai/overview.md#tokens) the output from the **Compose** action. |
149-
| 5 | Convert tokenized data to JSON. | **Parse JSON** | A **Data Operations** action that converts the tokenized string output into a JSON array. |
150-
| 6 | Select JSON array items. | **Select** | A **Data Operations** action that selects multiple items from the JSON array. |
151-
| 7 | Generate the embeddings. | **Get multiple embeddings** | An **Azure OpenAI** action that creates embeddings for each JSON array item. |
152-
| 8 | Select embeddings and other information. | **Select** | A **Data Operations** action that selects embeddings and other document information. |
153-
| 9 | Index the data. | **Index documents** | An **Azure AI Search** action that indexes the data based on each selected embedding. |
167+
| 4 | Create token string. | **Parse a document** | A **Data Operations** action that produces a [token string](../../ai-services/openai/overview.md#tokens) using the output from the **Compose** action. |
168+
| 5 | Create content chunks. | **Chunk text** | A **Data Operations** action that splits the token string into pieces, based on either the number of characters or tokens per content chunk. |
169+
| 6 | Convert tokenized data to JSON. | **Parse JSON** | A **Data Operations** action that converts the token string chunks into a JSON array. |
170+
| 7 | Select JSON array items. | **Select** | A **Data Operations** action that selects multiple items from the JSON array. |
171+
| 8 | Generate the embeddings. | **Get multiple embeddings** | An **Azure OpenAI** action that creates embeddings for each JSON array item. |
172+
| 9 | Select embeddings and other information. | **Select** | A **Data Operations** action that selects embeddings and other document information. |
173+
| 10 | Index the data. | **Index documents** | An **Azure AI Search** action that indexes the data based on each selected embedding. |
154174

155175
### Chat workflow
156176

2.72 KB
Loading
31.3 KB
Loading
43.4 KB
Loading
20.3 KB
Loading
61.4 KB
Loading
73.5 KB
Loading

0 commit comments

Comments
 (0)