Datasets:
version_id int64 1 92 | chapters listlengths 28 28 | total_input_tokens int64 412k 684k | total_output_tokens int64 128k 211k | num_chapters int64 28 28 | total_chars int64 186k 315k | avg_chars_per_chapter int64 6.66k 11.2k |
|---|---|---|---|---|---|---|
1 | [{"chapter_number":81,"text":"第八十一回 王夫人问疾叹迎春 甄府抄家惊贾府\n\n(...TRUNCATED) | 463,563 | 139,878 | 28 | 199,945 | 7,140 |
2 | [{"chapter_number":81,"text":"# 第八十一回 惊噩梦宝玉谶前因 泣残红潇湘伤迟暮\n\(...TRUNCATED) | 509,733 | 157,670 | 28 | 229,657 | 8,202 |
3 | [{"chapter_number":81,"text":"# 第八十一回\n## 惜弱女悍妇施辣手 伤离怀痴儿惹闲(...TRUNCATED) | 543,549 | 167,730 | 28 | 242,916 | 8,675 |
4 | [{"chapter_number":81,"text":"第81回 香菱苦遭毒妇计 探春远嫁泣离愁\n\n话说薛(...TRUNCATED) | 611,584 | 192,053 | 28 | 292,856 | 10,459 |
5 | [{"chapter_number":81,"text":"第81回 诉离情迎春哭归宁 伤旧景宝玉悲花落\n\n话说(...TRUNCATED) | 543,374 | 163,690 | 28 | 232,614 | 8,307 |
6 | [{"chapter_number":81,"text":"# 第八十一回 王夫人拷问怡红院 呆香菱屈受悍妻凌\n\(...TRUNCATED) | 559,201 | 174,185 | 28 | 248,831 | 8,886 |
7 | [{"chapter_number":81,"text":"第81回 奉严命入泮论姻缘 闻悲声泣红惊噩梦\n\n话(...TRUNCATED) | 447,577 | 127,528 | 28 | 186,389 | 6,656 |
8 | [{"chapter_number":81,"text":"第81回 香菱病入膏肓添憔悴 迎春归宁哭诉孙家\n\n(...TRUNCATED) | 613,260 | 186,231 | 28 | 291,774 | 10,420 |
9 | [{"chapter_number":81,"text":"# 第八十一回\n\n**占旺相无心逢隐秘 议亲事有意问(...TRUNCATED) | 468,464 | 141,960 | 28 | 201,726 | 7,204 |
10 | [{"chapter_number":81,"text":"# 第八十一回\n\n**迎春归宁泣诉孙家苦 潇湘抚琴悲(...TRUNCATED) | 544,255 | 167,877 | 28 | 238,868 | 8,531 |
红楼梦续写 · Dream of the Red Chamber: 100 AI Continuations
项目简介
本数据集包含 92 个独立的AI续写版本,续写中国古典文学巅峰之作《红楼梦》的第八十一回至第一百零八回(共28回)。所有续写严格遵循曹雪芹前八十回中埋下的伏笔、谶语和人物命运,完全拒绝高鹗续书。
为什么做这个数据集
《红楼梦》的结局是世界文学史上最大的悬案之一。曹雪芹约于1763年去世前未能完成全书,仅留下前八十回。1791年左右,高鹗发表了一百二十回本,补写了后四十回,但红学研究日益表明高鹗续书严重违背了曹雪芹在前八十回中精心布置的伏笔。
曹雪芹原意 vs 高鹗续书
| 情节 | 曹雪芹原意 | 高鹗续书 |
|---|---|---|
| 黛玉之死 | 泪尽而亡,呼应"绛珠还泪"神话 | 焚稿断痴情 |
| 宝玉宝钗婚姻 | "纵然是齐眉举案,到底意难平" | 掉包计骗婚 |
| 贾府败落 | 政治牵连,锦衣军抄家,"忽喇喇似大厦倾" | 败而复兴,"兰桂齐芳" |
| 结局 | "落了片白茫茫大地真干净"——彻底幻灭 | 家道复兴,皆大欢喜 |
生成方式
- 模型:MiniMax-M2.7
- 策略:每回独立调用一次API(每版本28次,共2,576次调用)
- 上下文管理:最近3回完整传入,更早章回压缩为回目+摘要
- 独立性:92个版本之间完全独立,不共享任何状态
- 容错:无限重试,指数退避,不丢弃任何章回或版本
- 断点续跑:每完成一回保存进度,中断后可从断点恢复
- 生成脚本:红楼梦续写.py
核心约束(写入Prompt)
- 依据前八十回判词、红楼梦曲推进情节,每个人物命运必须与判词吻合
- 黛玉泪尽而亡(绛珠还泪)
- 宝钗宝玉婚姻体现"到底意难平"
- 贾府因政治牵连被抄家
- 人物性格与前八十回一脉相承
- 体现"假作真时真亦假,无为有处有还无"的哲学
- 诗词贴近原著水准
- 绝对禁止使用高鹗续书的任何回目或情节
- 第108回大结局:宝玉随一僧一道飘然而去,白茫茫大地真干净
数据统计
| 指标 | 数值 |
|---|---|
| 版本数 | 92 |
| 每版本章回数 | 28(第81-108回) |
| 总章回数 | 2,576 |
| 总字数 | 22,480,534 |
| 每版本平均字数 | ~244,353 |
| 每回平均字数 | ~8,726 |
| 每回中位字数 | 8,298 |
| 每回最短/最长 | 2,414 / 40,236 |
| 文件大小 | 63.5 MB |
原著前八十回每回约6,000-8,000字。
使用方法
from datasets import load_dataset
# 流式加载(省内存)
ds = load_dataset("PursuitOfDataScience/dream-of-the-red-chamber-continuations", data_files="hlm_continuations.jsonl", split="train", streaming=True)
for version in ds:
for ch in version["chapters"]:
print(ch["chapter_number"], ch["char_count"])
潜在研究用途
- 计算文学分析:对比AI生成的古典中文与曹雪芹原著的语言风格(虚词指纹、句长分布、对话比例、词汇丰富度)
- 叙事分歧研究:分析92个独立版本如何处理同一组伏笔——哪些判词被一致实现,哪些被不同解读?
- 人物一致性评估:检验AI生成的人物行为是否与前八十回的性格塑造吻合
- 古典中文生成基准:评估大语言模型生成长篇古典中文叙事的能力
- 数字人文:探索世界文学史上最受关注的未完成作品的多种可能结局
Overview (English)
This dataset contains 92 independent AI-generated continuations of the classical Chinese novel Dream of the Red Chamber (红楼梦 / Hónglóumèng), widely regarded as the greatest work of Chinese fiction. Each continuation covers chapters 81–108 (28 chapters), picking up where Cao Xueqin's (曹雪芹) authenticated first 80 chapters end.
All 92 versions strictly follow Cao Xueqin's original foreshadowing, prophecies, and character arcs as established in the first 80 chapters. None of them follow the widely-read Gao E (高鹗) continuation (chapters 81–120), which most scholars agree deviates significantly from Cao Xueqin's intended plot.
Why This Dataset Exists
The ending of Dream of the Red Chamber is one of the great unsolved puzzles in world literature. Cao Xueqin died before completing the novel (~1763), leaving only 80 chapters. Around 1791, Gao E published a 120-chapter version with 40 additional chapters, but scholarship increasingly shows Gao E's continuation contradicts the extensive foreshadowing Cao Xueqin embedded in the first 80 chapters.
Key divergences between Cao Xueqin's intent (as evidenced by prophecy poems, Zhi Yanzhai's (脂砚斋) commentary, and textual clues) and Gao E's continuation include:
| Plot Point | Cao Xueqin's Intent | Gao E's Version |
|---|---|---|
| Lin Daiyu's death | Dies when her tears run out (绛珠还泪), fulfilling the Crimson Pearl Grass mythology | Burns her manuscripts in despair ("焚稿断痴情") |
| Baoyu-Baochai marriage | Happens but is deeply melancholic — "even with perfect marital harmony, the heart remains restless" (到底意难平) | Engineered through a cruel "swap trick" (掉包计) |
| Fall of the Jia family | Political catastrophe, house raided by imperial guards — "like a great mansion collapsing" (忽喇喇似大厦倾) | Softened; family eventually recovers |
| Ending | "A vast white expanse of earth, truly clean" (白茫茫大地真干净) — total desolation | "Orchid and osmanthus flourish together" (兰桂齐芳) — restoration and hope |
This dataset provides 92 different explorations of what the novel's ending might have looked like had Cao Xueqin completed it, all generated by a frontier LLM guided by the original text's internal evidence.
Dataset Statistics
| Metric | Value |
|---|---|
| Number of versions | 92 |
| Chapters per version | 28 (chapters 81–108) |
| Total chapters | 2,576 |
| Total characters (Chinese) | 22,480,534 |
| Average characters per version | ~244,353 |
| Average characters per chapter | ~8,726 |
| Median characters per chapter | 8,298 |
| Min/Max chapter length | 2,414 / 40,236 |
| File size | 63.5 MB |
| Total input tokens consumed | 50,157,161 |
| Total output tokens generated | 15,515,569 |
For reference, Cao Xueqin's original chapters average ~6,000–8,000 characters each.
Generation Method
- Model: MiniMax-M2.7 via Anthropic-compatible API
- Approach: One API call per chapter (28 calls per version, 2,576 total calls)
- Context management: The 3 most recent chapters are passed in full; earlier chapters are compressed into title + 600-character summaries
- Independence: Each of the 92 versions is generated from scratch with no shared state between versions
- Retry policy: Infinite retry with exponential backoff (30s, 60s, ... up to 5 min) — no chapter or version is ever skipped
- Progress saving: Checkpoint saved after every chapter; fully resumable on interruption
- Generation script: 红楼梦续写.py
Guiding Principles in the Prompt
The model was given the following hard constraints:
- Follow the prophecy poems (判词) and Dream of the Red Chamber song cycle (红楼梦曲) — each character's fate must match these predictions
- Lin Daiyu dies when her tears are exhausted (泪尽而亡), echoing the Crimson Pearl repaying-tears mythology (绛珠还泪)
- Baoyu and Baochai's marriage must convey "even with perfect marital harmony, the heart remains restless" (到底意难平)
- The Jia family falls due to political entanglement, not mere domestic mismanagement
- Character personalities must be fully consistent with the first 80 chapters
- Embody Cao Xueqin's philosophy: "When the false is taken for the true, the true becomes false" (假作真时真亦假)
- Poetry quality must approach the original
- Absolutely no Gao E continuation content — all chapter titles and plots must be original
- Chapter 108 is the finale: Baoyu departs with a monk and a Taoist into the snow, returning to the Great Barren Mountain (大荒山); the story ends with "a vast white expanse of earth, truly clean" (白茫茫大地真干净)
Data Format
JSONL (one JSON object per line, one line per version):
{
"version_id": 1,
"num_chapters": 28,
"total_chars": 240223,
"avg_chars_per_chapter": 8579,
"total_input_tokens": 502341,
"total_output_tokens": 168432,
"chapters": [
{
"chapter_number": 81,
"text": "第八十一回 ...(full chapter text)...",
"char_count": 6229,
"input_tokens": 360,
"output_tokens": 4643
},
...
]
}
Usage
Streaming (memory-efficient)
from datasets import load_dataset
ds = load_dataset(
"PursuitOfDataScience/dream-of-the-red-chamber-continuations",
data_files="hlm_continuations.jsonl",
split="train",
streaming=True
)
for version in ds:
print(f"Version {version['version_id']}: {version['total_chars']} chars")
for ch in version["chapters"]:
print(f" Chapter {ch['chapter_number']}: {ch['char_count']} chars")
Load fully
from datasets import load_dataset
ds = load_dataset("PursuitOfDataScience/dream-of-the-red-chamber-continuations", data_files="hlm_continuations.jsonl", split="train")
print(f"{len(ds)} versions loaded")
# Access a specific version and chapter
version_0 = ds[0]
chapter_81 = version_0["chapters"][0]
print(chapter_81["text"][:200])
Raw Python (no dependencies)
import json
with open("hlm_continuations.jsonl", "r", encoding="utf-8") as f:
for line in f:
version = json.loads(line)
print(f"Version {version['version_id']}: {version['total_chars']} chars")
Potential Research Uses
- Computational literary analysis: Compare AI-generated classical Chinese prose against Cao Xueqin's authenticated text across stylistic dimensions (function word fingerprints, sentence length distributions, dialogue ratios, vocabulary richness)
- Narrative divergence studies: Analyze how 92 independent continuations handle the same set of foreshadowed plot points — which prophecies are universally fulfilled vs. interpreted differently?
- Character consistency evaluation: Measure whether AI-generated character behavior aligns with personalities established in the first 80 chapters
- Classical Chinese generation benchmarking: Evaluate LLM capability in producing extended classical Chinese prose with complex narrative structure
- Digital humanities: Explore alternative endings to one of world literature's most studied unfinished works
Citation
If you use this dataset, please cite:
@dataset{hlm_continuations_2026,
title={红楼梦续写: 100 AI Continuations of Dream of the Red Chamber},
author={PursuitOfDataScience},
year={2026},
url={https://huggingface.co/datasets/PursuitOfDataScience/dream-of-the-red-chamber-continuations},
note={Generated using MiniMax-M2.7, following Cao Xueqin's original foreshadowing}
}
License
CC-BY-4.0
Disclaimer
This dataset is AI-generated creative fiction intended for research purposes. It does not claim to represent Cao Xueqin's actual lost manuscript. The continuations are interpretive explorations based on textual evidence from the first 80 chapters.
- Downloads last month
- 65