Skip to content

The agent engineering platform.

docs: updated docs on langchain_google_community (#21064)

Leonid Kuligina36935b52011
diff --git a/docs/docs/integrations/document_loaders/google_bigquery.ipynb b/docs/docs/integrations/document_loaders/google_bigquery.ipynb
index b6b3b2f3b5..b1d275d40c 100644
--- a/docs/docs/integrations/document_loaders/google_bigquery.ipynb
+++ b/docs/docs/integrations/document_loaders/google_bigquery.ipynb
@@ -20,7 +20,7 @@
},
"outputs": [],
"source": [
- "%pip install --upgrade --quiet google-cloud-bigquery"
+ "%pip install --upgrade --quiet langchain-google-community[bigquery]"
]
},
{
@@ -31,7 +31,7 @@
},
"outputs": [],
"source": [
- "from langchain_community.document_loaders import BigQueryLoader"
+ "from langchain_google_community import BigQueryLoader"
]
},
{
diff --git a/docs/docs/integrations/document_loaders/google_drive.ipynb b/docs/docs/integrations/document_loaders/google_drive.ipynb
index 2e5dcba8b1..e68ee7a412 100644
--- a/docs/docs/integrations/document_loaders/google_drive.ipynb
+++ b/docs/docs/integrations/document_loaders/google_drive.ipynb
@@ -38,7 +38,7 @@
"metadata": {},
"outputs": [],
"source": [
- "%pip install --upgrade --quiet google-api-python-client google-auth-httplib2 google-auth-oauthlib"
+ "%pip install --upgrade --quiet langchain-google-community[drive]"
]
},
{
@@ -121,10 +121,8 @@
"metadata": {},
"outputs": [],
"source": [
- "from langchain_community.document_loaders import (\n",
- " GoogleDriveLoader,\n",
- " UnstructuredFileIOLoader,\n",
- ")"
+ "from langchain_community.document_loaders import UnstructuredFileIOLoader\n",
+ "from langchain_google_community import GoogleDriveLoader"
]
},
{
@@ -219,7 +217,7 @@
"metadata": {},
"source": [
"## Extended usage\n",
- "An external component can manage the complexity of Google Drive : `langchain-googledrive`\n",
+ "An external (unofficial) component can manage the complexity of Google Drive : `langchain-googledrive`\n",
"It's compatible with the ̀`langchain_community.document_loaders.GoogleDriveLoader` and can be used\n",
"in its place.\n",
"\n",
diff --git a/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb b/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb
index 25fae0eb3b..35059fceb1 100644
--- a/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb
+++ b/docs/docs/integrations/document_loaders/google_speech_to_text.ipynb
@@ -32,7 +32,7 @@
"metadata": {},
"outputs": [],
"source": [
- "%pip install --upgrade --quiet google-cloud-speech"
+ "%pip install --upgrade --quiet langchain-google-community[speech]"
]
},
{
@@ -52,7 +52,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from langchain_community.document_loaders import GoogleSpeechToTextLoader\n",
+ "from langchain_google_community import GoogleSpeechToTextLoader\n",
"\n",
"project_id = \"<PROJECT_ID>\"\n",
"file_path = \"gs://cloud-samples-data/speech/audio.flac\"\n",
@@ -152,7 +152,7 @@
" RecognitionConfig,\n",
" RecognitionFeatures,\n",
")\n",
- "from langchain_community.document_loaders import GoogleSpeechToTextLoader\n",
+ "from langchain_google_community import GoogleSpeechToTextLoader\n",
"\n",
"project_id = \"<PROJECT_ID>\"\n",
"location = \"global\"\n",
diff --git a/docs/docs/integrations/document_transformers/google_docai.ipynb b/docs/docs/integrations/document_transformers/google_docai.ipynb
index 28bed7e1f8..e929e26828 100644
--- a/docs/docs/integrations/document_transformers/google_docai.ipynb
+++ b/docs/docs/integrations/document_transformers/google_docai.ipynb
@@ -39,8 +39,7 @@
"metadata": {},
"outputs": [],
"source": [
- "%pip install --upgrade --quiet google-cloud-documentai\n",
- "%pip install --upgrade --quiet google-cloud-documentai-toolbox"
+ "%pip install --upgrade --quiet langchain-google-community[docai]"
]
},
{
@@ -71,8 +70,8 @@
"metadata": {},
"outputs": [],
"source": [
- "from langchain_community.document_loaders.blob_loaders import Blob\n",
- "from langchain_community.document_loaders.parsers import DocAIParser"
+ "from langchain_core.document_loaders.blob_loaders import Blob\n",
+ "from langchain_google_community import DocAIParser"
]
},
{
diff --git a/docs/docs/integrations/document_transformers/google_translate.ipynb b/docs/docs/integrations/document_transformers/google_translate.ipynb
index cfe74de583..0655ef9cb0 100644
--- a/docs/docs/integrations/document_transformers/google_translate.ipynb
+++ b/docs/docs/integrations/document_transformers/google_translate.ipynb
@@ -31,8 +31,8 @@
"metadata": {},
"outputs": [],
"source": [
- "from langchain_community.document_transformers import GoogleTranslateTransformer\n",
- "from langchain_core.documents import Document"
+ "from langchain_core.documents import Document\n",
+ "from langchain_google_community import GoogleTranslateTransformer"
]
},
{