Agentic RAG for Dummies
Build a modular, memory-aware, human-in-the-loop Agentic RAG with LangGraph in minutes.
- Source repo
- GiovanniPasq/agentic-rag-for-dummies
- Stars
- ★ 4.4k
- Last updated
- 22d ago v2.3.1
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- Primary language
- Jupyter Notebook
- FA score
- 45/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer wanting to quickly grasp Agentic RAG concepts through a step-by-step Jupyter notebook.
- Not a fit if
- Teams wanting a zero-config, ready-to-run RAG app
- Users on weak hardware that cannot run 8B+ local models
- Production teams needing documented Docker deployment
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-10latest release v2.3.1 (2026-10-17)+1.1 ★/day over 7 days
- Source review
- 45/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
This repository demonstrates how to build a fully-featured Agentic RAG (Retrieval-Augmented Generation) system using LangGraph. It includes hierarchical indexing (parent-child chunking), conversation memory, query rewriting and clarification, multi-agent parallel retrieval, context compression, and self-correction. The system uses hybrid search with Qdrant and supports multiple LLM providers, defaulting to local Ollama but with examples for OpenAI, Anthropic, and Google. The project offers both an interactive Jupyter notebook for learning and a modular Python project with a Gradio chat interface. It also includes RAGAS-based evaluation and Langfuse observability.
The repository provides a complete Agentic RAG pipeline. It processes user queries, summarizes conversation history, rewrites ambiguous queries, and asks for clarification when needed. Complex queries are decomposed into sub-questions that are executed in parallel by multiple agent subgraphs. Each agent uses 'search_child_chunks' and 'retrieve_parent_chunks' tools to retrieve relevant documents, compresses context to stay within token limits, and retries if results are insufficient. Finally, all answers are aggregated into a coherent response. The entire workflow is orchestrated via LangGraph state graphs and exposed through a Gradio UI.
- A developer wanting to quickly grasp Agentic RAG concepts through a step-by-step Jupyter notebook.
- A team building a production RAG system that needs a modular, customizable architecture.
- An organization with many PDF documents needing accurate answers with context preservation and hybrid search.
- A cost-conscious user preferring local LLMs (Ollama) but wanting flexibility to switch to cloud providers.
- A researcher evaluating retrieval quality using RAGAS metrics built into the repository.
How do you install or deploy this agent?
- Clone the repo:
git clone https://github.com/GiovanniPasq/agentic-rag-for-dummies - Install dependencies:
pip install -r requirements.txt (or uv pip install -r requirements.txt) - Optionally install Ollama and pull a model: ollama pull granite4.1:8b
- Place PDF files in the 'docs/' directory (sample PDFs are linked).
How do you use this agent?
Option 1 (Quickstart): Open notebooks/agentic_rag.ipynb in Google Colab or Jupyter, run all cells, and add PDFs to docs/.
Option 2 (Full Project): Run python project/app.py to launch the Gradio interface, then open the local URL (e.g., http://127.0.0.1:7860) in your browser.
Note: The default LLM is Ollama; for cloud providers, replace the LLM initialization code with the provided examples.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- rollback or recovery path — Back up first, or work on a git branch or snapshot, so its changes can be undone.
What are this agent's strengths and limitations?
- Offers two pathways: a learning notebook and a modular production-ready project.
- Highly modular: LLM provider, embeddings, chunking, and workflow are independently configurable.
- Advanced features: multi-agent parallelism, query clarification, context compression, and self-correction.
- Hybrid retrieval (dense+sparse) with local-first Ollama support for privacy and cost savings.
- Requires Python 3.11+ and several dependencies (Qdrant, LangGraph), which may be overkill for simple use.
- Default local model performance depends on hardware; docs recommend 8B+ models for reliable tool calling.
- No fully documented Docker deployment in this README; must refer to project README for details.
- Evaluation and observability require additional setup and may add complexity.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Agentic RAG for Dummies This agent | 45 · Major gaps | Library / SDKFree + model costs | ★ 4.4k | 22d ago | Jupyter Notebook | — |
| RAGLight | 66 · Some gaps | CLIFree + model costs | ★ 671 | 1mo ago | Python | OpenAI API |
| Generative AI with LangChain | 41 · Major gaps | Library / SDKFree + model costs | ★ 1.5k | 3mo ago | Jupyter Notebook | OpenAI API · Claude API |
| Dynamiq Agent Orchestration | 61 · Some gaps | Library / SDKFree + model costs | ★ 1.1k | 6d ago | Python | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The source shows retrieval tools querying local Qdrant and reading local JSON by parent ID, which provides some scope limitation (1). Clarification can pause for user input, but no confirmation mechanism is shown for other consequential operations (1). The README explains the workflow, Langfuse observability, and cloud model options, making data flows reasonably visible (2). dotenv and environment-variable examples show credential configuration, but there is no guidance on protecting secrets or handling sensitive documents (1). Dependencies are pinned, but no audit or mitigation evidence is provided (1). PDF conversion, vector indexing, and cloud models can cause local writes or external transfer; notice, consent, and rollback are not established (external effects 1; rollback 0). Source filenames and retrieved content appear in tool output, but the materials do not establish that final answers consistently cite sources (1).
The README describes a staged workflow, and code has retrieval error strings and no-result markers (1). File-read and indexing errors are silently skipped or swallowed, limiting diagnosis (1). Dependencies and a minimum Python version are specified, but availability evidence or fallback plans are absent (1).
The project offers a learning notebook, a modular building path, and examples for several model providers for beginners and builders (2). Boundaries are only partly described: for example, it recommends models of 8B or larger without fully stating unsuitable scenarios or reliability limits (1). Clarification and retrieval stages are described, but trigger precision depends partly on prompts and is not well evidenced (1). Python 3.11+, Ollama as the default, and local Qdrant provide useful environment guidance (2).
The README is organized around overview, workflow, implementation, and setup, with a step list (2); installation guidance is partial and lacks complete configuration details in the supplied material (1). Project and feature terminology is mostly consistent (2). It includes workflow examples and a troubleshooting entry point, though the supplied material does not include the FAQ content (2). It notes small-model weaknesses and changing model names, but does not cover limitations comprehensively (1). The license text is complete (3). A version is present, but no changelog is shown (1). Publisher identity is unverified, and the materials do not clearly assign maintenance responsibility or describe an update path (1).
The product describes and shows hierarchical retrieval, memory, clarification, parallel subqueries, and self-correction, with an interface entry point (2). Multi-stage agents, compression, and evaluation offer identifiable value beyond basic RAG (2). Parallel LLM calls, embedding models, and observability add resource and setup costs, with no cost-control guidance shown (1).
The README maps major capabilities to workflow stages and implementation steps, and tool code shows retrieval behavior (2). The supplied materials do not provide enough independent testing or second-source corroboration (1). Documentation claims and code excerpts are presented together, without a systematic distinction between implemented facts and intended behavior (1).
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- The indexing logic deletes and recreates the existing child collection; parent-store cleanup and recovery from indexing failures are not clearly documented.
- Cloud model examples send queries and retrieved context to external providers; review data-handling requirements and configure credentials before deployment.
- Some retrieval and file I/O exceptions are swallowed or silently skipped, which can make failures difficult to diagnose.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
New Features: 1. Quickstart Scripts & Modern uv Setup • Added start.sh (Linux/macOS) and start.bat (Windows) for one-click environment setup and launch. • Added pyproject.toml support enabling direct execution with uv run project/app.py. • Automatic fallback to standard Python venv with built-in checks for .env setup and local Ollama availability. Bug Fixes: 1. Dotted PDF Filename Preservation • Fixed an issue where filenames containing multiple dots (e.g., guide.v1.pdf and guide.v2.pdf) mapped to the same output name due to pathlib.Path.stem suffix handling. …View on GitHub ↗ -
Release notes excerpt
New Features: 1. Compact Chat Memory • Added rolling conversation summary with the last two user/assistant exchanges. • Older raw messages are removed to prevent context growth. • Conversation memory is configurable through MAIN_HISTORY_MESSAGES_TO_KEEP. 2. Execution Logging • Added optional terminal logs for graph steps, routing decisions, tool calls, and outputs. • Added colored and truncated state previews for easier debugging. • Logging can be enabled from the project configuration. 3. Updated Model Defaults • Switched the default main LLM to granite4.1:8b. …View on GitHub ↗ -
Release notes excerpt
New Features: 1. RAGAS Evaluation • Added dedicated evaluation.ipynb notebook to evaluate retrieval and answer quality with RAGAS metrics. • Evaluation outputs can be saved and reused without rerunning the RAG pipeline. • Added support for a separate local judge model through Ollama's OpenAI-compatible API. 2. Updated Retrieval Defaults • Switched the default embedding model to Qwen/Qwen3-Embedding-0.6B. • Updated retrieval defaults to threshold 0.4 and k=7. Bug Fixes: 1. Project Cleanup • Cleaned dependencies, generated files, and notebook outputs. …View on GitHub ↗
FAQ
Do I need a GPU to run this?
How do I change the LLM provider?
How can I improve retrieval quality?
What document formats are supported?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.