diff --git a/samples/llama_index_chat_store.ipynb b/samples/llama_index_chat_store.ipynb index c3073b3..12be02d 100644 --- a/samples/llama_index_chat_store.ipynb +++ b/samples/llama_index_chat_store.ipynb @@ -172,7 +172,9 @@ "Optionally, [built-in database authentication](https://cloud.google.com/sql/docs/postgres/built-in-authentication) using a username and password to access the Cloud SQL database can also be used. Just provide the optional `user` and `password` arguments to `PostgresEngine.from_instance()`:\n", "\n", "* `user` : Database user to use for built-in database authentication and login\n", - "* `password` : Database password to use for built-in database authentication and login.\n" + "* `password` : Database password to use for built-in database authentication and login.\n", + "\n", + "To connect to your Cloud SQL instance from this notebook, you will need to enable public IP on your instance. Alternatively, you can follow [these instructions](https://cloud.google.com/sql/docs/postgres/connect-to-instance-from-outside-vpc) to connect to an Cloud SQL for PostgreSQL instance with Private IP from outside your VPC. Learn more about [specifying IP types](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector?tab=readme-ov-file#specifying-ip-address-type).\n" ] }, { @@ -197,6 +199,7 @@ " database=DATABASE,\n", " user=USER,\n", " password=PASSWORD,\n", + " ip_type=\"public\",\n", ")" ] }, diff --git a/samples/llama_index_doc_store.ipynb b/samples/llama_index_doc_store.ipynb index c15ef8e..ad4a47d 100644 --- a/samples/llama_index_doc_store.ipynb +++ b/samples/llama_index_doc_store.ipynb @@ -201,7 +201,9 @@ "Optionally, [built-in database authentication](https://cloud.google.com/sql/docs/postgres/built-in-authentication) using a username and password to access the Cloud SQL database can also be used. Just provide the optional `user` and `password` arguments to `PostgresEngine.from_instance()`:\n", "\n", "* `user` : Database user to use for built-in database authentication and login\n", - "* `password` : Database password to use for built-in database authentication and login.\n" + "* `password` : Database password to use for built-in database authentication and login.\n", + "\n", + "To connect to your Cloud SQL instance from this notebook, you will need to enable public IP on your instance. Alternatively, you can follow [these instructions](https://cloud.google.com/sql/docs/postgres/connect-to-instance-from-outside-vpc) to connect to an Cloud SQL for PostgreSQL instance with Private IP from outside your VPC. Learn more about [specifying IP types](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector?tab=readme-ov-file#specifying-ip-address-type).\n" ] }, { @@ -230,6 +232,7 @@ " database=DATABASE,\n", " user=USER,\n", " password=PASSWORD,\n", + " ip_type=\"public\",\n", ")" ] }, diff --git a/samples/llama_index_quick_start.ipynb b/samples/llama_index_quick_start.ipynb index 4f3cebd..a4e0787 100644 --- a/samples/llama_index_quick_start.ipynb +++ b/samples/llama_index_quick_start.ipynb @@ -569,7 +569,10 @@ "id": "-CQgPON8dwSK" }, "source": [ - "First, create a connection to your Cloud SQL for PostgreSQL instance using the `PostgresEngine` class." + "First, create a connection to your Cloud SQL for PostgreSQL instance using the `PostgresEngine` class.", + "\n", + "\n", + "To connect to your Cloud SQL instance from this notebook, you will need to enable public IP on your instance. Alternatively, you can follow [these instructions](https://cloud.google.com/sql/docs/postgres/connect-to-instance-from-outside-vpc) to connect to an Cloud SQL for PostgreSQL instance with Private IP from outside your VPC. Learn more about [specifying IP types](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector?tab=readme-ov-file#specifying-ip-address-type).\n" ] }, { @@ -589,6 +592,7 @@ " database=database_name,\n", " user=user,\n", " password=password,\n", + " ip_type=\"public\",\n", ")" ] }, diff --git a/samples/llama_index_reader.ipynb b/samples/llama_index_reader.ipynb index 68b6cf5..b3c7ea9 100644 --- a/samples/llama_index_reader.ipynb +++ b/samples/llama_index_reader.ipynb @@ -163,7 +163,9 @@ "Optionally, [built-in database authentication](https://cloud.google.com/sql/docs/postgres/built-in-authentication) using a username and password to access the Cloud SQL database can also be used. Just provide the optional `user` and `password` arguments to `PostgresEngine.from_instance()`:\n", "\n", "* `user` : Database user to use for built-in database authentication and login\n", - "* `password` : Database password to use for built-in database authentication and login.\n" + "* `password` : Database password to use for built-in database authentication and login.\n", + "\n", + "To connect to your Cloud SQL instance from this notebook, you will need to enable public IP on your instance. Alternatively, you can follow [these instructions](https://cloud.google.com/sql/docs/postgres/connect-to-instance-from-outside-vpc) to connect to an Cloud SQL for PostgreSQL instance with Private IP from outside your VPC. Learn more about [specifying IP types](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector?tab=readme-ov-file#specifying-ip-address-type).\n" ] }, { @@ -188,6 +190,7 @@ " database=DATABASE,\n", " user=USER,\n", " password=PASSWORD,\n", + " ip_type=\"public\",\n", ")" ] }, diff --git a/samples/llama_index_vector_store.ipynb b/samples/llama_index_vector_store.ipynb index e482cd1..824b06a 100644 --- a/samples/llama_index_vector_store.ipynb +++ b/samples/llama_index_vector_store.ipynb @@ -201,7 +201,9 @@ "Optionally, [built-in database authentication](https://cloud.google.com/sql/docs/postgres/built-in-authentication) using a username and password to access the Cloud SQL database can also be used. Just provide the optional `user` and `password` arguments to `PostgresEngine.from_instance()`:\n", "\n", "* `user` : Database user to use for built-in database authentication and login\n", - "* `password` : Database password to use for built-in database authentication and login.\n" + "* `password` : Database password to use for built-in database authentication and login.\n", + "\n", + "To connect to your Cloud SQL instance from this notebook, you will need to enable public IP on your instance. Alternatively, you can follow [these instructions](https://cloud.google.com/sql/docs/postgres/connect-to-instance-from-outside-vpc) to connect to an Cloud SQL for PostgreSQL instance with Private IP from outside your VPC. Learn more about [specifying IP types](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector?tab=readme-ov-file#specifying-ip-address-type).\n" ] }, { @@ -230,6 +232,7 @@ " database=DATABASE,\n", " user=USER,\n", " password=PASSWORD,\n", + " ip_type=\"public\",\n", ")" ] },