Source: https://seerepo.com/r/OpenSPG/KAG
Markdown source: https://seerepo.com/r/OpenSPG/KAG.md
Description: OpenSPG/KAG is a Python repo with 100,755 lines written. KAG is built with FastAPI and uses OpenAI. AI signed 0.2% of the 1,028 commits of KAG.

# What's inside OpenSPG/KAG

OpenSPG/KAG is a Python repo with 100,755 lines written. KAG is built with FastAPI and uses OpenAI. AI signed 0.2% of the 1,028 commits of KAG.

Its description on GitHub: “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.”

Python · Apache-2.0 · 9,180 stars · GitHub: https://github.com/OpenSPG/KAG

Read on November 19, 2026, at commit e162ce1.

## More on this repo

- [What is KAG built with?](https://seerepo.com/r/OpenSPG/KAG/built): KAG is built with FastAPI and uses OpenAI.
- [How much of KAG did AI write?](https://seerepo.com/r/OpenSPG/KAG/ai): AI signed 0.2% of the 1,028 commits of KAG.

## In figures

- 100,755 lines written: The ones people and agents wrote: product, tests, schemas and tooling. Generated code doesn’t count.
- 558 product files: The product’s own files. Test files are counted apart.
- 35 test files: The files that test the code.
- 21 technologies: Each service with the file and line that prove it.

SeeRepo read the facts in its code and kept none of it. AI only helps sort its packages and folders by their names, and never sees its code.

## Frequently asked questions

### What is OpenSPG/KAG?

OpenSPG/KAG is a Python repo with 100,755 lines written. Its description on GitHub: “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.”

The proof: [its page on GitHub](https://github.com/OpenSPG/KAG)

### What is KAG built with?

KAG is built with FastAPI and uses OpenAI.

The proof: [each service with its file and line](https://seerepo.com/r/OpenSPG/KAG/built)

### How much of KAG did AI write?

AI signed 0.2% of the 1,028 commits of KAG.

The proof: [the commits each tool signed](https://seerepo.com/r/OpenSPG/KAG/ai)

### What license does KAG have?

KAG is released under the Apache-2.0 license.

The proof: [its page on GitHub](https://github.com/OpenSPG/KAG)

### How many stars does KAG have on GitHub?

KAG had 9,180 stars on GitHub on November 19, 2026.

The proof: [its page on GitHub](https://github.com/OpenSPG/KAG)

## Add this badge to your README

It links to this page and updates itself each time SeeRepo reads the repo.

```markdown
[![OpenSPG/KAG on SeeRepo](https://seerepo.com/badge/OpenSPG/KAG.svg)](https://seerepo.com/r/OpenSPG/KAG?de=insignia)
```

## 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.
