From 7b084b4cc768a8e5cddc29bfdfb6e5dc1003a5d9 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Fri, 12 Jan 2024 18:16:00 -0800 Subject: [PATCH] docs: more pip installs (#15771) - vertex chat - google - some pip openai - percent and openai - all percent - more - pip - fmt - docs: google vertex partner docs - fmt - docs: more pip installs --- docs/docs/integrations/platforms/microsoft.mdx | 2 +- docs/docs/integrations/platforms/openai.mdx | 5 +++-- docs/docs/integrations/providers/pg_embedding.mdx | 2 -- docs/docs/integrations/providers/tigris.mdx | 2 +- docs/docs/integrations/providers/typesense.mdx | 2 +- docs/docs/integrations/retrievers/outline.ipynb | 9 +++++++++ .../modules/data_connection/text_embedding/index.mdx | 4 ++-- docs/docs/modules/model_io/chat/quick_start.ipynb | 4 ++-- docs/docs/modules/model_io/quick_start.mdx | 4 ++-- 9 files changed, 21 insertions(+), 13 deletions(-) diff --git a/docs/docs/integrations/platforms/microsoft.mdx b/docs/docs/integrations/platforms/microsoft.mdx index d821454e9a2..898ff688cd1 100644 --- a/docs/docs/integrations/platforms/microsoft.mdx +++ b/docs/docs/integrations/platforms/microsoft.mdx @@ -10,7 +10,7 @@ All functionality related to `Microsoft Azure` and other `Microsoft` products. >[Azure OpenAI](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/) is an `Azure` service with powerful language models from `OpenAI` including the `GPT-3`, `Codex` and `Embeddings model` series for content generation, summarization, semantic search, and natural language to code translation. ```bash -pip install openai tiktoken +pip install langchain-openai ``` Set the environment variables to get access to the `Azure OpenAI` service. diff --git a/docs/docs/integrations/platforms/openai.mdx b/docs/docs/integrations/platforms/openai.mdx index 07fcaed88ff..9e74120231d 100644 --- a/docs/docs/integrations/platforms/openai.mdx +++ b/docs/docs/integrations/platforms/openai.mdx @@ -14,11 +14,12 @@ All functionality related to OpenAI ## Installation and Setup -- Install the LangChain partner package +Install the integration package with ```bash pip install langchain-openai ``` -- Get an OpenAI api key and set it as an environment variable (`OPENAI_API_KEY`) + +Get an OpenAI api key and set it as an environment variable (`OPENAI_API_KEY`) ## LLM diff --git a/docs/docs/integrations/providers/pg_embedding.mdx b/docs/docs/integrations/providers/pg_embedding.mdx index 7ce5a026b34..9bcd05bd27c 100644 --- a/docs/docs/integrations/providers/pg_embedding.mdx +++ b/docs/docs/integrations/providers/pg_embedding.mdx @@ -9,9 +9,7 @@ We need to install several python packages. ```bash -pip install openai pip install psycopg2-binary -pip install tiktoken ``` ## Vector Store diff --git a/docs/docs/integrations/providers/tigris.mdx b/docs/docs/integrations/providers/tigris.mdx index 0604db17c4b..7852b6453cc 100644 --- a/docs/docs/integrations/providers/tigris.mdx +++ b/docs/docs/integrations/providers/tigris.mdx @@ -7,7 +7,7 @@ ```bash -pip install tigrisdb openapi-schema-pydantic openai tiktoken +pip install tigrisdb openapi-schema-pydantic ``` ## Vector Store diff --git a/docs/docs/integrations/providers/typesense.mdx b/docs/docs/integrations/providers/typesense.mdx index 97f1601dd6f..9036714e529 100644 --- a/docs/docs/integrations/providers/typesense.mdx +++ b/docs/docs/integrations/providers/typesense.mdx @@ -10,7 +10,7 @@ ```bash -pip install typesense openapi-schema-pydantic openai tiktoken +pip install typesense openapi-schema-pydantic ``` ## Vector Store diff --git a/docs/docs/integrations/retrievers/outline.ipynb b/docs/docs/integrations/retrievers/outline.ipynb index be0fd0dcba8..19ec98fb48a 100644 --- a/docs/docs/integrations/retrievers/outline.ipynb +++ b/docs/docs/integrations/retrievers/outline.ipynb @@ -18,6 +18,15 @@ "## Setup" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "%pip install --upgrade --quiet langchain langchain-openai" + ] + }, { "cell_type": "markdown", "metadata": {}, diff --git a/docs/docs/modules/data_connection/text_embedding/index.mdx b/docs/docs/modules/data_connection/text_embedding/index.mdx index 44701055d69..b014e01743a 100644 --- a/docs/docs/modules/data_connection/text_embedding/index.mdx +++ b/docs/docs/modules/data_connection/text_embedding/index.mdx @@ -17,10 +17,10 @@ The base Embeddings class in LangChain provides two methods: one for embedding d ### Setup -To start we'll need to install the OpenAI Python package: +To start we'll need to install the OpenAI partner package: ```bash -pip install openai +pip install langchain-openai ``` Accessing the API requires an API key, which you can get by creating an account and heading [here](https://platform.openai.com/account/api-keys). Once we have a key we'll want to set it as an environment variable by running: diff --git a/docs/docs/modules/model_io/chat/quick_start.ipynb b/docs/docs/modules/model_io/chat/quick_start.ipynb index c0307fca1cf..1be5c1f3acd 100644 --- a/docs/docs/modules/model_io/chat/quick_start.ipynb +++ b/docs/docs/modules/model_io/chat/quick_start.ipynb @@ -24,10 +24,10 @@ "\n", "## Setup\n", "\n", - "For this example we'll need to install the OpenAI Python package:\n", + "For this example we'll need to install the OpenAI partner package:\n", "\n", "```bash\n", - "pip install openai\n", + "pip install langchain-openai\n", "```\n", "\n", "Accessing the API requires an API key, which you can get by creating an account and heading [here](https://platform.openai.com/account/api-keys). Once we have a key we'll want to set it as an environment variable by running:\n", diff --git a/docs/docs/modules/model_io/quick_start.mdx b/docs/docs/modules/model_io/quick_start.mdx index 931e6d0785d..3c6be1d5199 100644 --- a/docs/docs/modules/model_io/quick_start.mdx +++ b/docs/docs/modules/model_io/quick_start.mdx @@ -16,10 +16,10 @@ import CodeBlock from "@theme/CodeBlock"; -First we'll need to install their Python package: +First we'll need to install their partner package: ```shell -pip install openai +pip install langchain-openai ``` Accessing the API requires an API key, which you can get by creating an account and heading [here](https://platform.openai.com/account/api-keys). Once we have a key we'll want to set it as an environment variable by running: