You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This LangChain integration is only supported for Cloud SQL maintenance versions between **MYSQL_8_0_36.R20240401.03_00** and **MYSQL_8_0_36.R20241208.01_00**
Copy file name to clipboardExpand all lines: docs/vector_store.ipynb
+34-32Lines changed: 34 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,9 @@
29
29
"\n",
30
30
" * [Create a Google Cloud Project](https://developers.google.com/workspace/guides/create-project)\n",
31
31
" * [Enable the Cloud SQL Admin API.](https://console.cloud.google.com/flows/enableapi?apiid=sqladmin.googleapis.com)\n",
32
-
" * [Create a Cloud SQL instance.](https://cloud.google.com/sql/docs/mysql/connect-instance-auth-proxy#create-instance) (version must be >= **8.0.36** with **cloudsql_vector** database flag configured to \"On\")\n",
32
+
" * [Create a Cloud SQL instance.](https://cloud.google.com/sql/docs/mysql/connect-instance-auth-proxy#create-instance) \n",
33
+
" * Database version must be >= **8.0.36** with **cloudsql_vector** database flag configured to \"On\"\n",
34
+
" * Cloud SQL maintenance version must be between **MYSQL_8_0_36.R20240401.03_00** and **MYSQL_8_0_36.R20241208.01_00**\n",
33
35
" * [Create a Cloud SQL database.](https://cloud.google.com/sql/docs/mysql/create-manage-databases)\n",
34
36
" * [Add a User to the database.](https://cloud.google.com/sql/docs/mysql/create-manage-users)"
"[Document(page_content='Pineapple', metadata={'len': 9}), Document(page_content='Banana', metadata={'len': 6}), Document(page_content='Apples and oranges', metadata={'len': 18}), Document(page_content='Cars and airplanes', metadata={'len': 18})]\n"
575
577
]
@@ -593,6 +595,7 @@
593
595
},
594
596
{
595
597
"cell_type": "markdown",
598
+
"metadata": {},
596
599
"source": [
597
600
"## Example Workflow\n",
598
601
"\n",
@@ -601,11 +604,13 @@
601
604
"Load the document, split it into chunks, embed each chunk and load it into the vector store.\n",
602
605
"\n",
603
606
"You can download the `state_of_the_union.txt` file [here](https://github.com/langchain-ai/langchain/blob/master/docs/docs/modules/state_of_the_union.txt).\n"
"Tonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \n",
682
679
"\n",
@@ -687,6 +684,11 @@
687
684
"And I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson. One of our nation’s top legal minds, who will continue Justice Breyer’s legacy of excellence.\n"
688
685
]
689
686
}
687
+
],
688
+
"source": [
689
+
"query = \"What did the president say about Ketanji Brown Jackson\"\n",
Copy file name to clipboardExpand all lines: samples/langchain_quick_start.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -271,9 +271,9 @@
271
271
"\n",
272
272
"A database named `langchain_db` will be created and used for the rest of the quickstart.\n",
273
273
"\n",
274
-
"**Note:** MySQL vector support is only available on MySQL instances with version **>= 8.0.36**.\n",
274
+
"**Note:** MySQL vector support is only available on MySQL instances with version **>= 8.0.36**. This LangChain integration is only supported for maintenance versions between **MYSQL_8_0_36.R20240401.03_00** and **MYSQL_8_0_36.R20241208.01_00**\n",
275
275
"\n",
276
-
"> For existing instances, you may need to perform a [self-service maintenance update](https://cloud.google.com/sql/docs/mysql/self-service-maintenance) to update your maintenance version to **MYSQL_8_0_36.R20240401.03_00** or greater. Once updated, [configure your database flags](https://cloud.google.com/sql/docs/mysql/flags) to have thew new **cloudsql_vector** flag to \"On\".\n",
276
+
"> On the instance, [configure your database flags](https://cloud.google.com/sql/docs/mysql/flags) to have thew new **cloudsql_vector** flag to \"On\".\n",
277
277
"\n",
278
278
"> ⏳ - Creating a Cloud SQL instance may take a few minutes."
0 commit comments