From 492bfe07fb00a477c37003a93d6f60f61b4b5f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B8=D0=BD=D0=B0=D1=80=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=B8=D1=82=D0=BE=D0=B2?= Date: Tue, 16 Jun 2026 11:05:39 +0000 Subject: [PATCH] Published solution: add README.md --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9332099 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# LangGraph Comparative Review Agent + +## Overview + +This repository contains a LangGraph agent that, given three entities, builds a comparative review table. The agent: + +1. Generates 3‑5 comparison criteria using an LLM. +2. For each entity‑criterion pair performs a Tavily web search and collects a short note. +3. Builds a Markdown table with rows = criteria, columns = entities. +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. + +## Requirements + +```bash +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 + +```bash +# Default demo – compares Chroma, FAISS, Qdrant +python -m src.main + +# Custom entities +python -m src.main "Entity1" "Entity2" "Entity3" +``` + +The script prints the generated criteria, the comparison table, and the verdict.