Microsoft
All functionality related to Microsoft Azure and other Microsoft products.
Chat Models
Azure OpenAI
Microsoft Azure, often referred to as
Azureis a cloud computing platform run byMicrosoft, which offers access, management, and development of applications and services through global data centers. It provides a range of capabilities, including software as a service (SaaS), platform as a service (PaaS), and infrastructure as a service (IaaS).Microsoft Azuresupports many programming languages, tools, and frameworks, including Microsoft-specific and third-party software and systems.
Azure OpenAI is an
Azureservice with powerful language models fromOpenAIincluding theGPT-3,CodexandEmbeddings modelseries for content generation, summarization, semantic search, and natural language to code translation.
pip install langchain-openai
Set the environment variables to get access to the Azure OpenAI service.
import os
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://<your-endpoint.openai.azure.com/"
os.environ["AZURE_OPENAI_API_KEY"] = "your AzureOpenAI key"
See a usage example
from langchain_openai import AzureChatOpenAI
Azure ML Chat Online Endpoint
See the documentation here for accessing chat models hosted with Azure Machine Learning.
LLMs
Azure ML
See a usage example.
from langchain_community.llms.azureml_endpoint import AzureMLOnlineEndpoint
Azure OpenAI
See a usage example.
from langchain_openai import AzureOpenAI
Embedding Models
Azure OpenAI
See a usage example
from langchain_openai import AzureOpenAIEmbeddings
Document loaders
Azure AI Data
Azure AI Studio provides the capability to upload data assets to cloud storage and register existing data assets from the following sources:
Microsoft OneLakeAzure Blob StorageAzure Data Lake gen 2
First, you need to install several python packages.
pip install azureml-fsspec, azure-ai-generative
See a usage example.
from langchain.document_loaders import AzureAIDataLoader
Azure AI Document Intelligence
Azure AI Document Intelligence (formerly known as
Azure Form Recognizer) is machine-learning based service that extracts texts (including handwriting), tables, document structures, and key-value-pairs from digital or scanned PDFs, images, Office and HTML files.Document Intelligence supports
JPEG/JPG,PNG,BMP,TIFF,HEIF,DOCX,XLSX,PPTXandHTML.
First, you need to install a python package.
pip install azure-ai-documentintelligence
See a usage example.
from langchain.document_loaders import AzureAIDocumentIntelligenceLoader