parse_paper_text
Structures exam paper text into question JSON using deterministic rules, extracting number, type, stem, options, answer, and source for ingestion into question management.
Instructions
规整卷面文本 → 题列表 JSON(确定性规则拆题,零 LLM)。适合 convert_doc 产物 / 规整粘贴文本。
拆题规则:题号「N、/N./N.」+ 章节头判题型 + 【来源】/【答案】/【解析】+ 多小问状态机 + 卷尾参考答案回填。 产出每题含 〖图:rId〗 占位(如有)。🔴 agent 拿到后须核对题数/补漏,再构造 IngestItem[] 喂 ingest_items; 位置序号(数组下标+1)= 入库 sort,别用 num(原卷题号遇杂散「N.」会错位——七上教训)。 参数: text 卷面文本(与 text_path 二选一,text 优先)。 返回: {ok, count, questions:[{num,type,stem,options,answer,analyze,has_fig,source,score}], digest}。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| text_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||