Agentic Frameworks
Langchain
How to use Linkup with our Langchain SDK
Overview
Linkup can be used with LangChain as a Retriever. This integration allows you to build powerful applications that retrieve contextual information from the internet.
Getting Started with Linkup in LangChain
1
Install the LangChain integration
2
Get your Linkup API Key
3
Create and use the Linkup Retriever
Linkup can be used with the following configuration options (learn more)
Parameter | Options | Description |
---|---|---|
depth | standard , deep | Controls search depth. deep performs more thorough research, standard is faster. |
output_type | searchResults , sourcedAnswer , structured | Determines the format of returned information. |
Example Project: RAG Pipeline with OpenAI
1
Install dependencies
2
Set up API keys
You need API keys for both Linkup and OpenAI. You can get an OpenAI API key here.
3
Create the RAG pipeline
4
Run the pipeline
Example Response
Facing issues? Reach out to our engineering team at support@linkup.so or via our Discord.