Skip to content

About

Evaluating rich-text document formats for AI agents on Yuque (语雀)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Yuque logo

Yuque Syntax Harbor

Evaluating rich-text document formats for AI agents on Yuque (语雀)
51 real-world tasks · Comparing accuracy, token overhead, and streaming latency.

Formats · Results · Quick Start · 中文文档

Evaluated Formats

Format Syntax Sample Description Expressiveness
YMD Markdown + <callout> Semantic rich-text markup designed for AI agents Lossless (100%)
Lake <!doctype lake><card ...> Yuque native XML-like persistence markup Lossless (100%)
JSON {"type": "root", "children": [...]} Yuque native full document AST node tree Lossless (100%)
Directive MD :::callout · :badge[...] CommonMark + colon directives (no raw HTML) Lossy (76.8%)

Benchmark Results

Evaluated with deepseek/deepseek-chat across 408 streaming trials (17 reading + 34 writing tasks, comparing Zero-Shot and With Spec conditions).

1. Read/Write Capability

Overall Score and Reading vs. Writing Capability
Format Zero-Shot With Spec ↑ Reading (17) Writing (34) Full Pass Ceiling
YMD 39.9 85.1 98.0 78.7 42 / 51 100.0
Lake 28.4 89.2 85.3 91.2 43 / 51 100.0
JSON 27.1 75.2 78.4 73.5 36 / 51 100.0
Directive MD 30.7 65.4 75.5 60.3 31 / 51 76.8

2. Token & Streaming Efficiency

Tokens per Task and Response Time Efficiency
Format Dynamic Tokens (In + Out) ↓ First Visible ↓ Mean Response Time ↓ Cost / 1k Tasks ↓
YMD 331 (175 + 156 · 1.0×) 0.60s 1.47s (1.0×) CN¥1.60 (1.0×)
Directive MD 405 (221 + 184 · 1.2×) 0.64s 1.94s (1.3×) CN¥1.91 (1.2×)
Lake 687 (307 + 380 · 2.1×) 0.77s 2.41s (1.6×) CN¥3.65 (2.3×)
JSON 820 (360 + 460 · 2.5×) 0.77s 2.52s (1.7×) CN¥4.40 (2.8×)

Quick Start

# Run the full benchmark suite (51 tasks × 4 formats × 2 conditions)
python3 scripts/run_syntax_suite.py --env-file .env.ymd --backend local --model deepseek/deepseek-chat --workers 16

# Regenerate README SVG charts & launch the local viewer (http://127.0.0.1:8091)
python3 scripts/generate_readme_charts.py
python3 scripts/view_syntax.py --port 8091

About

Evaluating rich-text document formats for AI agents on Yuque (语雀)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages