From 3f6689af262628a259092245710aa580a17aba50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Tue, 2 Jun 2026 07:07:14 +0000 Subject: [PATCH] Update README.md --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7f5d31..fd449cb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,42 @@ -# task-6a02e23da6fe2e4ac16acf65 +# RAG Agent with Qdrant and Ollama -Агент с RAG-памятью \ No newline at end of file +This repository contains a simple RAG (Retrieval‑Augmented Generation) agent built with **LangChain**, **Qdrant** as the vector store, and **Ollama** for embeddings and LLMs. + +## Features + +* Semantic search in a local vector database. +* Add new documents to the knowledge base. +* Recursive text splitting for chunking. +* Interactive CLI to query the agent. + +## Setup + +```bash +# Pull required models +ollama pull llama3 +ollama pull nomic-embed-text + +# Install Python dependencies +pip install -r requirements.txt +``` + +## Usage + +```bash +# Load documents from the knowledge folder (default: ./knowledge) +python agent.py +``` + +You can type any question. The agent will automatically search the knowledge base and answer. + +## Adding Documents + +Place any `.txt` files in the `knowledge` directory before running the agent, or use the `add_to_knowledge_base` tool via the agent. + +## Project Structure + +- `agent.py` – Main entry point. +- `qdrant_store.py` – Wrapper around Qdrant for adding/searching. +- `rag_tools.py` – LangChain tools for the agent. +- `requirements.txt` – Python dependencies. +- `README.md` – Documentation.