Skip to main content


SingleStoreDB is a high-performance distributed SQL database that supports deployment both in the cloud and on-premises. It provides vector storage, and vector functions including dot_product and euclidean_distance, thereby supporting AI applications that require text similarity matching.

Installation and Setup​

There are several ways to establish a connection to the database. You can either set up environment variables or pass named parameters to the SingleStoreDB constructor. Alternatively, you may provide these parameters to the from_documents and from_texts methods.

pip install singlestoredb

Vector Store​

See a usage example.

from langchain_community.vectorstores import SingleStoreDB

API Reference:


See a usage example.

from langchain.memory import SingleStoreDBChatMessageHistory

Help us out by providing feedback on this documentation page: