diff --git a/docs/docs/integrations/chat/azure_chat_openai.ipynb b/docs/docs/integrations/chat/azure_chat_openai.ipynb index 5e3f60ef6e..913d81479c 100644 --- a/docs/docs/integrations/chat/azure_chat_openai.ipynb +++ b/docs/docs/integrations/chat/azure_chat_openai.ipynb @@ -23,13 +23,11 @@ ] }, { - "cell_type": "raw", + "cell_type": "code", + "execution_count": null, "id": "d83ba7de", - "metadata": { - "vscode": { - "languageId": "raw" - } - }, + "metadata": {}, + "outputs": [], "source": [ "%pip install -qU langchain-openai" ] diff --git a/docs/docs/integrations/llms/azure_openai.ipynb b/docs/docs/integrations/llms/azure_openai.ipynb index 85a95912e0..44af56a2f2 100644 --- a/docs/docs/integrations/llms/azure_openai.ipynb +++ b/docs/docs/integrations/llms/azure_openai.ipynb @@ -7,7 +7,13 @@ "source": [ "# Azure OpenAI\n", "\n", - "This notebook goes over how to use Langchain with [Azure OpenAI](https://aka.ms/azure-openai).\n", + ":::caution\n", + "You are currently on a page documenting the use of Azure OpenAI [text completion models](/docs/concepts/#llms). The latest and most popular Azure OpenAI models are [chat completion models](/docs/concepts/#chat-models).\n", + "\n", + "Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/docs/integrations/chat/azure_chat_openai/).\n", + ":::\n", + "\n", + "This page goes over how to use LangChain with [Azure OpenAI](https://aka.ms/azure-openai).\n", "\n", "The Azure OpenAI API is compatible with OpenAI's API. The `openai` Python package makes it easy to use both OpenAI and Azure OpenAI. You can call Azure OpenAI the same way you call OpenAI with the exceptions noted below.\n", "\n", diff --git a/docs/docs/integrations/llms/openai.ipynb b/docs/docs/integrations/llms/openai.ipynb index a368259fb8..92dce56dac 100644 --- a/docs/docs/integrations/llms/openai.ipynb +++ b/docs/docs/integrations/llms/openai.ipynb @@ -7,6 +7,12 @@ "source": [ "# OpenAI\n", "\n", + ":::caution\n", + "You are currently on a page documenting the use of OpenAI [text completion models](/docs/concepts/#llms). The latest and most popular OpenAI models are [chat completion models](/docs/concepts/#chat-models).\n", + "\n", + "Unless you are specifically using `gpt-3.5-turbo-instruct`, you are probably looking for [this page instead](/docs/integrations/chat/openai/).\n", + ":::\n", + "\n", "[OpenAI](https://platform.openai.com/docs/introduction) offers a spectrum of models with different levels of power suitable for different tasks.\n", "\n", "This example goes over how to use LangChain to interact with `OpenAI` [models](https://platform.openai.com/docs/models)" diff --git a/docs/docs/integrations/platforms/microsoft.mdx b/docs/docs/integrations/platforms/microsoft.mdx index 232bf3b735..6768e4507e 100644 --- a/docs/docs/integrations/platforms/microsoft.mdx +++ b/docs/docs/integrations/platforms/microsoft.mdx @@ -6,24 +6,6 @@ keywords: [azure] All functionality related to `Microsoft Azure` and other `Microsoft` products. -## LLMs - -### Azure ML - -See a [usage example](/docs/integrations/llms/azure_ml). - -```python -from langchain_community.llms.azureml_endpoint import AzureMLOnlineEndpoint -``` - -### Azure OpenAI - -See a [usage example](/docs/integrations/llms/azure_openai). - -```python -from langchain_openai import AzureOpenAI -``` - ## Chat Models ### Azure OpenAI @@ -51,6 +33,24 @@ See a [usage example](/docs/integrations/chat/azure_chat_openai) from langchain_openai import AzureChatOpenAI ``` +## LLMs + +### Azure ML + +See a [usage example](/docs/integrations/llms/azure_ml). + +```python +from langchain_community.llms.azureml_endpoint import AzureMLOnlineEndpoint +``` + +### Azure OpenAI + +See a [usage example](/docs/integrations/llms/azure_openai). + +```python +from langchain_openai import AzureOpenAI +``` + ## Embedding Models ### Azure OpenAI diff --git a/docs/docs/integrations/platforms/openai.mdx b/docs/docs/integrations/platforms/openai.mdx index 4c6520c47b..57830479e9 100644 --- a/docs/docs/integrations/platforms/openai.mdx +++ b/docs/docs/integrations/platforms/openai.mdx @@ -25,34 +25,33 @@ pip install langchain-openai Get an OpenAI api key and set it as an environment variable (`OPENAI_API_KEY`) +## Chat model -## LLM - -See a [usage example](/docs/integrations/llms/openai). +See a [usage example](/docs/integrations/chat/openai). ```python -from langchain_openai import OpenAI +from langchain_openai import ChatOpenAI ``` If you are using a model hosted on `Azure`, you should use different wrapper for that: ```python -from langchain_openai import AzureOpenAI +from langchain_openai import AzureChatOpenAI ``` -For a more detailed walkthrough of the `Azure` wrapper, see [here](/docs/integrations/llms/azure_openai) +For a more detailed walkthrough of the `Azure` wrapper, see [here](/docs/integrations/chat/azure_chat_openai). -## Chat model +## LLM -See a [usage example](/docs/integrations/chat/openai). +See a [usage example](/docs/integrations/llms/openai). ```python -from langchain_openai import ChatOpenAI +from langchain_openai import OpenAI ``` If you are using a model hosted on `Azure`, you should use different wrapper for that: ```python -from langchain_openai import AzureChatOpenAI +from langchain_openai import AzureOpenAI ``` -For a more detailed walkthrough of the `Azure` wrapper, see [here](/docs/integrations/chat/azure_chat_openai) +For a more detailed walkthrough of the `Azure` wrapper, see [here](/docs/integrations/llms/azure_openai). ## Embedding Model