Skip to content

Commit

Permalink
docs: updated tutorials for Image generation and Vector Search (langc…
Browse files Browse the repository at this point in the history
…hain-ai#21000)

Description: docs: updated tutorials for Image generation and Vector
Search

@lkuligin for review

---------

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
Adi8885 and [email protected] authored Apr 29, 2024
1 parent 17bbb7d commit 07ce39b
Show file tree
Hide file tree
Showing 2 changed files with 406 additions and 12 deletions.
382 changes: 382 additions & 0 deletions docs/docs/integrations/tools/google_imagen.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,28 @@
"## Create Vector Store from texts"
]
},
{
"cell_type": "markdown",
"id": "4d98d379",
"metadata": {},
"source": [
"NOTE : If you have existing Index and Endpoints, you can load them using below code"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "066c0f63",
"metadata": {},
"outputs": [],
"source": [
"# TODO : replace 1234567890123456789 with your acutial index ID\n",
"my_index = aiplatform.MatchingEngineIndex(\"1234567890123456789\")\n",
"\n",
"# TODO : replace 1234567890123456789 with your acutial endpoint ID\n",
"my_index_endpoint = aiplatform.MatchingEngineIndexEndpoint(\"1234567890123456789\")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -679,17 +701,6 @@
"vector_store.add_texts(texts=texts, metadatas=metadatas, is_complete_overwrite=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "711efca3",
"metadata": {},
"outputs": [],
"source": [
"my_index = aiplatform.MatchingEngineIndex(\"5908955807575179264\")\n",
"my_index_endpoint = aiplatform.MatchingEngineIndexEndpoint(\"7751631742611488768\")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -735,7 +746,8 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
"pygments_lexer": "ipython3",
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 07ce39b

Please sign in to comment.