docs: updated docs on langchain_google_community (#21064)

Thank you for contributing to LangChain!

- [ ] **PR title**: "docs: updated docs on langchain_google_community"


- [ ] **PR message**:
    - **Description:** updated docs on langchain_google_community
This commit is contained in:
Leonid Kuligin 2024-05-01 02:20:49 +02:00 committed by GitHub
parent c9e96bb5e2
commit a36935b520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 14 additions and 17 deletions

View File

@ -20,7 +20,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"%pip install --upgrade --quiet google-cloud-bigquery" "%pip install --upgrade --quiet langchain-google-community[bigquery]"
] ]
}, },
{ {
@ -31,7 +31,7 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain_community.document_loaders import BigQueryLoader" "from langchain_google_community import BigQueryLoader"
] ]
}, },
{ {

View File

@ -38,7 +38,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "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": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain_community.document_loaders import (\n", "from langchain_community.document_loaders import UnstructuredFileIOLoader\n",
" GoogleDriveLoader,\n", "from langchain_google_community import GoogleDriveLoader"
" UnstructuredFileIOLoader,\n",
")"
] ]
}, },
{ {
@ -219,7 +217,7 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"## Extended usage\n", "## 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", "It's compatible with the ̀`langchain_community.document_loaders.GoogleDriveLoader` and can be used\n",
"in its place.\n", "in its place.\n",
"\n", "\n",

View File

@ -32,7 +32,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"%pip install --upgrade --quiet google-cloud-speech" "%pip install --upgrade --quiet langchain-google-community[speech]"
] ]
}, },
{ {
@ -52,7 +52,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain_community.document_loaders import GoogleSpeechToTextLoader\n", "from langchain_google_community import GoogleSpeechToTextLoader\n",
"\n", "\n",
"project_id = \"<PROJECT_ID>\"\n", "project_id = \"<PROJECT_ID>\"\n",
"file_path = \"gs://cloud-samples-data/speech/audio.flac\"\n", "file_path = \"gs://cloud-samples-data/speech/audio.flac\"\n",
@ -152,7 +152,7 @@
" RecognitionConfig,\n", " RecognitionConfig,\n",
" RecognitionFeatures,\n", " RecognitionFeatures,\n",
")\n", ")\n",
"from langchain_community.document_loaders import GoogleSpeechToTextLoader\n", "from langchain_google_community import GoogleSpeechToTextLoader\n",
"\n", "\n",
"project_id = \"<PROJECT_ID>\"\n", "project_id = \"<PROJECT_ID>\"\n",
"location = \"global\"\n", "location = \"global\"\n",

View File

@ -39,8 +39,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"%pip install --upgrade --quiet google-cloud-documentai\n", "%pip install --upgrade --quiet langchain-google-community[docai]"
"%pip install --upgrade --quiet google-cloud-documentai-toolbox"
] ]
}, },
{ {
@ -71,8 +70,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain_community.document_loaders.blob_loaders import Blob\n", "from langchain_core.document_loaders.blob_loaders import Blob\n",
"from langchain_community.document_loaders.parsers import DocAIParser" "from langchain_google_community import DocAIParser"
] ]
}, },
{ {

View File

@ -31,8 +31,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"from langchain_community.document_transformers import GoogleTranslateTransformer\n", "from langchain_core.documents import Document\n",
"from langchain_core.documents import Document" "from langchain_google_community import GoogleTranslateTransformer"
] ]
}, },
{ {