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.
What it solves
Traditional RAG relies on vector similarity, which can be ambiguous. GraphRAG uses OpenIE to extract knowledge, but that introduces noise. KAG addresses these issues by using knowledge graphs and logical reasoning to provide more accurate and trustworthy answers in professional domains.
How it works
KAG uses a knowledge representation that combines unstructured data, structured data, and expert rules into a unified business knowledge graph. It builds mutual indexes between graph structures and original text blocks. For reasoning, it uses a hybrid solver with planning, reasoning, and retrieval operators, transforming natural language questions into a combination of language and symbol-based solving steps. Each step can use exact match retrieval, text retrieval, numerical calculation, or semantic reasoning, integrating four types of problem solving.
Who it's for
KAG is aimed at developers and organizations building knowledge-based Q&A systems for vertical domains like finance, law, or other professional fields. It offers both a product mode for ordinary users and a toolkit mode for developers.
Highlights
- Knowledge and chunk mutual indexing for richer context.
- Concept-based semantic reasoning to reduce OpenIE noise.
- Schema-constrained knowledge construction for domain expertise.
- Logical form-guided hybrid reasoning and retrieval.
- Supports both private and public knowledge bases.
- Integrates with MCP protocol for agent workflows.
- Achieves state-of-the-art results on benchmarks.
Related
- Project
- Project
- Project
- Project