RepositoryPython
jangviktor-web

jangviktor-web/tcm-distiller

中医·国学思维蒸馏器TCM-Distiller是开源中医AI蒸馏流水线,不堆砌中医典籍素材,而是搭建标准化体系,把胡希恕、黄元御、吴鞠通等医家的著作、讲稿、医案,提炼成可被AI调用、还原真人辨证思路的专属思维技能。系统采用15维度蒸馏架构拆解医者心智模型、用药逻辑、剂量习惯与诊疗边界,搭配S1-S12十二重质控模块,依靠原文溯源、剂量勘误、盲评校验、索引审计等规则,解决普通AI训练杜撰医理、辨证混乱的问题。项目以棘轮迭代机制稳步优化还原度,仅用于中医研习与学术研究,内容不可作为临床诊疗方案,以数字化工程模式,打通传统中医与现代AI的传承通路。 TCM-Distiller is an open-source pipeline for TCM intellectual inheritance.

60stars
23forks
0issues
6views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: zhongyi

#1 Repository of the week

1
TINIX TRENDING·Topic: jingfang

#1 Repository of the week

1
TINIX TRENDING·Topic: llm-skills

#1 Repository of the week

🌿 TCM-Distiller: Distill a TCM Master's Mind Into an AI Skill

"Teaching someone to fish is better than giving them a fish" — this pipeline doesn't produce one physician; it produces the assembly line that can produce any physician.

TCM-Distiller is an open-source AI distillation pipeline that takes a traditional Chinese medicine practitioner's writings, lectures, and case studies — raw primary materials — and outputs a faithful AI skill that reproduces how that physician actually thinks. Unlike the naive approach of simply stuffing documents into an AI, this system decomposes the practitioner's mental model across 15 distinct dimensions and validates the result through 12 quality assurance modules. Built by jangviktor-web, it has already been used to distill Hu Xishu (380,000-word lectures), Huang Yuanyu (3.5MB across eleven medical texts), Wu Jutong (four major works plus 359 cases), and Ni Haixia (258 formula dosages fully audited).

✨ Highlights

  • 15-Dimension Distillation System: Covers the full spectrum of a physician's mindset — core mental models, clinical decision heuristics, formula-pattern systems, expression DNA, anti-patterns and honesty boundaries, dosing thinking, dietary regulation, clause frameworks, biographical lineage, internal tensions, intellectual genealogy, FAQs, clinical safety layers, and optional gong-fa dimensions.
  • 12 Quality Modules (S1–S12): From ancient-modern disease name mapping and mandatory original-text citation protocols to blind evaluation, expression-fidelity verification, and archive cleanup with index health maintenance — every step has a guardrail.
  • Ratchet Mechanism: Every improvement goes through score → improve → test → independent blind review → keep or rollback. Only empirically proven improvements survive; regressions auto-revert.
  • Dose Three-System Conversion: Archaeological calibration (1 liang ≈ 15.6g) for understanding original formula scale only; clinical prescribing always uses the "ancient 1 liang = clinical 1 qian" direct conversion rule — solving a long-standing judge-misjudgment problem in AI testing.
  • Expression Pool with Four-Checks (V4.5): Idiom pools and assertion pools (8–18 phrases each) with conversation-level deduplication and synonym-family merging — 10+ round long conversations run without repetition. Output four-checks now include citation-count reconciliation: every formula mentioned in the body must produce a matching card.
  • Ni Haixia 258-Formula Dose Audit: 233 formulas passed, 30+ errors found and fixed, zero rollbacks on recheck.
  • Blind Evaluation Track Record: 20-question long-answer blind reviews improved from "lost all ten" to "9 wins, 1 tie, 0 losses" (4.65 vs 4.46).
  • Two Pipelines: Pipeline A for fresh distillation (person → skill, five phases); Pipeline B for incremental optimization (skill → better skill, six phases with gap analysis and ratchet retesting).

💡 Why it matters

What makes TCM-Distiller different is that it treats the problem as an engineering challenge rather than a data-packing exercise. Instead of dumping texts into a prompt and hoping for the best, it asks: what are the actual dimensions of a physician's thinking, and how do we verify each one? The 15-dimension framework makes the previously tacit explicit; the S1–S12 modules make quality checkable rather than subjective. The independent blind-evaluation protocol — where scoring judges are separate sub-agents working on anonymized A/B versions — eliminates the "I feel good about this" problem that plagues most AI fine-tuning workflows.

It is best suited for researchers and practitioners who want to study how historical TCM masters reason, build AI skills that genuinely reflect a specific physician's clinical style (not a generic TCM chatbot), or explore the intersection of traditional medical knowledge and modern AI systems. Note: the project is for educational and academic research only; its outputs are not clinical diagnosis or treatment plans.


#TCM #TraditionalChineseMedicine #AI #OpenSource #LLM #AgentSkills #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryPython
JuneYaooo/nihaisha-nishi-tcm

倪海厦中医课程资料的 Agent Skill:支持课程检索、方证穴位辨析、学习笔记整理与板书截图证据索引。 | An Agent Skill for Ni Haisha TCM course study, formula-pattern lookup, acupoint reference, and screenshot evidence indexing.

2.3k
Nov 30, 2026
RepositoryPython
anthropics/skills

Public repository for Agent Skills

203.6k
Dec 1, 2026
Repository
Lance-myk/Traditional-Chinese-Medicine-nihaisha

开源整理倪海厦全套高清教学视频、原版PDF讲义、课件笔记,涵盖人纪、天纪全套体系,纯公益开源分享,助力传统中医、国学文化普惠自学与数字化传承。

125
Jul 14, 2026
RepositoryJavaScript
zenoyang-ai/nihaixia-knowledge-graph

倪海厦中医(人纪)与天纪知识图谱:在线图谱网站 + Obsidian 双链笔记 + AI 语料包 + 分章阅读资料

104
Nov 24, 2026
RepositoryTypeScript
garrytan/gstack

Ship agent-written code you can trust: review, QA, a destructive-command guard and PRs that carry their own evidence, for Claude Code and other coding agents.

143.2k
Dec 1, 2026
RepositoryJavaScript
Leonxlnx/taste-skill

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

124.6k
Nov 26, 2026
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

267.7k
Dec 2, 2026