Skip to content

Commit

Permalink
docs[patch]: google platform page update (langchain-ai#14475)
Browse files Browse the repository at this point in the history
Added missed tools

---------

Co-authored-by: Erick Friis <[email protected]>
  • Loading branch information
leo-gan and efriis authored Dec 9, 2023
1 parent 2fa8173 commit d9bfdc9
Showing 1 changed file with 78 additions and 10 deletions.
88 changes: 78 additions & 10 deletions docs/docs/integrations/platforms/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ See a [usage example](/docs/integrations/chat/google_vertex_ai_palm).
from langchain.chat_models import ChatVertexAI
```


## Document Loaders
### Google BigQuery

Expand Down Expand Up @@ -132,8 +131,6 @@ See a [usage example and authorization instructions](/docs/integrations/document
from langchain.document_loaders import GoogleSpeechToTextLoader
```



## Vector Stores

### Google Vertex AI Vector Search
Expand Down Expand Up @@ -264,14 +261,9 @@ from langchain.tools import GooglePlacesTool

### Google Search

We need to install a python package.

```bash
pip install google-api-python-client
```

- Set up a Custom Search Engine, following [these instructions](https://stackoverflow.com/questions/37083058/programmatically-searching-google-in-python-using-custom-search)
- Get an API Key and Custom Search Engine ID from the previous step, and set them as environment variables `GOOGLE_API_KEY` and `GOOGLE_CSE_ID` respectively
- Get an API Key and Custom Search Engine ID from the previous step, and set them as environment variables
`GOOGLE_API_KEY` and `GOOGLE_CSE_ID` respectively.

```python
from langchain.utilities import GoogleSearchAPIWrapper
Expand All @@ -286,6 +278,74 @@ from langchain.agents import load_tools
tools = load_tools(["google-search"])
```

### Google Finance

We need to install a python package.

```bash
pip install google-search-results
```

See a [usage example and authorization instructions](/docs/integrations/tools/google_finance).

```python
from langchain.tools.google_finance import GoogleFinanceQueryRun
from langchain.utilities.google_finance import GoogleFinanceAPIWrapper
```

### Google Jobs

We need to install a python package.

```bash
pip install google-search-results
```

See a [usage example and authorization instructions](/docs/integrations/tools/google_jobs).

```python
from langchain.tools.google_jobs import GoogleJobsQueryRun
from langchain.utilities.google_finance import GoogleFinanceAPIWrapper
```

### Google Lens

See a [usage example and authorization instructions](/docs/integrations/tools/google_lens).

```python
from langchain.tools.google_lens import GoogleLensQueryRun
from langchain.utilities.google_lens import GoogleLensAPIWrapper
```

### Google Scholar

We need to install a python package.

```bash
pip install google-search-results
```

See a [usage example and authorization instructions](/docs/integrations/tools/google_scholar).

```python
from langchain.tools.google_scholar import GoogleScholarQueryRun
from langchain.utilities.google_scholar import GoogleScholarAPIWrapper
```

### Google Trends

We need to install a python package.

```bash
pip install google-search-results
```

See a [usage example and authorization instructions](/docs/integrations/tools/google_trends).

```python
from langchain.tools.google_trends import GoogleTrendsQueryRun
from langchain.utilities.google_trends import GoogleTrendsAPIWrapper
```

## Document Transformers

Expand Down Expand Up @@ -413,6 +473,14 @@ See a [usage example and authorization instructions](/docs/integrations/tools/se
from langchain.utilities import SerpAPIWrapper
```

### Serper.dev

See a [usage example and authorization instructions](/docs/integrations/tools/google_serper).

```python
from langchain.utilities import GoogleSerperAPIWrapper
```

### YouTube

>[YouTube Search](https://github.com/joetats/youtube_search) package searches `YouTube` videos avoiding using their heavily rate-limited API.
Expand Down

0 comments on commit d9bfdc9

Please sign in to comment.