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
API Reference:SingleStoreDBChatMessageHistory