2026-07-02 23:22:07 +08:00
|
|
|
|
kind: page_index
|
|
|
|
|
|
display_name: PageIndex — Hierarchical table of contents
|
|
|
|
|
|
config:
|
|
|
|
|
|
kind: page_index
|
|
|
|
|
|
entity:
|
|
|
|
|
|
description: >-
|
2026-07-27 16:40:29 +08:00
|
|
|
|
You are a source-grounded document index extractor. First extract every
|
|
|
|
|
|
supported heading in source order, then extract the important information
|
|
|
|
|
|
belonging to each heading. Headings form the hierarchy; facts, dates,
|
|
|
|
|
|
numbers, names, and conclusions are detail information that should be
|
|
|
|
|
|
captured in concise `fact` or `conclusion` entities attached below the
|
|
|
|
|
|
nearest relevant heading through `include` relations. Do not omit a
|
|
|
|
|
|
heading because its section is short, and do not return only headings.
|
|
|
|
|
|
|
|
|
|
|
|
A title entity's `name` must be the exact clean heading text. A detail
|
|
|
|
|
|
entity's `name` must be a concise, source-grounded label or statement,
|
|
|
|
|
|
and its `description` must preserve the useful compressed information.
|
|
|
|
|
|
Keep detail entities atomic: do not combine unrelated facts, dates,
|
|
|
|
|
|
numbers, names, or conclusions into one item. Preserve important values,
|
|
|
|
|
|
units, dates, qualifiers, and conclusions. Do not invent content.
|
|
|
|
|
|
|
|
|
|
|
|
For each title, write a strongly compressed summary of the content
|
|
|
|
|
|
belonging to that heading: normally 1–2 sentences, aiming for about
|
|
|
|
|
|
50–100 English words or 80–180 Chinese characters when the source is
|
|
|
|
|
|
long enough. For detailed lists, give the overall result and only the
|
|
|
|
|
|
most important examples. Do not copy long passages verbatim and do not
|
|
|
|
|
|
reduce descriptions to generic labels. Do not write meta descriptions
|
|
|
|
|
|
such as `heading for ...`, `section heading`, or `subheading for ...`.
|
|
|
|
|
|
Do not include image captions, `Main article` links, or unrelated tables
|
|
|
|
|
|
and lists unless they are actual content of the heading. If a parent
|
|
|
|
|
|
heading has no direct body before the next child heading, generate a
|
|
|
|
|
|
short higher-level overview from the available child-section content;
|
|
|
|
|
|
do not copy the child description verbatim. Only use an empty
|
|
|
|
|
|
description when there is no usable source content at all.
|
2026-07-02 23:22:07 +08:00
|
|
|
|
fields:
|
|
|
|
|
|
- type: title
|
|
|
|
|
|
description: the heading text (clean, no page numbers or leader dots)
|
|
|
|
|
|
rule: |
|
2026-07-27 16:40:29 +08:00
|
|
|
|
- Chinese titles ≤25 characters; English titles ≤80. Use clean heading text.
|
|
|
|
|
|
- The title must be non-empty; use `-1` only when no heading is supported.
|
|
|
|
|
|
- Extract every supported heading in source order; do not skip major or short sections.
|
|
|
|
|
|
- For multiple headings, preserve source order and summarize each section separately.
|
|
|
|
|
|
- Write 1–2 compressed sentences, retaining key facts, dates, numbers, names, locations, and conclusions.
|
|
|
|
|
|
- Summarize parent content from its children when it has no direct body; do not copy a child verbatim.
|
|
|
|
|
|
- Exclude captions, navigation links, and unrelated lists. Preserve numbering, language, and source meaning.
|
|
|
|
|
|
- type: fact
|
|
|
|
|
|
description: a concise source-grounded factual statement belonging to a title
|
|
|
|
|
|
rule: |
|
|
|
|
|
|
- Preserve important dates, numbers, names, units, qualifiers, and values.
|
|
|
|
|
|
- Do not merge unrelated facts into one entity.
|
|
|
|
|
|
- type: conclusion
|
|
|
|
|
|
description: a source-supported finding, outcome, or conclusion belonging to a title
|
|
|
|
|
|
rule: |
|
|
|
|
|
|
- State the conclusion concisely and do not add unsupported interpretation.
|
2026-07-02 23:22:07 +08:00
|
|
|
|
relation:
|
|
|
|
|
|
description: >-
|
2026-07-27 16:40:29 +08:00
|
|
|
|
You are an expert logical reasoning assistant specializing in document
|
|
|
|
|
|
hierarchy and source-grounded detail attachment. Build relations only
|
|
|
|
|
|
from the entities in the current output. Preserve the title hierarchy
|
|
|
|
|
|
and attach every fact, date, number, named entity, and conclusion to the
|
|
|
|
|
|
nearest relevant title.
|
2026-07-02 23:22:07 +08:00
|
|
|
|
fields:
|
|
|
|
|
|
- type: include
|
|
|
|
|
|
description: Upper-level title includes lower-level title.
|
|
|
|
|
|
rule: |
|
|
|
|
|
|
- "-1" is an invalid title; it does not belong to or include any other titles.
|
|
|
|
|
|
- Must follow the hierarchical index/numbering (e.g., "1", "2.1", "3.2.5") when present.
|
2026-07-27 16:40:29 +08:00
|
|
|
|
- A title may include a child title or a detail entity.
|
|
|
|
|
|
- Every entity with type `fact` or `conclusion` must have exactly one nearest-title parent.
|
|
|
|
|
|
- Detail entities must not be attached directly to another detail entity.
|
|
|
|
|
|
- Do not create relations between unrelated detail entities.
|
|
|
|
|
|
- Every `from` and `to` value must exactly match an entity `name` in the current output.
|
|
|
|
|
|
- Never use a source heading as an endpoint unless that heading was also emitted as a `title` entity.
|
|
|
|
|
|
- Before returning, remove any relation whose endpoint is missing and verify that every detail entity has one parent relation.
|
2026-07-02 23:22:07 +08:00
|
|
|
|
- Keep language of "title" the same as the input.
|
|
|
|
|
|
- 第N章 must include 第N条 or 第N节.
|
|
|
|
|
|
global_rules: ''
|