Skip to main content
Open on GitHub

TiDB

TiDB Cloud, is a comprehensive Database-as-a-Service (DBaaS) solution, that provides dedicated and serverless options. TiDB Serverless is now integrating a built-in vector search into the MySQL landscape. With this enhancement, you can seamlessly develop AI applications using TiDB Serverless without the need for a new database or additional technical stacks. Create a free TiDB Serverless cluster and start using the vector search feature at https://pingcap.com/ai.

安装与设置

您需要获取 TiDB 数据库的连接详细信息。 访问 TiDB Cloud 获取连接详细信息。

## Document loader

```python
from langchain_community.document_loaders import TiDBLoader
API 参考:TiDBLoader

请参阅详细信息 这里

向量存储

from langchain_community.vectorstores import TiDBVectorStore
API 参考:TiDBVectorStore

请参阅详细信息 这里

存储

from langchain_community.chat_message_histories import TiDBChatMessageHistory

请参阅详细信息 这里