LangGraph Comparison Agent

Overview

This repository contains a LangGraph agent that, given three entities (e.g. vector databases, frameworks, or products), builds a comparative review. The agent:

  1. Plans criteria LLM generates 35 comparison criteria based on the entities.
  2. Researches each entitycriterion pair uses Tavily web search to fetch a short note for each pair.
  3. Builds a Markdown table rows are criteria, columns are entities.
  4. Produces a verdict LLM gives a concise recommendation.

The final output is a Markdown table followed by a verdict paragraph.

Requirements

pip install -r requirements.txt

Environment variables:

  • OPENAI_API_KEY key for the OpenAI model used by LangChain.
  • TAVILY_API_KEY key for the Tavily API.

Usage

# Default demo  compares Chroma, FAISS, Qdrant
python -m src.main

# Custom entities
python -m src.main "Chroma,FAISS,Qdrant"

The script prints the comparison table and verdict in Markdown format.

S
Description
Solution for BroJS task 6a22c713fd30e81cf315e9fe
Readme 44 KiB
Languages
Python 100%