Skip to content

Commit 946225b

Browse files
committed
Merge branch 'main' into release-gpt-4o-audio-preview
2 parents 711839a + 3b0d54f commit 946225b

File tree

4 files changed

+142
-96
lines changed

4 files changed

+142
-96
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Continuously Monitor your Generative AI Applications
3+
titleSuffix: Azure AI Foundry
4+
description: This article provides instructions on how to continuously monitor Generative AI Applications.
5+
manager: scottpolly
6+
ms.service: azure-ai-studio
7+
ms.custom:
8+
- build-2024
9+
ms.topic: how-to
10+
ms.date: 01/16/2025
11+
ms.reviewer: alehughes
12+
ms.author: lagayhar
13+
author: lgayhardt
14+
---
15+
16+
# Continuously monitor your generative AI applications
17+
18+
[!INCLUDE [feature-preview](../includes/feature-preview.md)]
19+
20+
Continuous advancements in Generative AI have led organizations to build increasingly complex applications to solve various problems (chat-bots, RAG systems, agentic systems, etc.). These applications are being used to drive innovation, improve customer experiences, and enhance decision-making. Although the models (for example, GPT-4o) powering these Generative AI applications are extremely capable, continuous monitoring has never been more important to ensure high-quality, safe, and reliable results. Continuous monitoring is effective when multiple perspectives are considered when observing an application. These perspectives include token usage and cost, operational metrics – latency, request count, etc. - and, importantly, continuous evaluation. To learn more about evaluation, see [Evaluation of generative AI applications](../concepts/evaluation-approach-gen-ai.md).
21+
22+
Azure AI and Azure Monitor provide tools for you to continuously monitor the performance of your Generative AI applications from multiple perspectives. With Azure AI Online Evaluation, you can continuously evaluate your application agnostic of where it's deployed or what orchestration framework it's using (for example, LangChain). You can use various [built-in evaluators](../concepts/evaluation-metrics-built-in.md) which maintain parity with the [Azure AI Evaluation SDK](./develop/evaluate-sdk.md) or define your own custom evaluators. By continuously running the right evaluators over your collected trace data, your team can more effectively identify and mitigate security, quality, and safety concerns as they arise, either in pre-production or post-production. Azure AI Online Evaluation provides full integration with the comprehensive suite of observability tooling available in [Azure Monitor Application Insights](/azure/azure-monitor/app/app-insights-overview), enabling you to build custom dashboards, visualize your evaluation results over time, and configure alerting for advanced application monitoring.
23+
24+
In summary, monitoring your generative AI applications has never been more important, due to the complexity and rapid evolvement of the AI industry. Azure AI Online Evaluation, integrated with Azure Monitor Application Insights, enables you to continuously evaluate your deployed applications to ensure that they're performant, safe, and produce high-quality results in production.
25+
26+
## How to monitor your generative AI applications
27+
28+
In this section, learn how to monitor your generative AI applications using Azure AI Foundry tracing, online evaluation, and trace visualization functionality. Then, learn how Azure AI Foundry integrates with Azure Monitor Application Insights for comprehensive observability and visualization.
29+
30+
### Tracing your generative AI application
31+
32+
The first step in continuously monitoring your application is to ensure that its telemetry data is captured and stored for analysis. To accomplish this, you'll need to instrument your generative AI application’s code to use the [Azure AI Tracing package](./develop/trace-local-sdk.md) to log trace data to an Azure Monitor Application Insights resource of your choice. This package fully conforms with the OpenTelemetry standard for observability. After you have instrumented your application's code, the trace data will be logged to your Application Insights resource.
33+
34+
After you have included tracing in your application code, you can view the trace data in Azure AI Foundry or in your Azure Monitor Application Insights resource. To learn more about how to do this, see [monitor your generative AI application](#monitor-your-generative-ai-application-with-azure-monitor-application-insights).
35+
36+
### Set up online evaluation
37+
38+
After setting up tracing for your generative AI application, set up [online evaluation with the Azure AI Foundry SDK](./online-evaluation.md) to continuously evaluate your trace data as it is collected. Doing so will enable you to monitor your application's performance in production over time.
39+
40+
> [!NOTE]
41+
> If you have multiple AI applications logging trace data to the same Azure Monitor Application Insights resource, it's recommended to use the service name to differentiate between application data in Application Insights. To learn how to set the service name, see [Azure AI Tracing](./develop/trace-local-sdk.md). To learn how to query for the service name within your online evaluation configuration, see [using service name in trace data](./online-evaluation.md#using-service-name-in-trace-data).
42+
43+
### Monitor your generative AI application with Azure Monitor Application Insights
44+
45+
In this section, you learn how Azure AI integrates with Azure Monitor Application Insights to give you an out-of-the-box dashboard view that is tailored with insights regarding your generative AI app so you can stay updated with the latest status of your application.
46+
47+
#### Insights for your generative AI application
48+
49+
If you haven’t set this up, here are some quick steps:
50+
51+
1. Navigate to your project in [Azure AI Foundry](https://ai.azure.com).
52+
1. Select the Tracing page on the left-hand side.
53+
1. Connect your Application Insights resource to your project.
54+
55+
If you already set up tracing in Azure AI Foundry portal, all you need to do is select the link to **Check out your Insights for Generative AI application dashboard**.
56+
57+
Once you have your data streaming into your Application Insights resource, you automatically can see it get populated in this customized dashboard.
58+
59+
:::image type="content" source="../media/how-to/online-evaluation/open-generative-ai-workbook.gif" alt-text="Animation of an Azure workbook showing Application Insights." lightbox="../media/how-to/online-evaluation/open-generative-ai-workbook.gif":::
60+
61+
This view is a great place for you to get started with your monitoring needs.
62+
63+
- You can view token consumption over time to understand if you need to increase your usage limits or do additional cost analysis.
64+
- You can view evaluation metrics as trend lines to understand the quality of your app on a daily basis.
65+
- You can debug when exceptions take place and drill into traces using the **Azure Monitor End-to-end transaction details view** to figure out what went wrong.
66+
67+
:::image type="content" source="../media/how-to/online-evaluation/custom-generative-ai-workbook.gif" alt-text="Animation of an Azure workbook showing graphs and end to end transaction details." lightbox="../media/how-to/online-evaluation/custom-generative-ai-workbook.gif":::
68+
69+
This is an Azure Workbook that is querying data stored in your Application Insights resource. You can customize this workbook and tailor this to fit your business needs.
70+
To learn more, see [editing Azure Workbooks](/azure/azure-monitor/visualize/workbooks-create-workbook).
71+
72+
This allows you to add additional custom evaluators that you might have logged or other markdown text to share summaries and use for reporting purposes.
73+
74+
You can also share this workbook with your team so they stay informed with the latest!
75+
76+
:::image type="content" source="../media/how-to/online-evaluation/share-azure-workbook.png" alt-text="Screenshot of an Azure Workbook showing the share button and share tab." lightbox="../media/how-to/online-evaluation/share-azure-workbook.png":::
77+
78+
> [!NOTE]
79+
> When sharing this workbook with your team members, they must have at least 'Reader' role to the connected Application Insights resource to view the displayed information.
80+
81+
## Related content
82+
83+
- [How to run evaluations online with the Azure AI Foundry SDK](./online-evaluation.md)
84+
- [Trace your application with Azure AI Inference SDK](./develop/trace-local-sdk.md)
85+
- [Visualize your traces](./develop/visualize-traces.md)
86+
- [Evaluation of Generative AI Models & Applications](../concepts/evaluation-approach-gen-ai.md)
87+
- [Azure Monitor Application Insights](/azure/azure-monitor/app/app-insights-overview)
88+
- [Azure Workbooks](/azure/azure-monitor/visualize/workbooks-overview)

0 commit comments

Comments
 (0)