desearch
Overview
AI-Powered Search Engine and API for Advanced Data Discovery Desearch.
Welcome to the comprehensive guide on integrating Desearch with LangChain to enable advanced Retrieval-Augmented Generation (RAG) and agent-style workflows. Desearch is a cutting-edge, privacy-first search API that excels in delivering relevant, real-time web and Twitter content, specifically optimized for use in Large Language Model (LLM) applications.
First, get an Desearch API key and add it as an environment variable. Get $5 free credit (plus more by completing certain actions like making your first search) by signing up here.
Setup
.env DESEARCH_API_KEY=your_api_key_here
from dotenv import load_dotenv
load_dotenv()
# Set your API key as an environment variable
And install the integration package
%pip install -U langchain-desearch
Instantiation
🛠️ Tools Overview
Desearch provides a suite of modular tools compatible with LangChain, each designed for specific use cases:
🔎 Search Tools
- DesearchTool: A comprehensive tool for searching across web, AI, and Twitter posts.
- BasicWebSearchTool: A lightweight tool focused solely on web searches.
- BasicTwitterSearchTool: A specialized tool for searching tweets with advanced filtering options.