From 086b45e50f537df1dbb36b686230f3312dda0079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=B4=D0=B5=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A1=D0=B0?= =?UTF-8?q?=D1=82=D1=82=D0=B0=D1=80=D0=BE=D0=B2=D0=B0?= Date: Mon, 1 Jun 2026 16:44:55 +0000 Subject: [PATCH] add README --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..644041d --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# RAG Agent with ChromaDB and Tavily + +This repository contains a simple RAG agent that uses **ChromaDB** as a local vector store and **Tavily** for web search. The agent can decide whether to answer from the local knowledge base or fetch fresh information from the internet. + +## Project structure +- `vectorstore.py` – utilities for creating/loading ChromaDB and adding documents. +- `tools.py` – two LangChain tools: local KB search and Tavily web search. +- `agent.py` – agent creation with routing logic. +- `main.py` – CLI chat loop. +- `documents/` – folder with sample `.txt` or `.md` files for the knowledge base. +- `requirements.txt` – dependencies (LangChain >1.0, chromadb, tavily-python, etc.). + +## Usage +```bash +# 1. Install dependencies +pip install -r requirements.txt + +# 2. Set Tavily API key +export TAVILY_API_KEY=your_key_here + +# 3. Load documents into ChromaDB (once) +python load_docs.py + +# 4. Run the chat interface +python main.py +```