跳到主要內容
Open on GitHub

Dappier

Dappier 將任何 LLM 或您的 Agentic AI 連接到來自受信任來源的即時、權利已清除的專有數據,使您的 AI 成為任何方面的專家。我們的專業模型包括即時網路搜尋、新聞、體育、金融股市數據、加密數據以及來自優質發行商的獨家內容。在我們的 marketplace 探索各式各樣的資料模型,網址為 marketplace.dappier.com

Dappier 提供豐富、即時可用且與上下文相關的資料字串,並針對與 LangChain 的無縫整合進行了最佳化。無論您是構建對話式 AI、推薦引擎還是智能搜尋,Dappier 與 LLM 無關的 RAG 模型都能確保您的 AI 能夠存取經過驗證的最新資料,而無需構建和管理您自己的檢索管線。

安裝與設定

安裝 langchain-dappier 並設定環境變數 DAPPIER_API_KEY

pip install -U langchain-dappier
export DAPPIER_API_KEY="your-api-key"

我們還需要設定我們的 Dappier API 憑證,這可以在 Dappier 網站上產生。

我們可以前往 Dappier marketplace 找到支援的資料模型。

聊天模型

請參閱使用範例

from langchain_community.chat_models import ChatDappierAI

檢索器

請參閱使用範例

from langchain_dappier import DappierRetriever

工具

請參閱使用範例

from langchain_dappier import (
DappierRealTimeSearchTool,
DappierAIRecommendationTool
)

此頁面是否對您有幫助?