SQLite
SQLite 是用 C 编程语言编写的数据库引擎。它不是一个独立的应用程序;相反,它是一个软件开发人员嵌入到其应用程序中的库。因此,它属于嵌入式数据库系列。它是部署最广泛的数据库引擎,被一些顶级的网络浏览器、操作系统、移动电话和其他嵌入式系统所使用。
安装和设置
我们需要安装 SQLAlchemy
python 包。
pip install SQLAlchemy
向量存储
查看使用示例。
from langchain_community.vectorstores import SQLiteVec
from langchain_community.vectorstores import SQLiteVSS # legacy
内存
查看使用示例。
from langchain_community.chat_message_histories import SQLChatMessageHistory
API 参考:SQLChatMessageHistory