Skip to main content
Linkup provides an API to connect LLMs to the web and the Linkup Premium Partner sources.
This will help you get started with the LinkupSearchRetriever retriever. For detailed documentation of all LinkupSearchRetriever features and configurations head to the API reference.

Integration details

Setup

To use the Linkup provider, you need a valid API key, which you can find by signing-up here. You can then set it up as the LINKUP_API_KEY environment variable. For the chain example below, you also need to set an OpenAI API key as OPENAI_API_KEY environment variable, which you can also do here:
If you want to get automated tracing from individual queries, you can also set your LangSmith API key by uncommenting below:

Installation

This retriever lives in the langchain-linkup package:

Instantiation

Now we can instantiate our retriever:

Usage

Use within a chain

Like other retrievers, LinkupSearchRetriever can be incorporated into LLM applications via chains. We will need a LLM or chat model:

API reference

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