# Obsidian Format Language note: section names, metadata labels, figure callouts, and the workflow heading must follow `synthesis_bundle.writing_contract`. For `en`, use the exact schema in `output-language.md`; Chinese-specific examples below apply only to `zh-CN`. ## Heading Rules - Use `#` for the note title only. - Use `##` for major sections. - Use `###` only when a section genuinely needs internal structure. - Do not flatten everything into bullet points. - Prefer meaningful `###` subheadings in the middle sections instead of one long undifferentiated block. - When the paper type has a workflow, its `###` subsection (for example `### 方法流程`) is an overview chain plus a step table, as `paper-types.md` shows. ## File Naming Default file name: - sanitized English title with underscores - default note layout is folder-per-paper: - `<领域>//.zh-CN.md` - `<领域>//.en.md` - `<领域>//images/...` - `<领域>//.deeppapernote.json` - `<领域>` is one domain folder directly under the papers root; you choose it as `domain-routing.md` describes - always create the paper-local `images/` directory during final save, even if no real image is inserted - the paper-local `images/` directory is part of the required note layout, not an optional optimization The hidden `.deeppapernote.json` sidecar is the program-owned directory identity record. It groups verified source PDFs for one work and binds each saved note to exact source bytes and language. Keep the dot-prefixed name on every platform; on Windows the save script also applies and verifies the native Hidden attribute. Before drafting, run the save script's preflight and use its directory, note path, and `asset_subdir`. Verified PDF-only directories can be reused automatically. Multiple source versions share the paper directory with separate notes and assets. Follow [the shared archive contract](paper-archive.md) for migration, candidate selection, and hash-bound overwrite rules. If the user already has a vault convention, preserve it. ## Markdown Style - Prefer short paragraphs over long bullet lists. - Use bullets for metadata and sharply list-shaped content. - Keep code or metric identifiers in backticks. - When English proper nouns (model names, dataset names, method names, metric names, venue abbreviations) or standalone key numeric values appear inline within Chinese prose, wrap them in backticks for visual separation — e.g. `GPT-4`、`SQuAD`、`BLEU`、`87.3%`. - Preserve stable internal links where useful. - Use normal LaTeX delimiters for math: - inline math: `$...$` - display math: `$$` `...` `$$` - Do not wrap formulas in backticks or fenced code blocks unless you are literally showing source code. ## Core Info Block `## 核心信息` is a fixed metadata zone. Formatting and scope rules: - Core info field schema: use only the following fields, in this order, and no free prose: `标题`, `标题翻译`, `作者`, `机构`, `发表时间`, `发表渠道`, `DOI`, `arXiv`, `论文链接`, `代码 / 项目`, `数据 / 资源`, `论文类型` - keep each entry in `- 字段名: 值` form - omit fields that are unavailable or not applicable; do not add placeholder rows just to fill the schema - do not add interpretation, commentary, judgment, or takeaway lines inside `核心信息` - do not use the last metadata bullet as a place to append extra analysis - move explanatory content to `一句话总结`、`阅读收获` or a middle section that carries analysis ## YAML Frontmatter Every note must start with an Obsidian properties block **above** the `#` title heading. Required fields: - `tags`: exactly one `papers/` tag naming the saved domain folder, e.g. `papers/长视频理解`; other tags stay outside `papers/` - `aliases`: English short name or common abbreviation for wikilink resolution - `date`: ISO publication date; use `YYYY` if only the year is known - `doi`: DOI string without the `https://doi.org/` prefix; omit the field entirely if unavailable - `paper_type`: the note plan's `paper_type`, e.g. `method` - `methods`, `datasets`, `tasks`: lists of 0 to 5 core items each; an empty list is written `[]` - `read_date`: the day the paper was first read, as `YYYY-MM-DD`; distinct from the publication `date` These keys stay in English in both `zh-CN` and `en` notes, so one Bases view can query every note. `writing_contract.frontmatter_contract` carries the exact rules, and Final Note Lint checks them. Example: ```yaml --- tags: - papers/NLP aliases: - "Paper Short Name" date: 2024-05-01 doi: 10.18653/v1/2024.acl-long.1 paper_type: method methods: [direct preference optimization] datasets: [Anthropic HH] tasks: [] read_date: 2026-11-06 --- ``` Rules: - Do not invent placeholder values for missing fields; omit them instead. - The `tags` field must always be present with exactly one `papers/` tag, matching the saved domain. - `aliases` should be the paper's short name or acronym (e.g. "GPT-4", "LoRA"), not a paraphrase. - `methods`, `datasets`, and `tasks` name only what is central to the paper, never every term it mentions. - When a value names a term listed in the bundle's `glossary_terms`, write that term's `link` verbatim as a quoted list item, for example `methods: ["[[DPO]]", knowledge distillation]`. A `link` carries a folder path, as in `[[Glossary/DPO|DPO]]`, when another vault file shares the term's file name. Every other value is plain text. These are the only `[[links]]` allowed in the properties block; Formal Save refuses any other. - `glossary_terms.status` other than `ok` means no glossary library shares this vault; write every value as plain text. - When an existing note is replaced, copy `existing_read_date` from the admission result into `read_date`; otherwise use today's date. ## Figure Placeholder Style Use this callout format only for placeholders that remain unresolved in the final note: ```md > [!figure] Fig. 3 数据分布与质量评估 > 建议位置:构造流程与质量控制 > 放置原因:这张图同时展示样本构成、对话长度统计和专家质检结果,是理解 `PsyInterview` 数据边界最重要的图之一。 > 当前状态:保留占位;当前提取结果只拿到局部子图,无法稳定恢复成可独立解释的完整原图。 ``` Formatting rules: - keep the original paper numbering, for example `Fig. 3` or `Table 2` - keep a short human-readable label on the first line - always include `建议位置` - always include `放置原因` - always include `当前状态` `当前状态` should be explicit, for example: - `保留占位;未找到高置信度整图。` - `保留占位;当前只匹配到疑似局部子图,不足以稳定替换。` The structured `[FIGURE_PLACEHOLDER] ... [/FIGURE_PLACEHOLDER]` block is legacy/internal only. Do not use it in the final user-facing note unless you are debugging the pipeline. If a real image has been selected and materialized into the vault, do not keep the `[!figure]` callout for that same figure. Prefer an Obsidian embed, or use a Markdown image embed when that is the available path. The embed must be followed immediately by exactly one italic caption line: ```md ![[Research/Papers/DeepPaperNote/paper_slug/images/figure_2.png]] *论文原图编号:Fig. 2。数据生成流程图。这里插入是因为它最能帮助理解构造流程。* ``` ## Default Section Order 1. `核心信息` 2. `原文摘要翻译` 3. `创新点` 4. `一句话总结` 5. the middle sections of the paper type (`paper-types.md`) 6. `局限` 7. `阅读收获` 8. `关联` 9. `我的笔记` When abstract metadata exists, `原文摘要翻译` should be a single Chinese translation block for the original abstract rather than a bilingual subsection pair. This order is the stable backbone, not a full outline. When the paper is complex, add `###` subsections such as: - the type's workflow subsection, for example `### 方法流程` or `### 构造流程` - `### 为什么结果成立` - `### 哪些地方容易被误读` ## 阅读收获 Section Format ```md ## 阅读收获 ### 可迁移 - 一到两条,每条一两句话:论文里的具体机制或做法、能迁移到哪里、迁移成立的前提。结合用户研究方向的条目以 `判断:` 开头。 ### 下一步 - 一到两条,每条一两句话:针对这篇论文的追问或实验,至少一条检验论文自身的论断或证据;推荐的论文必须已出现在 `关联` 中。 ``` ## 我的笔记 Section Format `我的笔记` is always the last section. A generated draft holds exactly this guidance line under the heading: ```md ## 我的笔记 > [!note] 这一节留给你自己:写下你的判断、它和你研究的联系、想验证的点。重新生成这篇笔记时,这一节会原样保留。 ``` Everything from the `## 我的笔记` heading line to the end of the file belongs to the user, including any `##` headings the user adds. Formal Save keeps that block from the note it replaces, unless the old note is byte-identical to its last recorded save or the block is exactly the standard guidance. When the old note has no `## 我的笔记` heading, nothing can be kept and the overwrite prompt says so. ## 关联 Section Format `关联` replaces the old bibliography list. It turns the note into a node of the user's vault: it links to papers the user has already read and names the few prior works this paper builds on. `writing_contract.connections_contract` carries the exact headings, relation labels, limits, and empty statements. ```md ## 关联 ### 库内笔记 - [[InstructGPT.en|InstructGPT]](基线/对比):本文直接拿它作为主要对照模型。 - [[Super_NaturalInstructions.zh-CN|Super-NaturalInstructions]](同一数据集/基准):两篇都在 SuperNI 上报告泛化结果。 ### 关键前置文献 - Ouyang et al. 2022. Training Language Models to Follow Instructions with Human Feedback(基线) - Wang et al. 2022. Super-NaturalInstructions(数据来源) - Brown et al. 2020. Language Models are Few-Shot Learners(骨干模型) ``` ### 库内笔记 - Outside this subsection and the properties block, the generated note carries no `[[link]]`; Final Note Lint fails on one. paper-glossary links terms in the body after saving, and never inside `关联` or `我的笔记`. - Choose only from `connection_candidates` in the synthesis bundle. `cited` holds vault papers this paper cites (matched by DOI, arXiv ID, or title/alias); `related` holds vault papers that share methods, datasets, tasks, or aliases with this paper's body text; a name that appears only in the bibliography does not count. Scripts recall; you judge. Drop a candidate unless one relation below is true and you can state why in one sentence. - Record each kept link in `note_plan.connections` as `{target, relation, reason}`. `target` is the candidate's `target` exactly; `relation` is one key of `connections_contract.relations`; `reason` is the one-sentence justification. The section lists exactly the planned links, in plan order. - Entry format: `- [[target|标题]](关系):理由`. The display title is the paper's short name or title, not the file name. The relation label comes from `connections_contract.relation_labels`: | key | 中文标签 | English label | |---|---|---| | `baseline` | 基线/对比 | baseline | | `extends` | 扩展了它 | extends | | `extended_by` | 被本文扩展 | extended by | | `conflicting_findings` | 结论冲突 | conflicting findings | | `same_task` | 同一任务 | same task | | `same_benchmark` | 同一数据集/基准 | same benchmark | | `shared_method` | 方法同源 | shared method | A relation outside this table is not written. - At most `max_in_vault` (8) entries. Order by importance: baseline, extension, and conflicting findings first; same task, same benchmark, and shared method after. - With no kept link, write exactly one fixed sentence instead of a list: `库里暂无相关笔记`; in workspace mode, `当前为 workspace 模式,未连接知识库`. - Workspace mode has no vault, so the whole note carries no `[[link]]`. In Obsidian mode, Formal Save refuses a generated `[[link]]` (frontmatter included, `我的笔记` excluded) that matches no vault file. ### 关键前置文献 - Three to five works, chosen by how this paper uses them: baseline, backbone model, data source, theoretical basis, or method source. Do not copy the bibliography. - Record them in `note_plan.key_prior_work` as `{work, role}`; the section lists the same works in the same order. - Entry format: `- 作者 年份. 标题(角色)`. Write plain text; never invent a link target. A prior work that already has a vault note belongs in `库内笔记` as well.