Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

Develop AI apps with Python

  • Article
  • 2025-05-17
Feedback

In this article

This article contains an organized list of the best learning resources for Python developers who are getting started building AI apps. Resources include popular quickstart articles, reference samples, documentation, training courses, and so on.

Resources for Azure OpenAI Service

Azure OpenAI Service provides REST API access to OpenAI's powerful language models. These models can be easily adapted to your specific task including but not limited to content generation, summarization, image understanding, semantic search, and natural language to code translation. Users can access the service through REST APIs, the OpenAI SDK, or via theAzure AI Foundry portal.

[!INFO]While OpenAI and Azure OpenAI Service rely on acommon Python client library, small code changes are needed when using Azure OpenAI endpoints.

SDKs and libraries

LinkDescription
OpenAI SDK for PythonThe GitHub source code version of the OpenAI Python library provides convenient access to the OpenAI API from applications written in the Python language.
OpenAI Python PackageThe PyPi version of the OpenAI Python library.

Samples

LinkDescription
Getting Started with Agents Using Azure AI FoundryThis sample deploys a web-based chat application with an AI agent running in Azure Container Apps. The agent leverages the Azure AI Agent service and utilizes Azure AI Search for knowledge retrieval from uploaded files, enabling it to generate responses with citations. The solution also includes built-in monitoring capabilities with tracing to ensure easier troubleshooting and optimized performance.
AI Travel AgentsTheAI Travel Agents is a robust enterprise application that leverages multiple AI agents to enhance travel agency operations. The application demonstrates how six AI agents collaborate to assist employees in handling customer queries, providing destination recommendations, and planning itineraries.
Chat Application using DeepSeek-R1 (Python)This sample Python app uses the openai client library to call the DeepSeek-R1 model to generate responses to user messages.
Chat + Vision using Azure OpenAI (Python)This sample includes a Python app that uses Azure OpenAI to generate responses to user messages and uploaded images.
Evaluating a RAG Chat AppThis sample contains scripts and tools for evaluating a chat app that uses the RAG architecture. There are many parameters that affect the quality and style of answers generated by the chat app, such as the system prompt, search parameters, and GPT model parameters.
Streaming Chat completionsA notebook containing example of getting chat completions to work using the Azure endpoints. This example focuses on chat completions but also touches on some other operations that are also available using the API.
EmbeddingsA notebook demonstrating operations how to use embeddings that can be done using the Azure endpoints. This example focuses on embeddings but also touches some other operations that are also available using the API.
Deploy a model and generate textAn article with minimal, straightforward detailing steps to programmatically chat.
OpenAI with Microsoft Entra ID Role based access controlA look at authentication using Microsoft Entra ID.
OpenAI with Managed IdentitiesAn article with more complex security scenarios requires Azure role-based access control (Azure RBAC). This document covers how to authenticate to your OpenAI resource using Microsoft Entra ID.
More samplesA compilation of useful Azure OpenAI Service resources and code samples to help you get started and accelerate your technology adoption journey.

Documentation

LinkDescription
Azure OpenAI Service DocumentationThe hub page for Azure OpenAI Service documentation.
Quickstart: Get started generating text using Azure OpenAI ServiceA very quick set of instructions to set up the services you need and code you must write to prompt a model using Python.
Switch from OpenAI to Azure OpenAIGuidance article on the small changes you need to make to your code in order to swap back and forth between OpenAI and the Azure OpenAI Service.
Quickstart: Get started using GPT-35-Turbo and GPT-4 with Azure OpenAI ServiceSimilar to the previous quickstart, but provides an example of system, assistant and user roles to tailor the content when asked certain questions.
Quickstart: Chat with Azure OpenAI models using your own dataSimilar to the first quickstart, but this time you add your own data (like a PDF or other document).
Quickstart: Get started using Azure OpenAI Assistants (Preview)Similar to the first quickstart in this list, but this time you tell the model to use the built-in Python code interpreter to solve math problems step by step. This is a starting point to using your own AI assistants accessed through custom instructions.
Quickstart: Use images in your AI chatsHow to programmatically ask the model to describe the contents of an image.
Quickstart: Generate images with Azure OpenAI ServiceProgrammatically generate images using Dall-E based on a prompt.

Resources for other Azure AI services

In addition to Azure OpenAI Service, there are many other Azure AI services that help developers and organizations rapidly create intelligent, market-ready, and responsible applications with out-of-the-box and prebuilt customizable APIs and models. Example applications include natural language processing for conversations, search, monitoring, translation, speech, vision, and decision-making.

