Streamlining the development of AI through Azure AI Studio.

Streamlining the development of AI through Azure AI Studio.

Over the course of several years, Microsoft Azure has played a central role in realizing Microsoft’s AI objectives. Initially, it involved making Microsoft Research's deep learning products accessible as Azure Cognitive Services. Subsequently, tools were introduced to facilitate the creation of customized, cloud-hosted machine learning solutions, enabling users to train models and deploy resulting services on Azure. Presently, Azure serves as the platform for Microsoft’s expanding family of Copilots, leveraging Azure OpenAI’s generative AI models and granting users access to these models. To accommodate these diverse tools and provide a framework for tailoring cloud service models, Azure had to support more than one development environment. The outcome was a complex and challenging-to-grasp system. Fortunately, the Azure AI team has been diligently working on a replacement called Azure AI Studio. This new platform unifies Azure’s AI development tools, emphasizing responsible AI practices and supporting a blend of predefined and custom AI models. The development of Azure AI Studio marks a fundamental shift in how we interact with AI models. Instead of merely making API calls to individual models, we are now constructing pipelines that blend different facets of a model or even link various models to create a multimodal application. Essential frameworks such as Lang Chain, Semantic Kernel, and Prompt Flow are employed to manage and guide the output of generative AI, anchoring it in our own data. For instance, we can design a computer vision application that identifies objects in an image, inputting that information into a generative AI language model to generate a textual description of the image. Subsequently, a voice generator can be utilized to read that description to a visually impaired user holding a camera.

Introducing Azure AI Studio

Consequently, Microsoft is consolidating its diverse Azure AI development tools into a unified environment known as Azure AI Studio. Unveiled during a public preview at Ignite 2023, Azure AI Studio presently focuses on constructing Copilots, Microsoft's term for applications powered by generative AI. The Studio incorporates support for mixed-model multi-modal tools and the Azure AI SDK. The primary objective is to enable experimentation within the Studio before transitioning refined models into production services. During the public preview of Azure AI Studio, the utilization of Azure OpenAI models in your application necessitates approval from Microsoft. This entails engagement in a project for an approved enterprise customer, involving collaboration with a Microsoft account team. Additionally, a specific use case for your project is required to determine access scope for both you and your users. For instance, if your application involves sensitive data, restrictions may be imposed, limiting access to internal users on secured internal networks. Azure AI Studio operates as a standalone service external to the Azure Portal, eliminating the need to create a new resource. A simple log-in with an Azure account initiates the work. The introductory home screen in AI Studio provides access to a model catalog and the Azure OpenAI service. Other options include links to familiar Cognitive Services APIs and content safety tools, minimizing the risk of inappropriate materials in training data or prompts for AI-powered applications. Azure AI Studio is organized into four tabs: Home, Explore, Build, and Manage. The Home tab features links to the rest of the service and showcases various sample projects hosted on GitHub. These projects serve as foundational frameworks to kickstart your coding endeavors. One such sample demonstrates how to construct an Azure AI-powered Copilot, while another guides you on integrating different AI services to create a multimodal application.

Building AI applications in Azure AI Studio

Commencing your journey is straightforward. It begins by establishing a dedicated AI resource to oversee the VMs and services integral to your application. Azure AI Studio guides you through a familiar Azure setup wizard, constructing this resource and its associated AI services. Notably, the default setup incorporates the newly named Azure AI Search (formerly Azure Cognitive Search). This choice suggests Microsoft is adopting a specific stance on AI application architectures, necessitating an external configuration of embeddings to anchor your application and mitigate the risk of "hallucinations" resulting from prompt overruns. Next, you can integrate an AI model into your Azure AI Studio instance, such as an Azure OpenAI generative AI model. This addition becomes part of the resource group designated for your AI application, ensuring controlled network access to prevent unauthorized API access. This allows you to restrict access to a specific VNet, ensuring that the only access is from your application. For added control, you can eliminate public network access entirely and establish private endpoints on specific subnets. A diverse catalog of models is available, extending beyond OpenAI to include support for Meta's Llama, open-source models on Hugging Face, Nvidia's foundational models, and those from Microsoft Research. You can select models directly or utilize a list of inference tasks to tailor the model to your project's requirements. The interactive catalog enables you to test basic interactions before incorporating a model into your project. Creating an AI-powered application in Azure AI Studio is a straightforward process. Once you've configured a deployment and chosen your model, it is ready for use. A simple playground facilitates testing prompts and model operations, such as exploring completions or conducting an AI-driven chat session. Initially, as you won't be using the model with your own data, it provides generic responses. Once satisfied with the basic prompts and model performance, you can enhance its behavior by incorporating data. Data sources can include uploaded files, Azure Blob storage, or an Azure AI Search index. The latter option permits quick integration of a pre-processed vector index, enhancing accuracy and speed. File types accepted encompass PowerPoint, Word, PDF, HTML, Markdown, and raw text. Azure AI Studio ensures constant cost visibility throughout the process, enabling informed decisions about feature enablement, including the use of vector search. Following data ingestion, the playground facilitates retesting the model's responses, now grounded in the incorporated data. The model can then be deployed as a web app for further testing, with the option to add authentication for other tenant users via Entra ID. At this juncture, you can export the playground contents to Prompt Flow for additional development.

Chaining models, prompts, and APIs with Prompt Flow

Prompt Flow serves as Azure AI Studio's tool for linking models, prompts, and APIs to construct intricate AI-powered applications. It provides the means to handle system-level prompts, user input, and services, incorporating them into a flow structure similar to Semantic Kernel or Lang Chain. With Prompt Flow, you gain a visual representation of your application's components and their interconnections, enabling the construction and debugging of Copilot-like services by linking nodes that execute specific functions. These functions may involve Python, allowing the integration of data science tools. While it is possible to build flows from scratch, Prompt Flow includes a set of fundamental templates that offer the essential framework for further development. These templates encompass structures for creating extended conversations with a memory of past interactions. Utilizing Prompt Flow enables you to work seamlessly in both Azure AI Studio and Visual Studio Code, providing flexibility in your choice of development environment. Although a code-based approach forfeits the visual flow graph, with connections and flow elements defined in YAML, the Prompt Flow extension for VS Code not only facilitates working with the code of your flow contents but also provides a visual editor and a view of your flow graph. Although Azure AI Studio is still in preview, it already presents an intriguingly opinionated perspective on AI application development. Microsoft's suite of AI tools reflects the company's comprehensive adoption of generative AI, incorporating lessons learned from creating reliable Copilots. The outcome holds the promise of a streamlined path to integrate generative AI into your applications and data.

Conclusion

In conclusion, Azure AI Studio, with its innovative tool Prompt Flow, emerges as a powerful platform for the development of sophisticated AI applications. The tool facilitates the chaining of models, prompts, and APIs, providing a visual representation of the application's structure and enabling the construction of complex AI-powered services. With a focus on system-level prompts, user input, and service management, Prompt Flow streamlines the development process, offering both a visual view and code-based approaches for flexibility. The inclusion of Python and the availability of basic templates further enhance the development experience, allowing users to build from scratch or leverage pre-existing structures. This integration extends into popular development environments like Azure AI Studio and Visual Studio Code, offering developers the choice of their preferred workspace. While still in preview, Azure AI Studio showcases Microsoft's committed stance on AI application development, emphasizing generative AI and drawing from the company's experiences in creating reliable Copilots. The result is a promising path for developers seeking to seamlessly integrate generative AI into their applications and data, with the potential to significantly expedite the deployment of advanced AI solutions.



要查看或添加评论,请登录

Expanz.的更多文章

社区洞察

其他会员也浏览了