Google Cloud SQL for PostgreSQL
Cloud SQL for PostgreSQL is a fully-managed database service that helps you set up, maintain, manage, and administer your PostgreSQL relational databases on Google Cloud Platform. Extend your database application to build AI-powered experiences leveraging Cloud SQL for PostgreSQL's Langchain integrations.
This notebook goes over how to use Cloud SQL for PostgreSQL
to load Documents with the PostgresLoader
class.
Learn more about the package on GitHub.
Before you beginโ
To run this notebook, you will need to do the following:
- Create a Google Cloud Project
- Enable the Cloud SQL Admin API.
- Create a Cloud SQL for PostgreSQL instance.
- Create a Cloud SQL for PostgreSQL database.
- Add a User to the database.
๐ฆ๐ Library Installationโ
Install the integration library, langchain_google_cloud_sql_pg
.
%pip install --upgrade --quiet langchain_google_cloud_sql_pg
Colab only: Uncomment the following cell to restart the kernel or use the button to restart the kernel. For Vertex AI Workbench you can restart the terminal using the button on top.
# # Automatically restart kernel after installs so that your environment can access the new packages
# import IPython
# app = IPython.Application.instance()
# app.kernel.do_shutdown(True)