跳到主要内容
Open on GitHub

SQLite

SQLite 是一个用 C 编程语言编写的数据库引擎。它不是一个独立的应用程序,而是一个软件开发人员可以嵌入到其应用程序中的库。因此,它属于嵌入式数据库系列。它是部署最广泛的数据库引擎,被多个顶级网络浏览器、操作系统、手机和其他嵌入式系统使用。

安装与设置

我们需要安装 SQLAlchemy Python 包。

pip install SQLAlchemy

向量存储

查看使用示例

from langchain_community.vectorstores import SQLiteVec
from langchain_community.vectorstores import SQLiteVSS # legacy
API 参考:SQLiteVec | SQLiteVSS

内存

查看使用示例

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