#43 · Primary category: Knowledge Base & RAG
KAG
Logical form-guided reasoning and retrieval framework built on OpenSPG and LLMs for professional knowledge bases, overcoming RAG vector similarity limitations.
Project last updated:01/28/26
GitHub Stars
9.0K
Forks
712
Contributors
25
License
Apache-2.0
Why we included this project
Most question-answering setups over private or domain-specific data start with vector similarity retrieval, and that works until queries demand multi-hop reasoning or exact factual answers. KAG takes a different route: it pairs the OpenSPG knowledge graph engine with LLMs and converts natural-language questions into structured logical-form steps instead of a single similarity search. The framework folds unstructured text, structured records, and expert business rules into one schema-constrained knowledge graph, then runs a mixed reasoning engine that can pick between text retrieval, graph reasoning, numeric computation, and language reasoning at each step. That suits vertical professional domains where answers need to be grounded in source references and a plain RAG pipeline is prone to confident but wrong output. Teams with knowledge-graph or data-modeling experience will get the most value; those after a zero-setup plug-in RAG layer will find it heavier than they want.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ragflow
RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that fuses cutting-edge RAG with Agent capabilities to create a superior context layer for LLMs
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
crawl4ai
🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN
docling
Get your documents ready for gen AI
anything-llm
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerful local-first agent experience