KAG vs llama_index

KAG and llama_index share 12 technologies: Neo4j, OpenAI, matplotlib, dashscope, nltk, MCP, Ollama, pypdf, jinja2, bs4, Pydantic, and psutil. Both are written in Python.

Read it as markdown

What they share and what sets them apart

OpenSPG

KAG

KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs. It is used to build logical reasoning and factual Q&A solutions for professional domain knowledge bases. It can effectively overcome the shortcomings of the traditional RAG vector similarity calculation model.

Python9.2kRead on November 19, 2026, at commit e162ce1What is KAG built with?

Only in KAG

In common

run-llama

llama_index

LlamaIndex is the document processing platform for AI

Python52.9kRead on November 18, 2026, at commit 99d7433What is llama_index built with?

Only in llama_index

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
KAG100,755 lines written558 code files
llama_index473,292 lines written2,055 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
KAG0.2% of its commits signed by AIWith Jules
llama_index0.2% of its commits signed by AIWith Claude Code, Cursor, and GitHub Copilot
ActivityFrom GitHub and its history, on the day SeeRepo read it.
KAGLast push November 19, 20261,028 commits9,180 stars
llama_indexLast push November 14, 20267,971 commits52,930 stars
TestsThe files that test the code, and the share of code files a test imports.
KAG35 test files4.1% of its code files have a test that imports them
llama_index1,607 test files46.5% of its code files have a test that imports them

Frequently asked questions

Which is bigger, KAG or llama_index?
llama_index, with 473,292 lines written; KAG has 100,755.

The proof: run-llama/llama_index's code at commit 99d7433

Which has more GitHub stars, KAG or llama_index?
llama_index, with 52,930 stars; KAG has 9,180.

The proof: run-llama/llama_index on GitHub

Which has more tests, KAG or llama_index?
llama_index, with 1,607 test files; KAG has 35.

The proof: run-llama/llama_index's code at commit 99d7433

Which was updated more recently, KAG or llama_index?
KAG: its last push was on November 19, 2026, and llama_index's on November 14, 2026.

The proof: OpenSPG/KAG's commits on GitHub

Which has more commits signed by AI, KAG or llama_index?
In both, an AI signed 0.2% of their commits.

See inside your code, today.

Paste your repo and see it drawn, part by part: a medium one in under a minute.

Free, no account.Private repo? Sign in with GitHub

Or look inside SeeRepo's own →