ai-agent-book vs rag_techniques
Two of the top projects in Learning and cookbooks, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
ai-agent-book
Open-source book on AI agent design with 109 runnable experiments
rag_techniques
Collection of 42 runnable notebooks implementing RAG techniques
Verdict
ai-agent-book ranks higher, 88 to 84. Of the 4 score parts we measure for both, ai-agent-book leads on 2, rag_techniques on 1 and 1 is even.
- Adoptionai-agent-book leads by 6 points, 94 to 88.
- FreshnessEven at 100.
- Maintenanceai-agent-book leads by 23 points, 99 to 76: a wide gap.
- Agent-readyrag_techniques leads by 45 points, 45 to 0: a wide gap.
Pick ai-agent-book if you are
Engineers learning to build and evaluate LLM agents, Chinese readers first
- 109 experiments organized by chapter, with uv.lock for reproducible per-chapter environments
- PDF and EPUB downloads plus an online reader, in 15 languages
Pick rag_techniques if you are
Engineers learning and comparing RAG techniques through runnable code
- 42 notebooks grouped by category: foundational, query enhancement, context enrichment, and more
- Colab badge on listed notebooks, so no local setup is needed to run them
| What we compare | ai-agent-book | rag_techniques |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 94, widely used | 88, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 99, healthy | 76, fair |
| Agent-ready | 0, none | 45, minimal |
| Facts from GitHub and the README | ||
| Stars | 59.9k | 30.5k |
| License | Apache-2.0 (permissive) | custom license (read the license) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Oct 2026 |
| Language | Python | Jupyter Notebook |
| Docker | No | No |
| GPU | Optional | Not stated |
| arm64 or Apple Silicon | Not stated | Not stated |
ai-agent-book
A Chinese-language book, "深入理解 AI Agent", in 10 chapters built on the formula Agent = LLM + context + tools. It covers context engineering, memory and RAG, tools and MCP, coding agents, voice and computer use, evaluation, post-training, continual improvement and multi-agent systems. The repo holds the manuscript, PDF/EPUB builds in 15 languages, and 109 Python experiments.
Who it is for: Engineers learning to build and evaluate LLM agents, Chinese readers first
Strengths
- 109 experiments organized by chapter, with uv.lock for reproducible per-chapter environments
- PDF and EPUB downloads plus an online reader, in 15 languages
- Covers context, memory, tools, evaluation, post-training and multi-agent topics in one text
- Pins commits for the external repos used in reproduction tracks
Weaknesses
- Chinese original is canonical; community translations may lag behind it
- README says experiment code is generated by coding agents, not read line by line
- Most experiments need a provider API key; external repos must be cloned manually
- Cloning the repo does not mean every experiment has been run; status is tracked separately
- GPU optional
- Needs Python 3.11-3.13, uv or pip, LLM provider API key, pandoc and xelatex (PDF build only), Ollama, CUDA, Playwright, FFmpeg (some experiments)
- Models: Kimi, GLM, DeepSeek, SiliconFlow, OpenRouter
rag_techniques
A repository of Jupyter notebooks, each implementing one RAG technique, from basic RAG and CSV RAG to HyDE, proposition chunking, contextual chunk headers, MemoRAG and RAG evaluation. Notebooks open in GitHub or Colab. It is a teaching resource with code and references, not a library or a deployable service.
Who it is for: Engineers learning and comparing RAG techniques through runnable code
Strengths
- 42 notebooks grouped by category: foundational, query enhancement, context enrichment, and more
- Colab badge on listed notebooks, so no local setup is needed to run them
- Covers chunking, query transformation, reliability and evaluation, with video explainers for some
- Recent additions include MemoRAG, Open-RAG-Eval and JSON RAG
Weaknesses
- Notebooks, not an installable package or service; code must be adapted for production
- License reported as NOASSERTION, so reuse terms are unclear
- README carries heavy sponsor, book and newsletter promotion
More in Learning and cookbooks
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.