scaffold: LLM-driven English training system (prompts + libraries + sessions)

This commit is contained in:
Lang
2026-10-14 12:09:28 +08:00
commit de793ef484
16 changed files with 741 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# 原子库结构定义
三个库都用同一套 Markdown 表格字段,方便 LLM 读写、也方便日后脚本解析。
## 通用字段
| 字段 | 含义 | 示例 |
|---|---|---|
| `id` | 唯一编号,前缀区分库:`w-` 单词、`p-` 词组、`e-` 表达 | `p-0007` |
| `item` | 条目本体。**多义词必须带上下文写成词块**,禁止裸词 | `look for` |
| `level` | 难度 CEFR 等级 | `A2` |
| `meaning` | 简明中文释义(就地理解用,不追求完备) | 寻找 |
| `context` | 微上下文 / 例句,说明它在此义下的用法 | `I'm looking for my keys.` |
| `tags` | 逗号分隔标签(功能 / 场景 / 词性) | `请求,日常` |
| `source` | 来源:session 文件名或 `seed` | `2026-10-14-lr-01` |
| `added` | 入库日期 | `2026-10-14` |
| `hits` | 复习命中次数 | `3` |
| `streak` | 连续命中次数(决定间隔) | `2` |
| `next_review` | 下次复习日期 | `2026-10-21` |
## 表达库附加字段
| 字段 | 含义 | 取值 |
|---|---|---|
| `function` | 语用功能 | `注意,请求重复,犹豫,附和,转题,条件,转折,递进,让步,举例,时序` 等 |
## 间隔梯度(天)
`1 → 3 → 7 → 16 → 35 → 75`
- 命中(能正确使用/说出)→ `streak+1`,取下一档间隔。
- 忘了 → `streak=0`,回到 `1` 天。
## 写回规则(给 LLM)
每次 session 结束后,教练以 **JSON 数组**输出新条目,字段与上表一致,然后追加进对应 `*.md` 表格末尾:
```json
[
{"id":"p-0007","item":"look into","level":"B1","meaning":"调查","context":"The police are looking into the case.","tags":"动词短语","source":"2026-10-14-lr-01","added":"2026-10-14","hits":0,"streak":0,"next_review":"2026-10-15"}
]
```
+14
View File
@@ -0,0 +1,14 @@
# 表达 / 功能语库
> 会话中用来**停顿、传情、简化、组织逻辑**的固定说法。按 `function` 打标签。字段见 `SCHEMA.md`。
| id | item | level | meaning | function | context | tags | source | added | hits | streak | next_review |
|---|---|---|---|---|---|---|---|---|---|---|---|
| e-0001 | Excuse me | A2 | 打扰一下 | 注意 | Excuse me, could you tell me the way to the station? | 口语,打断 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| e-0002 | Pardon? | A2 | 请再说一遍 | 请求重复 | Pardon? I didn't catch that. | 口语,听力 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| e-0003 | I don't think so | A2 | 我不这么认为 | 附和/反对 | — Will it rain? — I don't think so. | 口语,委婉 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| e-0004 | anyways | B1 | 反正;话说回来 | 转题 | Anyways, what were you saying? | 口语,非正式 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| e-0005 | unless | B1 | 除非 | 条件 | We'll be late unless we hurry. | 连词,逻辑 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| e-0006 | besides | B1 | 况且,而且 | 递进 | I don't want to go; besides, it's raining. | 连词,逻辑 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
<!-- 追加新条目:保持列序一致,追加到本表末尾 -->
+12
View File
@@ -0,0 +1,12 @@
# 词组 / 搭配库
> **多义词一律以「词块 + 微上下文」入库,禁止裸词。** 字段见 `SCHEMA.md`。
| id | item | level | meaning | context | tags | source | added | hits | streak | next_review |
|---|---|---|---|---|---|---|---|---|---|---|
| p-0001 | look at | A2 | 看着,注视 | Look at that building over there. | 动词短语,感知 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| p-0002 | look for | A2 | 寻找 | I'm looking for my keys. | 动词短语,动作 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| p-0003 | look into | B1 | 调查,研究 | The police are looking into the case. | 动词短语,抽象 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| p-0004 | look up | A2 | 查阅;抬头看 | You can look it up in the dictionary. | 动词短语,多义 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
<!-- 追加新条目:保持列序一致,追加到本表末尾 -->
+10
View File
@@ -0,0 +1,10 @@
# 单词库
> 只放**不靠搭配改变核心义**的基础词。多义词请进 `phrase-bank.md`。字段见 `SCHEMA.md`。
| id | item | level | meaning | context | tags | source | added | hits | streak | next_review |
|---|---|---|---|---|---|---|---|---|---|---|
| w-0001 | keys | A2 | 钥匙 | I lost my keys. | 名词,日常 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
| w-0002 | case | A2 | 案件;情况 | That's a difficult case. | 名词,多义 | seed | 2026-10-14 | 0 | 0 | 2026-10-15 |
<!-- 追加新条目:保持列序一致,追加到本表末尾 -->