Files
brojs-task-6a22c713fd30e81c…/README.md
T

36 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
```bash
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
```bash
# 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.