Source: https://seerepo.com/compare/bojieli/ai-agent-book/vs/run-llama/llama_index
Markdown source: https://seerepo.com/compare/bojieli/ai-agent-book/vs/run-llama/llama_index.md
Description: ai-agent-book and llama_index share 40 technologies: azure-search-documents, azure-storage-blob, chromadb, psycopg2-binary, pyarrow, OpenAI, Google, anyio, AIOHTTP, Rich, matplotlib, google-auth-httplib2, google-auth-oauthlib, mem0ai, nltk, sentencepiece, torch, transformers, MCP, peft, datasets, tiktoken, litellm, Ollama, scikit-learn, opencv-python, sentence-transformers, vLLM, lxml, xlrd, beautifulsoup4, pillow, pypdf2, html2text, pypdf, pdfplumber, pymupdf, youtube-transcript-api, Pydantic, and psutil. Both are written in Python.

# ai-agent-book vs llama_index

ai-agent-book and llama_index share 40 technologies: azure-search-documents, azure-storage-blob, chromadb, psycopg2-binary, pyarrow, OpenAI, Google, anyio, AIOHTTP, Rich, matplotlib, google-auth-httplib2, google-auth-oauthlib, mem0ai, nltk, sentencepiece, torch, transformers, MCP, peft, datasets, tiktoken, litellm, Ollama, scikit-learn, opencv-python, sentence-transformers, vLLM, lxml, xlrd, beautifulsoup4, pillow, pypdf2, html2text, pypdf, pdfplumber, pymupdf, youtube-transcript-api, Pydantic, and psutil. Both are written in Python.

- [bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book): 《深入理解 AI Agent：设计原理与工程实践》（李博杰 著）开源主仓库：全书正文、编译版 PDF 与按章配套代码
- [run-llama/llama_index](https://seerepo.com/r/run-llama/llama_index): LlamaIndex is the document processing platform for AI

## What they share and what sets them apart

- In common: azure-search-documents, azure-storage-blob, chromadb, psycopg2-binary, pyarrow, OpenAI, Google, anyio, AIOHTTP, Rich, matplotlib, google-auth-httplib2, google-auth-oauthlib, mem0ai, nltk, sentencepiece, torch, transformers, MCP, peft, datasets, tiktoken, litellm, Ollama, scikit-learn, opencv-python, sentence-transformers, vLLM, lxml, xlrd, beautifulsoup4, pillow, pypdf2, html2text, pypdf, pdfplumber, pymupdf, youtube-transcript-api, Pydantic, psutil
- Only in ai-agent-book: React, uvicorn, FastAPI, Postgres, Anthropic, Hugging Face, PostHog, fastmcp, Flask, Next.js, Vite, Express, Astro, mkdocs-material, seaborn, Plotly, authlib, google-auth, pyotp, accelerate, bitsandbytes, cut-cross-entropy, faiss-cpu, lightgbm, openai-whisper, scikit-image, triton, xformers, rank-bm25, groq, librosa, trl, snac, torchaudio, langchain-openai, mlx-audio, python-magic, torchcodec, xlsxwriter, python-pptx, reportlab, python-docx, openpyxl, markdown, sendgrid, yt-dlp, structlog, loguru, pptxgenjs, sharp, Tailwind CSS, D3, recharts, onnxruntime-node, class-variance-authority, tailwind-merge, Radix UI, react-syntax-highlighter, Lucide, react-markdown, remark-gfm, katex
- Only in llama_index: starlette, aiomysql, aiosqlite, async-lru, asyncpg, ibm-db, pgvecto-rs, pgvector, psycopg, pyzmq, Redis, weaviate-client, lancedb, oracledb, DuckDB, pymilvus, SQLite, tablestore, falkordb, MySQL, pinecone, clickhouse-connect, gcsfs, pyiceberg, pymochow, pymysql, pyobvector, s3fs, tcvectordb, typesense, ElevenLabs, graphql-core, tornado, Ray, soupsieve, tinycss2, ipywidgets, matplotlib-inline, prompt-toolkit, SQLAlchemy, argon2-cffi, azure-identity, cryptography, pyjwt, msal, einops, firecrawl-py, guardrails-ai, llama-index-core, PaddlePaddle, tavily-python, ibm-watsonx-ai, cohere, LangChain, dashscope, fastembed, flagembedding, ModelScope, openvino, tritonclient, exa-py, flashrank, hnswlib, langfuse, mlx, mlx-lm, nomic, optimum, paddleocr, presidio-analyzer, tokenizers, bleach, markupsafe, mistune, nbformat, newspaper3k, bs4, unstructured, defusedxml, jinja2, filetype, docx2txt, markdownify, docling, lxml-html-clean, markitdown, nbconvert, pdf2image, tinytag, jsonschema-specifications, marshmallow, referencing, rfc3339-validator, docling-core, annotated-types, jsonschema, pydantic-core, opentelemetry-api, opentelemetry-semantic-conventions, prometheus-client, python-json-logger, boto3, docker, Alibaba Cloud, OpenTelemetry

## Side by side

| | ai-agent-book | llama_index |
|---|---|---|
| Size | 422,447 lines written, 1,067 code files | 473,236 lines written, 2,055 code files |
| Who writes it | 20.8% of its commits signed by AI. With Claude Code | 0.2% of its commits signed by AI. With Claude Code, Cursor, and GitHub Copilot |
| Activity | Last push October 8, 2026, 1,610 commits, 57,240 stars | Last push November 5, 2026, 7,963 commits, 52,820 stars |
| Tests | 624 test files. 34.3% of its code files have a test that imports them | 1,607 test files. 46.5% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, ai-agent-book or llama_index?

llama_index, with 473,236 lines written; ai-agent-book has 422,447.

The proof: [run-llama/llama_index's code at commit 444fdf0](https://github.com/run-llama/llama_index/tree/444fdf0684707de62ebb447d658dba137dd9cb99)

### Which has more GitHub stars, ai-agent-book or llama_index?

ai-agent-book, with 57,240 stars; llama_index has 52,820.

The proof: [bojieli/ai-agent-book on GitHub](https://github.com/bojieli/ai-agent-book)

### Which has more tests, ai-agent-book or llama_index?

llama_index, with 1,607 test files; ai-agent-book has 624.

The proof: [run-llama/llama_index's code at commit 444fdf0](https://github.com/run-llama/llama_index/tree/444fdf0684707de62ebb447d658dba137dd9cb99)

### Which was updated more recently, ai-agent-book or llama_index?

llama_index: its last push was on November 5, 2026, and ai-agent-book's on October 8, 2026.

The proof: [run-llama/llama_index's commits on GitHub](https://github.com/run-llama/llama_index/commits)

### Which has more commits signed by AI, ai-agent-book or llama_index?

ai-agent-book: an AI signed 20.8% of its commits, with Claude Code; in llama_index, 0.2%.

The proof: [the commits each tool signed in bojieli/ai-agent-book](https://seerepo.com/r/bojieli/ai-agent-book/ai)

## Sources

- bojieli/ai-agent-book: Read on November 5, 2026, at commit dbc046e (https://github.com/bojieli/ai-agent-book/tree/dbc046eb896ac4e39aa19c7774c8bf49583b89a6)
- run-llama/llama_index: Read on November 5, 2026, at commit 444fdf0 (https://github.com/run-llama/llama_index/tree/444fdf0684707de62ebb447d658dba137dd9cb99)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
