Open source repo
KAG
KAG is a logical form‑guided reasoning and retrieval framework based on OpenSPG engine and LLMs.
View on GitHubProject siteMore repos in the app
What it is
KAG is an open source tool for retrieval and search with AI, published on GitHub by OpenSPG and written mainly in Python. Its maintainers file it under knowledge‑graph, large‑language‑model, logical‑reasoning, multi-hop-question-answering.
In its own words 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.”
Who it is for
Teams who want an AI model to answer from their own documents, data or knowledge base, not only from what it learned in training.
How to start
- Open the repo and read the README from the top, then the license file.
- It is written in Python, so you will usually install it with pip or uv inside a virtual environment.
- Its project site, spg.openkg.cn, has documentation and sometimes a hosted version you can try before you install anything.
- Pin a release or a commit, so an update does not change how it behaves without you noticing.
Why it is on our list
- It has a permissive Apache‑2.0 license, so you can use it at work.
- It is actively maintained: the last change was 13 days ago, as of December 2, 2026.
- It has its own site with documentation.
The facts
| License | Apache‑2.0 |
| What the license allows | You can use, change and ship it, including in paid products. Keep the notice and state your changes. It also grants a patent license. |
| Main language | Python |
| Stars | 9,208 |
| Topics | knowledge‑graph, large‑language‑model, logical‑reasoning, multi-hop-question-answering, trustfulness |
| Created | September 21, 2024 |
| Last checked | December 2, 2026 |
Before you use it
- Read the README and the license file in the repo.
- Look at recent issues to see how fast problems get fixed.
- Pin a version instead of always pulling the latest.
- Never paste API keys or customer data into a tool you have not checked.
- Run AI agents in a sandbox or a test project first.
Related repos
opencompass
OpenCompass is an LLM evaluation platform, supporting a wide range of models from OpenAI, Anthropic, Gemini, Qwen, GLM, DeepSeek, etc, across 100+ datasets...
tiny-llm
learn LLM inference system on Apple Silicon for systems engineers: build a tiny vLLM + Qwen
SAG-Wiki
A lightweight knowledge base for people and agents, with ultra fast indexing and most precise retrieval.
Try it in your browser
Today's AI news, one card per swipe.
Free to start.