Samples

LinkDescription
Integrate Speech into your apps with Speech SDK SamplesSamples for the Azure Cognitive Services Speech SDK. Links to samples for speech recognition, translation, speech synthesis, and more.
Azure AI Document Intelligence SDKAzure AI Document Intelligence (formerly Form Recognizer) is a cloud service that uses machine learning to analyze text and structured data from documents. The Document Intelligence software development kit (SDK) is a set of libraries and tools that enable you to easily integrate Document Intelligence models and capabilities into your applications.
Extract structured data from forms, receipts, invoices, and cards using Form Recognizer in PythonSamples for the Azure.AI.FormRecognizer client library.
Extract, classify, and understand text within documents using Text Analytics in PythonThe client Library for Text Analytics. This is part of theAzure AI Language service, which provides Natural Language Processing (NLP) features for understanding and analyzing text.
Document Translation in PythonA quickstart article that uses Document Translation to translate a source document into a target language while preserving structure and text formatting.
Question Answering in PythonA quickstart article with steps to get an answer (and confidence score) from a body of text that you send along with your question.
Conversational Language Understanding in PythonThe client library for Conversational Language Understanding (CLU), a cloud-based conversational AI service, which can extract intents and entities in conversations and acts like an orchestrator to select the best candidate to analyze conversations to get best response from apps like Qna, Luis, and Conversation App.
Analyze imagesSample code and setup documents for the Microsoft Azure AI Image Analysis SDK
Azure AI Content Safety SDK for PythonDetects harmful user-generated and AI-generated content in applications and services. Content Safety includes text and image APIs that allow you to detect material that is harmful.

Documentation

AI serviceDescriptionAPI referenceQuickstart
Content SafetyAn AI service that detects unwanted content.Content Safety API referenceQuickstart
Document IntelligenceTurn documents into intelligent data-driven solutions.Document Intelligence API referenceQuickstart
LanguageBuild apps with industry-leading natural language understanding capabilities.Text Analytics API referenceQuickstart
SearchBring AI-powered cloud search to your applications.Search API referenceQuickstart
SpeechSpeech to text, text to speech, translation, and speaker recognition.Speech API referenceQuickstart
TranslatorUse AI-powered translation to translate more than 100 in-use, at-risk and endangered languages and dialects.Translation API referenceQuickstart
VisionAnalyze content in images and videos.Image Analysis API referenceQuickstart

Training

LinkDescription
Generative AI for Beginners WorkshopLearn the fundamentals of building Generative AI apps with our 18-lesson comprehensive course by Microsoft Cloud Advocates.
AI Agents for Beginners WorkshopLearn the fundamentals of building Generative AI agents with our 10-lesson comprehensive course by Microsoft Cloud Advocates.
Get started with Azure AI ServicesAzure AI Services is a collection of services that are building blocks of AI functionality you can integrate into your applications. In this learning path, you'll learn how to provision, secure, monitor, and deploy Azure AI Services resources and use them to build intelligent solutions.
Microsoft Azure AI Fundamentals: Generative AITraining path to help you understand how large language models form the foundation of generative AI: how Azure OpenAI Service provides access to the latest generative AI technology, how prompts and responses can be fine-tuned and how Microsoft's responsible AI principles drive ethical AI advancements.
Develop Generative AI solutions with Azure OpenAI ServiceAzure OpenAI Service provides access to OpenAI's powerful large language models such as ChatGPT, GPT, Codex, and Embeddings models. This learning path teaches developers how to generate code, images, and text using the Azure OpenAI SDK and other Azure services.
Build AI apps with Azure Database for PostgreSQLThis learning path explores how the Azure AI and Azure Machine Learning Services integrations provided by the Azure AI extension for Azure Database for PostgreSQL - Flexible Server can enable you to build AI-powered apps.

AI app templates

AI app templates provide you with well-maintained, easy to deploy reference implementations that provide a high-quality starting point for your AI apps.

There are two categories of AI app templates,building blocks andend-to-end solutions. Building blocks are smaller-scale samples that focus on specific scenarios and tasks. End-to-end solutions are comprehensive reference samples including documentation, source code, and deployment to allow you to take and extend for your own purposes.

To review a list of key templates available for each programming language, seeAI app templates. To browse all available templates, see the AI app templates on theAI App Template gallery.


Feedback

Was this page helpful?

YesNo

In this article