Skip to main content
Tavily’s Search API is a search engine built specifically for AI agents (LLMs), delivering real-time, accurate, and factual results at speed.
我们可以将其用作检索器。 它将展示此集成特有的功能。 阅读完毕后,建议探索相关用例页面以学习如何将此向量存储用作更大链的一部分。

集成详情

设置

如果您希望从单个查询中获得自动追踪功能,还可以通过取消注释以下代码来设置 LangSmith API 密钥:

安装

该集成位于 langchain-community 包中。我们还需要安装 tavily-python 包本身。
我们还需要设置 Tavily API 密钥。

实例化

现在我们可以实例化检索器:

用法

在链中使用

我们可以轻松地将此检索器组合到一个链中。

API 参考

For detailed documentation of all TavilySearchAPIRetriever features and configurations head to the API reference.