git clone https://gitlink.org.cn/Lijiabin1234/medgraph-insight-agent.git
cd medgraph-insight-agent
make install
make constraints-check
make verify
make demo
make test
make benchmark
make quality
启动 API 与 Dashboard:
make api
打开 http://127.0.0.1:8080。
Docker 复现:
docker compose up --build -d
make docker-check
make docker-check 会等待 API 启动,并同时检查 /api/health 与 /api/quality。
MedGraph Insight Agent
面向 ModelEngine 开源项目贡献赛初赛的独立 MIT 仓库。项目实现一个离线优先的“数据 -> 知识 -> 洞察”闭环:DataMate 风格数据处理算子、Nexent 可调用的 MCP 工具、医疗知识图谱问答智能体,以及图谱驱动 BI 可视化。
作者团队:队长 李佳斌;队员 李佳禾、姚舒文;单位 武汉大学计算机学院。
Highlights
Quick Start
在 WSL2 Ubuntu 内运行:
启动 API 与 Dashboard:
打开
http://127.0.0.1:8080。Docker 复现:
make docker-check会等待 API 启动,并同时检查/api/health与/api/quality。CLI
API
POST /api/pipelines/runGET /api/runs/{run_id}orGET /api/runs/latestGET /api/graphPOST /api/qaPOST /api/analyzeGET /api/benchmarks/latestGET /api/qualityNexent Integration
Nexent 作为智能体编排入口时,可通过 MCP 调用本项目工具。配置见
docs/nexent/agent_tool_config.json,暴露工具:run_pipelinequery_graphanswer_medical_questionrun_analysisget_benchmarkget_quality_reportDataMate Integration
DataMate 作为数据工程入口时,可将本项目作为自定义算子包调用。算子 manifest 见
docs/datamate/operator_manifest.json,Python 入口为:Scoring Matrix
Planner+PipelineRunneroperators/*,五段流水线PipelineRun+OperatorResultmedical_extraction.pyqa.py+/api/qaanalytics.py+data/sample/nl2sql_eval.jsonweb/static/*benchmark.py的AscendNPUBackendMakefile、Docker、pytest、docsOutputs and Review Materials
运行
make demo后生成:outputs/latest/run.jsonoutputs/latest/records.jsonoutputs/latest/graph.jsonoutputs/latest/graph_stats.jsonoutputs/latest/qa_sample.jsonoutputs/latest/analysis_sample.jsonoutputs/latest/benchmark.jsonoutputs/latest/quality_report.jsonoutputs/latest/nl2sql_eval.json展示与提交辅助材料:
docs/presentation/medgraph-insight-agent-preliminary-deck.pptxdocs/presentation/slide-contact-sheet.pngdocs/video/medgraph-insight-agent-polished-demo.mp4docs/video/narration-subtitles.srtdocs/video/video-contact-sheet.pngdocs/video/video_qa.jsondocs/screenshots/dashboard-live.pngdocs/preliminary_report.mddocs/scorecard.mddocs/reproducibility.mdCompliance
本仓库采用 MIT License。仓库不包含账号、密码、访问令牌或外部模型密钥。性能报告只标注本机实际测得结果;没有真实 NPU 硬件时,NPU 部分仅作为适配层和待验证路径。
Packaging
make package-submission生成完整源码归档,便于离线复现;make package-official生成官网“文件上传”使用的精简评审包,包含 PPT、演示视频、字幕、报告、集成配置和关键验证证据。make package-check、make archive-replay与make preflight用于确认源码归档、运行结果和提交证据一致。复现细节见docs/reproducibility.md。依赖复现使用
pyproject.toml声明直接依赖,constraints.txt锁定运行时与测试传递依赖;make constraints-check会确认当前环境与锁定版本一致。