Skip to content

Commit

Permalink
docs: adding langchain_google_community to the docs (#20665)
Browse files Browse the repository at this point in the history
Thank you for contributing to LangChain!

- [ ] **PR title**: "docs: step1. adjusting langchain_community ->
langchain_google_community"


- [ ] 
- **Description:** step1. adjusting langchain_community ->
langchain_google_community
  • Loading branch information
lkuligin authored Apr 26, 2024
1 parent bf16cef commit d4aec8f
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions docs/docs/integrations/platforms/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,16 @@ from langchain_google_alloydb_pg import AlloyDBEngine, AlloyDBLoader

> [Google Cloud BigQuery](https://cloud.google.com/bigquery) is a serverless and cost-effective enterprise data warehouse that works across clouds and scales with your data in Google Cloud.
We need to install `google-cloud-bigquery` python package.
We need to install `langchain-google-community` with Big Query dependencies:

```bash
pip install google-cloud-bigquery
pip install langchain-google-community[bigquery]
```

See a [usage example](/docs/integrations/document_loaders/google_bigquery).

```python
from langchain_community.document_loaders import BigQueryLoader
from langchain_google_community import BigQueryLoader
```

### Bigtable
Expand Down Expand Up @@ -239,23 +239,23 @@ from langchain_google_cloud_sql_pg import PostgresEngine, PostgresLoader

>[Cloud Storage](https://en.wikipedia.org/wiki/Google_Cloud_Storage) is a managed service for storing unstructured data in Google Cloud.
We need to install `google-cloud-storage` python package.
We need to install `langchain-google-community` with Google Cloud Storage dependencies.

```bash
pip install google-cloud-storage
pip install langchain-google-community[gcs]
```

There are two loaders for the `Google Cloud Storage`: the `Directory` and the `File` loaders.

See a [usage example](/docs/integrations/document_loaders/google_cloud_storage_directory).

```python
from langchain_community.document_loaders import GCSDirectoryLoader
from langchain_google_community import GCSDirectoryLoader
```
See a [usage example](/docs/integrations/document_loaders/google_cloud_storage_file).

```python
from langchain_community.document_loaders import GCSFileLoader
from langchain_google_community import GCSFileLoader
```

### El Carro for Oracle Workloads
Expand All @@ -280,16 +280,16 @@ from langchain_google_el_carro import ElCarroLoader
Currently, only `Google Docs` are supported.

We need to install several python packages.
We need to install `langchain-google-community` with Google Drive dependencies.

```bash
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
pip install langchain-google-community[drive]
```

See a [usage example and authorization instructions](/docs/integrations/document_loaders/google_drive).

```python
from langchain_community.document_loaders import GoogleDriveLoader
from langchain_google_community import GoogleDriveLoader
```

### Firestore (Native Mode)
Expand Down Expand Up @@ -359,16 +359,16 @@ from langchain_google_spanner import SpannerLoader
This document loader transcribes audio files and outputs the text results as Documents.

First, we need to install the python package.
First, we need to install `langchain-google-community` with speech-to-text dependencies.

```bash
pip install google-cloud-speech
pip install langchain-google-community[speech]
```

See a [usage example and authorization instructions](/docs/integrations/document_loaders/google_speech_to_text).

```python
from langchain_community.document_loaders import GoogleSpeechToTextLoader
from langchain_google_community import SpeechToTextLoader
```

## Document Transformers
Expand All @@ -386,15 +386,14 @@ We can get it either programmatically or copy from the `Prediction endpoint` sec
tab in the Google Cloud Console.

```bash
pip install google-cloud-documentai
pip install google-cloud-documentai-toolbox
pip install langchain-google-community[docai]
```

See a [usage example](/docs/integrations/document_transformers/google_docai).

```python
from langchain_community.document_loaders.blob_loaders import Blob
from langchain_community.document_loaders.parsers import DocAIParser
from langchain_core.document_loaders.blob_loaders import Blob
from langchain_google_community import DocAIParser
```

### Google Translate
Expand All @@ -405,18 +404,16 @@ from langchain_community.document_loaders.parsers import DocAIParser
The `GoogleTranslateTransformer` allows you to translate text and HTML with the [Google Cloud Translation API](https://cloud.google.com/translate).

To use it, you should have the `google-cloud-translate` python package installed, and a Google Cloud project with the [Translation API enabled](https://cloud.google.com/translate/docs/setup). This transformer uses the [Advanced edition (v3)](https://cloud.google.com/translate/docs/intro-to-v3).

First, we need to install the python package.
First, we need to install the `langchain-google-community` with translate dependencies.

```bash
pip install google-cloud-translate
pip install langchain-google-community[translate]
```

See a [usage example and authorization instructions](/docs/integrations/document_transformers/google_translate).

```python
from langchain_community.document_transformers import GoogleTranslateTransformer
from langchain_google_community import GoogleTranslateTransformer
```

## Vector Stores
Expand Down Expand Up @@ -646,7 +643,7 @@ pip install google-cloud-text-to-speech
See a [usage example and authorization instructions](/docs/integrations/tools/google_cloud_texttospeech).

```python
from langchain.tools import GoogleCloudTextToSpeechTool
from langchain_google_community import TextToSpeechTool
```

### Google Drive
Expand Down Expand Up @@ -739,7 +736,7 @@ from langchain_community.utilities.google_scholar import GoogleScholarAPIWrapper
`GOOGLE_API_KEY` and `GOOGLE_CSE_ID` respectively.

```python
from langchain_community.utilities import GoogleSearchAPIWrapper
from langchain_google_community import GoogleSearchAPIWrapper
```

For a more detailed walkthrough of this wrapper, see [this notebook](/docs/integrations/tools/google_search).
Expand Down Expand Up @@ -773,16 +770,16 @@ from langchain_community.utilities.google_trends import GoogleTrendsAPIWrapper
> [Google Gmail](https://en.wikipedia.org/wiki/Gmail) is a free email service provided by Google.
This toolkit works with emails through the `Gmail API`.

We need to install several python packages.
We need to install `langchain-google-community` with required dependencies:

```bash
pip install google-api-python-client google-auth-oauthlib google-auth-httplib2
pip install langchain-google-community[gmail]
```

See a [usage example and authorization instructions](/docs/integrations/toolkits/gmail).

```python
from langchain_community.agent_toolkits import GmailToolkit
from langchain_google_community import GmailToolkit
```

## Memory
Expand Down Expand Up @@ -948,16 +945,16 @@ from langchain_google_el_carro import ElCarroChatMessageHistory
> [Gmail](https://en.wikipedia.org/wiki/Gmail) is a free email service provided by Google.
This loader works with emails through the `Gmail API`.

We need to install several python packages.
We need to install `langchain-google-community` with underlying dependencies.

```bash
pip install google-api-python-client google-auth-oauthlib google-auth-httplib2
pip install langchain-google-community[gmail]
```

See a [usage example and authorization instructions](/docs/integrations/chat_loaders/gmail).

```python
from langchain_community.chat_loaders.gmail import GMailLoader
from langchain_google_community import GMailLoader
```

## 3rd Party Integrations
Expand Down

0 comments on commit d4aec8f

Please sign in to comment.