Discover and explore top open-source AI tools and projects—updated daily.
OpenSPGLogical reasoning framework for domain knowledge bases
Top 6.1% on SourcePulse
KAG is a framework for building logical reasoning and factual question-answering solutions for specialized knowledge bases, targeting professional domains. It aims to overcome limitations of traditional RAG by integrating knowledge graphs and logical forms, enabling multi-hop reasoning and factual accuracy.
How It Works
KAG employs a "Knowledge and Chunk Mutual Indexing" structure to integrate contextual text with knowledge graphs. It uses conceptual semantic reasoning for knowledge alignment, mitigating noise from OpenIE. A schema-constrained approach supports expert knowledge representation. The core is a logical form-guided hybrid reasoning and retrieval engine with planning, reasoning, and retrieval operators, allowing mixed execution of exact match, text retrieval, numerical calculation, and semantic reasoning.
Quick Start & Requirements
docker-compose-west.yml and run docker compose -f docker-compose-west.yml up -d. Access at http://127.0.0.1:8887 with default credentials openspg/openspg@kag.pip install -e ..Highlighted Details
open_benchmark directory for comparing RAG methods.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
kag-model component is not yet open-sourced.1 month ago
1 day
maitrix-org