Skip to content

Commit

Permalink
docs: updated google integration related imports in the documentation (
Browse files Browse the repository at this point in the history
…langchain-ai#19131)

updated imports in the documentation for google vertex
  • Loading branch information
lkuligin authored and gkorland committed Mar 30, 2024
1 parent e08187c commit 8a1e51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/docs/integrations/platforms/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -503,21 +503,21 @@ from langchain_google_cloud_sql_pg import PostgreSQLEngine, PostgresVectorStore

### Vertex AI Vector Search

> [Google Cloud Vertex AI Vector Search](https://cloud.google.com/vertex-ai/docs/matching-engine/overview) from Google Cloud,
> [Google Cloud Vertex AI Vector Search](https://cloud.google.com/vertex-ai/docs/vector-search/overview) from Google Cloud,
> formerly known as `Vertex AI Matching Engine`, provides the industry's leading high-scale
> low latency vector database. These vector databases are commonly
> referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.
We need to install several python packages.
Install the python package:

```bash
pip install tensorflow langchain-google-vertexai tensorflow-hub tensorflow-text
pip install langchain-google-vertexai
```

See a [usage example](/docs/integrations/vectorstores/google_vertex_ai_vector_search).

```python
from langchain_community.vectorstores import MatchingEngine
from langchain_google_vertexai import VectorSearchVectorStore
```

### ScaNN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"\n",
"This notebook shows how to use functionality related to the `Google Cloud Vertex AI Vector Search` vector database.\n",
"\n",
"> [Google Vertex AI Vector Search](https://cloud.google.com/vertex-ai/docs/matching-engine/overview), formerly known as Vertex AI Matching Engine, provides the industry's leading high-scale low latency vector database. These vector databases are commonly referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.\n",
"> [Google Vertex AI Vector Search](https://cloud.google.com/vertex-ai/docs/vector-search/overview), formerly known as Vertex AI Matching Engine, provides the industry's leading high-scale low latency vector database. These vector databases are commonly referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.\n",
"\n",
"**Note**: This module expects an endpoint and deployed index already created as the creation time takes close to one hour. To see how to create an index refer to the section [Create Index and deploy it to an Endpoint](#create-index-and-deploy-it-to-an-endpoint)"
]
Expand All @@ -29,7 +29,7 @@
"metadata": {},
"outputs": [],
"source": [
"from langchain_community.vectorstores import MatchingEngine"
"from langchain_google_vertexai import VectorSearchVectorStore"
]
},
{
Expand All @@ -50,7 +50,7 @@
"]\n",
"\n",
"\n",
"vector_store = MatchingEngine.from_components(\n",
"vector_store = VectorSearchVectorStore.from_components(\n",
" texts=texts,\n",
" project_id=\"<my_project_id>\",\n",
" region=\"<my_region>\",\n",
Expand Down

0 comments on commit 8a1e51c

Please sign in to comment.