Skip to content

Commit

Permalink
docs: platform pages update (#14637)
Browse files Browse the repository at this point in the history
Updated examples and platform pages.
- added missed tools
- added links and descriptions
  • Loading branch information
leo-gan authored Dec 13, 2023
1 parent ea99612 commit 0d6471c
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 8 deletions.
21 changes: 21 additions & 0 deletions docs/docs/integrations/platforms/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,26 @@ documents = docai_wh_retriever.get_relevant_documents(

## Tools

### Google Cloud Text-to-Speech

>[Google Cloud Text-to-Speech](https://cloud.google.com/text-to-speech) enables developers to
> synthesize natural-sounding speech with 100+ voices, available in multiple languages and variants.
> It applies DeepMind’s groundbreaking research in WaveNet and Google’s powerful neural networks
> to deliver the highest fidelity possible.
We need to install a python package.

```bash
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
```


### Google Drive

We need to install several python packages.
Expand Down Expand Up @@ -397,6 +417,7 @@ from langchain.tools.google_trends import GoogleTrendsQueryRun
from langchain.utilities.google_trends import GoogleTrendsAPIWrapper
```


## Document Transformers

### Google Document AI
Expand Down
3 changes: 3 additions & 0 deletions docs/docs/integrations/platforms/microsoft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ from langchain.retrievers import AzureCognitiveSearchRetriever

### Bing Search API

>[Microsoft Bing](https://www.bing.com/), commonly referred to as `Bing` or `Bing Search`,
> is a web search engine owned and operated by `Microsoft`.
See a [usage example](/docs/integrations/tools/bing_search).

```python
Expand Down
15 changes: 15 additions & 0 deletions docs/docs/integrations/platforms/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,18 @@ See a [usage example](/docs/integrations/adapters/openai).
```python
from langchain.adapters import openai as lc_openai
```

## Tools

### Dall-E Image Generator

>[OpenAI Dall-E](https://openai.com/dall-e-3) are text-to-image models developed by `OpenAI`
> using deep learning methodologies to generate digital images from natural language descriptions,
> called "prompts".

See a [usage example](/docs/integrations/tools/dalle_image_generator).

```python
from langchain.utilities.dalle_image_generator import DallEAPIWrapper
```
8 changes: 5 additions & 3 deletions docs/docs/integrations/tools/bing_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Bing Search"
"# Bing Search\n",
"\n",
">[Microsoft Bing](https://www.bing.com/), commonly referred to as `Bing` or `Bing Search`, is a web search engine owned and operated by `Microsoft`."
]
},
{
Expand Down Expand Up @@ -180,7 +182,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.12"
},
"vscode": {
"interpreter": {
Expand All @@ -189,5 +191,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
10 changes: 6 additions & 4 deletions docs/docs/integrations/tools/dalle_image_generator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"source": [
"# Dall-E Image Generator\n",
"\n",
"This notebook shows how you can generate images from a prompt synthesized using an OpenAI LLM. The images are generated using Dall-E, which uses the same OpenAI API key as the LLM."
">[OpenAI Dall-E](https://openai.com/dall-e-3) are text-to-image models developed by `OpenAI` using deep learning methodologies to generate digital images from natural language descriptions, called \"prompts\".\n",
"\n",
"This notebook shows how you can generate images from a prompt synthesized using an OpenAI LLM. The images are generated using `Dall-E`, which uses the same OpenAI API key as the LLM."
]
},
{
Expand Down Expand Up @@ -169,9 +171,9 @@
"provenance": []
},
"kernelspec": {
"display_name": "poetry-venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "poetry-venv"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -183,7 +185,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
"version": "3.10.12"
},
"vscode": {
"interpreter": {
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/integrations/tools/google_cloud_texttospeech.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"source": [
"# Google Cloud Text-to-Speech\n",
"\n",
">[Google Cloud Text-to-Speech](https://cloud.google.com/text-to-speech) enables developers to synthesize natural-sounding speech with 100+ voices, available in multiple languages and variants. It applies DeepMind’s groundbreaking research in WaveNet and Google’s powerful neural networks to deliver the highest fidelity possible.\n",
"\n",
"This notebook shows how to interact with the `Google Cloud Text-to-Speech API` to achieve speech synthesis capabilities."
]
},
Expand Down Expand Up @@ -86,7 +88,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0d6471c

Please sign in to comment.