You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs: Updating Microsoft Provider Documentation to Include Azure AI (#31467)
This PR adds documentation to our Microsft Provider page for LangChain
Azure AI. This PR does not add any extra dependencies or require any
tests besides passing CI.
Copy file name to clipboardExpand all lines: docs/docs/integrations/providers/microsoft.mdx
+58-3Lines changed: 58 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,15 @@ keywords: [azure]
4
4
5
5
# Microsoft
6
6
7
-
All functionality related to `Microsoft Azure` and other `Microsoft` products.
7
+
All functionality related to [Microsoft Azure](https://portal.azure.com) and other [Microsoft](https://www.microsoft.com) products.
8
8
9
-
## Chat Models
9
+
## Chat Models
10
+
11
+
Microsoft offers three main options for accessing chat models through Azure:
12
+
13
+
1.[Azure OpenAI](https://learn.microsoft.com/en-us/azure/ai-services/openai/) - Provides access to OpenAI's powerful models like o3, 4.1, and other models through Microsoft Azure's secure enterprise platform.
14
+
2.[Azure AI](https://learn.microsoft.com/en-us/azure/ai-studio/how-to/deploy-models) - Offers access to a variety of models from different providers including Anthropic, DeepSeek, Cohere, Phi and Mistral through a unified API.
15
+
3.[Azure ML](https://learn.microsoft.com/en-us/azure/machine-learning/) - Allows deployment and management of your own custom models or fine-tuned open-source models with Azure Machine Learning.
See a [usage example](/docs/integrations/chat/azure_chat_openai)
31
37
32
-
33
38
```python
34
39
from langchain_openai import AzureChatOpenAI
35
40
```
36
41
42
+
### Azure AI
43
+
44
+
>[Azure AI Foundry](https://learn.microsoft.com/en-us/azure/developer/python/get-started) provides access to a wide range of models from various providers including Azure OpenAI, DeepSeek R1, Cohere, Phi and Mistral through the `AzureAIChatCompletionsModel` class.
45
+
46
+
```bash
47
+
pip install -U langchain-azure-ai
48
+
```
49
+
50
+
Configure your API key and Endpoint.
51
+
52
+
```bash
53
+
export AZURE_INFERENCE_CREDENTIAL=your-api-key
54
+
export AZURE_INFERENCE_ENDPOINT=your-endpoint
55
+
```
56
+
57
+
```python
58
+
from langchain_azure_ai.chat_models import AzureAIChatCompletionsModel
59
+
60
+
llm = AzureAIChatCompletionsModel(
61
+
model_name="gpt-4o",
62
+
api_version="2024-05-01-preview",
63
+
)
64
+
```
65
+
66
+
See a [usage example](/docs/integrations/chat/azure_ai)
67
+
37
68
### Azure ML Chat Online Endpoint
38
69
39
70
See the documentation [here](/docs/integrations/chat/azureml_chat_endpoint) for accessing chat
@@ -59,6 +90,9 @@ from langchain_openai import AzureOpenAI
59
90
```
60
91
61
92
## Embedding Models
93
+
94
+
Microsoft offers two main options for accessing embedding models through Azure:
95
+
62
96
### Azure OpenAI
63
97
64
98
See a [usage example](/docs/integrations/text_embedding/azureopenai)
@@ -67,6 +101,27 @@ See a [usage example](/docs/integrations/text_embedding/azureopenai)
67
101
from langchain_openai import AzureOpenAIEmbeddings
68
102
```
69
103
104
+
### Azure AI
105
+
106
+
```bash
107
+
pip install -U langchain-azure-ai
108
+
```
109
+
110
+
Configure your API key and Endpoint.
111
+
112
+
```bash
113
+
export AZURE_INFERENCE_CREDENTIAL=your-api-key
114
+
export AZURE_INFERENCE_ENDPOINT=your-endpoint
115
+
```
116
+
117
+
```python
118
+
from langchain_azure_ai.embeddings import AzureAIEmbeddingsModel
0 commit comments