跳到主要内容
Open on GitHub

SingleStoreDB

SingleStoreDB 是一个高性能分布式 SQL 数据库,支持在 云端 和本地部署。它提供向量存储和向量函数,包括 dot_producteuclidean_distance,从而支持需要文本相似性匹配的 AI 应用程序。

安装和设置

有几种方法可以建立到数据库的连接。您可以设置环境变量,也可以将命名参数传递给SingleStoreDB constructor。或者,您可以将这些参数提供给from_documentsfrom_texts方法。

pip install singlestoredb

向量存储

请参阅使用示例

from langchain_community.vectorstores import SingleStoreDB
API 参考:SingleStoreDB

内存

请参阅使用示例

from langchain.memory import SingleStoreDBChatMessageHistory

此页内容对您有帮助吗?

© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档