Skip to main content


AnalyticDB for PostgreSQL is a massively parallel processing (MPP) data warehousing service from Alibaba Cloud that is designed to analyze large volumes of data online.

AnalyticDB for PostgreSQL is developed based on the open-source Greenplum Database project and is enhanced with in-depth extensions by Alibaba Cloud. AnalyticDB for PostgreSQL is compatible with the ANSI SQL 2003 syntax and the PostgreSQL and Oracle database ecosystems. AnalyticDB for PostgreSQL also supports row store and column store. AnalyticDB for PostgreSQL processes petabytes of data offline at a high performance level and supports highly concurrent.

This page covers how to use the AnalyticDB ecosystem within LangChain.

Installation and Setup​

You need to install the sqlalchemy python package.

pip install sqlalchemy


See a usage example.

from langchain_community.vectorstores import AnalyticDB
API Reference:AnalyticDB

Was this page helpful?

You can also leave detailed feedback on GitHub.