Ross ROSS = Recommend OSS · open-source software intelligence for agents

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. observed · 2026-08-28

github.com/OpenSPG/KAG · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

49/100

  • Activity 64
  • Release rhythm 28
  • Longevity 50
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 47
  • age_days: 711
  • days_rel: 431
  • days_push: 217
  • n_releases_24m: 6

Full methodology

Adoption not part of the score

9018 stars · 709 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

KAG (Knowledge Augmented Generation) is a Python framework built on the OpenSPG engine and large language models for logical form-guided reasoning and retrieval over domain knowledge bases. It combines knowledge graphs with mutual indexing of knowledge and text chunks to support logical reasoning and multi-hop factual Q&A, overcoming the ambiguity of vector-similarity RAG and the noise of OpenIE-based GraphRAG.

Use cases

  • build a factual Q&A assistant over a professional domain knowledge base
  • answer multi-hop questions requiring logical reasoning across documents
  • reduce hallucinations compared to vector-similarity RAG
  • construct a schema-constrained knowledge graph from unstructured and structured data
  • replace or augment GraphRAG pipelines with semantic reasoning alignment
  • query private enterprise knowledge bases with trustworthy, cited answers

When to choose

  • you need multi-hop or logical reasoning Q&A rather than simple semantic retrieval
  • your domain benefits from a structured knowledge graph with schema constraints
  • you want to combine unstructured documents, structured data, and expert knowledge in one reasoning framework
  • you need higher factual accuracy than vanilla vector RAG or OpenIE-based GraphRAG

When to avoid

  • you need a simple plug-and-play RAG pipeline with minimal setup
  • your corpus is small and vector search already gives sufficient accuracy
  • you cannot invest in schema design and knowledge graph construction
  • you need a managed cloud service rather than a self-hosted framework

Facets

framework · maturity active

rag search-engine nlp llm-inference agent-framework large-language-models artificial-intelligence databases python self-hosted cross-platform knowledge-graph logical-reasoning multi-hop-question-answering openspg knowledge-augmented-generation graphrag retrieval-augmented-generation natural-language-processing docker

2 sources

Member repositories

RepositoryRoleHealth v2
OpenSPG/KAGmain49

For agents

markdown · JSON · MCP: product_card(name="OpenSPG/KAG")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem