Reworked to produce research brief without tables. Updated README. Code compiles.: update README.md
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
# LangGraph Comparative Review Agent
|
# LangGraph research brief generator
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
This repository contains a LangGraph agent that, given three entities, builds a comparative review table. The agent:
|
This repository contains a LangGraph agent that generates a connected research brief on a single topic. The agent:
|
||||||
|
|
||||||
1. Generates 3‑5 comparison criteria using an LLM.
|
1. Uses an LLM to generate concise section headings for the brief.
|
||||||
2. For each entity‑criterion pair performs a Tavily web search and collects a short note.
|
2. For each heading, performs a Tavily web search to fetch relevant content.
|
||||||
3. Builds a Markdown table with rows = criteria, columns = entities.
|
3. Aggregates the sections into a single Markdown brief with a summary.
|
||||||
4. Produces a short verdict recommending the best entity for each use case.
|
|
||||||
|
|
||||||
The agent is implemented in `src/main.py` and can be run from the command line.
|
The agent is implemented in `src/main.py` and can be run from the command line.
|
||||||
|
|
||||||
@@ -25,11 +24,11 @@ The following environment variables must be set:
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Default demo – compares Chroma, FAISS, Qdrant
|
# Default demo – generates a brief on "Artificial Intelligence"
|
||||||
python -m src.main
|
python -m src.main
|
||||||
|
|
||||||
# Custom entities
|
# Custom topic
|
||||||
python -m src.main "Entity1" "Entity2" "Entity3"
|
python -m src.main "Quantum Computing"
|
||||||
```
|
```
|
||||||
|
|
||||||
The script prints the generated criteria, the comparison table, and the verdict.
|
The script prints the generated brief in Markdown format.
|
||||||
|
|||||||
Reference in New Issue
Block a user