langchain-deep-research
Run LangChain Open Deep Research agent for iterative web research and comprehensive reports. Requires LLM API keys and search API (e.g., OPENAI_API_KEY, TAVILY_API_KEY).
When & Why to Use This Skill
The LangChain Open Deep Research skill enables Claude to perform autonomous, iterative web investigations by identifying knowledge gaps and conducting multiple search cycles. It synthesizes complex information into comprehensive, professional reports featuring full citation tracking and source verification, significantly reducing the manual effort required for deep-dive information gathering.
Use Cases
- Market Intelligence: Conduct in-depth research on emerging industry trends, competitor strategies, and market shifts to inform high-level business decisions.
- Technical Deep-Dives: Investigate complex scientific or technological topics, such as quantum computing or AI breakthroughs, using iterative reflection to ensure exhaustive coverage.
- Academic & Professional Reporting: Automate the gathering and synthesis of information from diverse online sources to create well-structured reports with accurate citations.
- Fact-Checking & Evidence Gathering: Cross-reference multiple web sources to verify specific claims and provide a documented trail of evidence for investigative purposes.
| name | langchain-deep-research |
|---|---|
| description | Run LangChain Open Deep Research agent for iterative web research and comprehensive reports. Requires LLM API keys and search API (e.g., OPENAI_API_KEY, TAVILY_API_KEY). |
LangChain Open Deep Research Skill
This skill utilizes the LangChain Open Deep Research framework to perform iterative web research with reflection and knowledge gap identification, producing comprehensive reports with citations.
Setup
Dependencies: Requires the
open-deep-researchpackage and LangGraph.pip install open-deep-research langgraph-cli python-dotenvAPI Key Configuration: Requires API keys for an LLM and a search provider.
# Set up your API keys echo "# LLM Configuration" >> .env echo "OPENAI_API_KEY=your_openai_key" >> .env echo "# Search Configuration" >> .env echo "TAVILY_API_KEY=your_tavily_key" >> .env if [ -f .gitignore ] && ! grep -q ".env" .gitignore; then echo ".env" >> .gitignore; fi echo "API keys saved to .env."
Usage
Use the scripts/research.py script to run a research task.
Command
python3 scripts/research.py --query "<research_query>" [--max-iterations <N>]
Parameters
--query(Required): The research question or topic.--max-iterations(Optional): Maximum number of research iterations (default: 3).--output(Optional): Output file path for the final report (default: stdout).
Example
python3 scripts/research.py --query "What are the latest developments in quantum computing error correction?" --max-iterations 4 --output report.md
Output
The script outputs a comprehensive research report with:
- Iterative search findings
- Knowledge gap analysis
- Final synthesized report with citations
- Source list
Features
- Iterative Research: Performs multiple search cycles, reflecting on gaps
- Configurable Models: Supports OpenAI, Anthropic, Ollama, and other LLM providers
- Multiple Search Engines: Tavily (default), Brave, DuckDuckGo, SerpAPI
- Citation Tracking: All findings include source references