AI on Azure: platforms for apps and agents
This article, part three of the AI on Azure series, explores building blocks for AI applications beyond just model endpoints. It outlines how to combine various Azure services to create robust AI solutions. The core idea is to layer components, not choose competing products.A fundamental AI application might directly call a model, but complexity demands more. An orchestration layer is added for multi-step processes, tool integration, shared state, or defined workflows. Retrieval is introduced when models need access to current or private information. For tasks already covered by focused services, task-specific APIs are preferable.Microsoft Foundry offers a unified platform for model discovery and application development. Foundry Agent Service provides managed runtimes for agents, handling their execution, scaling, and identity, while the developer defines tool usage and data access. Microsoft Agent Framework, a code-based successor to Semantic Kernel and AutoGen, is another option for building agents and workflows. Semantic Kernel remains relevant for existing applications.Azure AI Search is crucial for grounding AI answers using retrieval-augmented generation (RAG). It supports both keyword and vector retrieval, enabling hybrid queries for better relevance. Classic RAG offers direct control, while Agentic retrieval uses an LLM for more complex search planning.Content safety is addressed by Azure AI Content Safety, which offers APIs for moderating text and images, including prompt attack detection. However, these tools do not guarantee accuracy or replace authorization and human review. Several preview features of Content Safety are scheduled for retirement, requiring careful migration planning.Foundry Tools provide APIs for specific tasks like speech transcription, image analysis, and document extraction, often proving simpler and more efficient than using general-purpose models. Ultimately, building an AI application involves integrating these pieces, such as authenticating users, retrieving data, calling models, and evaluating results, with clear ownership defined for each component.