WhoBuilt

Creating and scaling your own custom copilots with Azure AI Studio

Feb 6, 2025· 24 min· 318 views·Watch on YouTube

Speaker

Hanchi Wang, a software engineering lead at Microsoft Azure AI, explains how Azure AI Studio and Prompt flow help engineers build, evaluate, and monitor AI applications.

Building beyond the model

Wang says enterprise AI applications need domain knowledge and tools, as well as safeguards, evaluation, and ongoing monitoring. She introduces Azure AI Studio as a development platform and Prompt flow as a set of tools for building and testing applications. Prompt flow is open source and can run locally, with cloud collaboration and asset tracking available through Azure AI Studio.

Tracing an AI chatbot

Wang demonstrates a chatbot that answers questions about an outdoor equipment company's sales data. It uses an Assistant API with one tool to turn questions into SQL and retrieve data, and a code interpreter to create charts. Prompt flow traces capture inputs, outputs, and LLM interactions; its local UI lets developers inspect a request from the chat response down to the generated SQL and chart code.

Evaluating quality and model choices

Wang evaluates the SQL tool using a prepared dataset of questions and ground-truth queries. The evaluation combines a content safety check with custom measures for execution time, error rate, and SQL similarity. In her comparison, GPT-4 Turbo was slowest but had the highest SQL similarity, while Mistral Large was faster and had the same error rate; she judged GPT-4 Turbo the best fit when speed was not a concern.

Monitoring production workloads

Wang says deployment starts a new phase of engineering work: monitoring individual requests and overall system behavior. Her example dashboard uses traces collected in Application Insights to show performance, usage, and failures. It showed GPT-4 Turbo taking longer, most tokens going to prompts, and traces available for investigating failures.

Takeaways

  • Instrument LLM calls and tools so you can trace how an answer was produced.
  • Build a representative test dataset and evaluate quality, safety, speed, and errors regularly.
  • Compare models on your own workload; benchmark rankings alone may not identify the best fit.
  • Use production telemetry to find latency, prompt-token costs, and failures that evaluations may miss.

Mentioned in this talk

Search inside this talk

What was claimed 11

Related talks