跳到主要內容
Open on GitHub

TiDB

TiDB Cloud 是一個全面的資料庫即服務 (DBaaS) 解決方案,提供專用和無伺服器選項。TiDB Serverless 現在將內建向量搜尋整合到 MySQL 環境中。透過此增強功能,您可以使用 TiDB Serverless 無縫開發 AI 應用程式,而無需新的資料庫或其他技術堆疊。建立免費的 TiDB Serverless 叢集並開始使用向量搜尋功能,請至 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

請參考這裡以了解詳細資訊。


此頁面是否對您有幫助?