Xata
Xata is a serverless data platform, based on
PostgreSQL. It provides a Python SDK for interacting with your database, and a UI for managing your data.Xatahas a native vector type, which can be added to any table, and supports similarity search. LangChain inserts vectors directly toXata, and queries it for the nearest neighbors of a given vector, so that you can use all the LangChain Embeddings integrations withXata.
安装与设置
我们需要安装 xata 个 Python 包。
pip install xata==1.0.0a7
向量存储
查看一个 使用示例。
from langchain_community.vectorstores import XataVectorStore
存储
查看一个 使用示例。
from langchain_community.chat_message_histories import XataChatMessageHistory
API 参考:XataChatMessageHistory