Skip to main content
Open on GitHub

Linkup

Linkup 提供了一个API,用于将LLMs连接到网络和Linkup高级合作伙伴资源。

安装与设置

要使用Linkup提供者,首先需要一个有效的API密钥,您可以通过在此处注册找到这里。 您还需要langchain-linkup包,您可以使用pip安装:

pip install langchain-linkup

检索器

查看使用示例

from langchain_linkup import LinkupSearchRetriever

retriever = LinkupSearchRetriever(
depth="deep", # "standard" or "deep"
linkup_api_key=None, # API key can be passed here or set as the LINKUP_API_KEY environment variable
)

工具

查看使用示例

from langchain_linkup import LinkupSearchTool

tool = LinkupSearchTool(
depth="deep", # "standard" or "deep"
output_type="searchResults", # "searchResults", "sourcedAnswer" or "structured"
linkup_api_key=None, # API key can be passed here or set as the LINKUP_API_KEY environment variable
)

这个页面有帮助吗?