9419a8795cd02db28330d0cfb24d8bee9b7c0aa9
LangGraph research brief generator
Overview
This repository contains a LangGraph agent that generates a connected research brief on a single topic. The agent:
- Uses an LLM to generate concise section headings for the brief.
- For each heading, performs a Tavily web search to fetch relevant content.
- Aggregates the sections into a single Markdown brief with a summary.
The agent is implemented in src/main.py and can be run from the command line.
Requirements
pip install -r requirements.txt
The following environment variables must be set:
OPENAI_API_KEY– key for the OpenAI model used by LangChain.TAVILY_API_KEY– key for the Tavily API.
Usage
# Default demo – generates a brief on "Artificial Intelligence"
python -m src.main
# Custom topic
python -m src.main "Quantum Computing"
The script prints the generated brief in Markdown format.
Description
Languages
Python
100%