Skip to main content

SingleStoreDB

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:SingleStoreDB

Memory​

See a usage example.

from langchain.memory import SingleStoreDBChatMessageHistory

Was this page helpful?


You can leave detailed feedback on GitHub.