SQLite
SQLite is a database engine written in the C programming language. It is not a standalone app; rather, it is a library that software developers embed in their apps. As such, it belongs to the family of embedded databases. It is the most widely deployed database engine, as it is used by several of the top web browsers, operating systems, mobile phones, and other embedded systems.
安装与设置
我们需要安装 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