8000 GitHub - mfshiu/kaqg: 多 AI 代理人的考題自動生成系統
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ kaqg Public

多 AI 代理人的考題自動生成系統

Notifications You must be signed in to change notification settings

mfshiu/kaqg

Repository files navigation

KAQG: Knowledge‑Graph‑Enhanced RAG for Difficulty‑Controlled Question Generation

License Python LLM Graph

KAQG is an open-source educational AI framework that integrates Knowledge Graphs (KG), Retrieval-Augmented Generation (RAG), and Assessment Theory to generate high-quality, difficulty-calibrated exam questions. It supports explainable multi-step reasoning and aligns generated items with Bloom’s Taxonomy and Item Response Theory (IRT).


🔍 Features

  • Knowledge Graph Construction: Extracts SPO triples and concept hierarchies from multimodal educational materials.
  • Semantic Retrieval: Uses KG-aware fact chaining for more coherent context selection.
  • Question Generation: Employs LLMs and PageRank for ranking concepts, aligned with cognitive difficulty levels.
  • Assessment Integration: Quantifies difficulty using Bloom’s levels and validates questions through IRT.
  • Multi-Agent System (MAS): Distributed agents coordinate retrieval, generation, and evaluation via DDS-based pub-sub.

📐 System Architecture

The system comprises:

  • KAQG-Retriever: Builds domain-isolated KGs from documents (PDF, video, web).
  • KAQG-Generator: Creates and validates exam questions with psychometric calibration.
  • AI Agents Framework: Manages autonomous tasks using DDS communication.

KAQG Architecture


📁 Repository Structure

kaqg/
├── apps/             # Utility tools
├── doc/             # Documents
├── know-edit/          # KG editor
├── src/             # Source codes
    ├── evluation/          # Question assessment
    ├── generation/          # Question generation
    ├── knowsys/             # KG library
    ├── retrieval/            # Material retrieval
    └── services/          # Services agents
├── unit_test/              # Unit tests
└── README.md

⚙️ Installation

git clone https://github.com/mfshiu/kaqg.git
cd kaqg
pip install -r requirements.txt

You’ll also need:

  • Neo4j 5.x
  • OpenAI-compatible LLMs (e.g., GPT-4 or LLaMA2)
  • DDS middleware (e.g., Eclipse Cyclone DDS)

🚀 Usage

  1. Build Knowledge Graphs

    python retriever/build_graph.py --input data/textbooks/
  2. Generate Questions

    python generator/generate_questions.py --subject "Environmental Science"
  3. Evaluate with IRT

    python generator/evaluate_questions.py --model irt

📊 Results

Validated against ACT reading passages with over 90 system-generated questions at three difficulty levels. Questions were evaluated by domain experts and showed high alignment with psychometric expectations.


🔗 Related Projects

  • 🤖 AgentFlow: Multi-agent architecture for distributed coordination and task delegation in KAQG.

🧠 Authors

  • Ching Han Chen – Professor, National Central University
  • Ming Fang Shiu – Ph.D. Candidate, NCU

📬 Contact

For questions, contact the maintainer: 108582003@cc.ncu.edu.tw


Would you like a version of this saved as README.md for direct upload?

About

多 AI 代理人的考題自動生成系統

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0