{% extends "base.html" %} {% set active = 'search' %} {% block title %}{{ node.name }} · DocGraph{% endblock %} {% block content %}

搜索 / {{ node.kind.value }}

{{ node.name }}

{{ node.kind.value }} · doc {{ node.doc_id | short_id }} · page {{ node.location.page or '—' }} · id {{ node.id }}

{% if node.summary %}
{{ node.summary }}
{% endif %}
qualified
{{ node.qualified_name or '—' }}
section
{{ node.location.section_path or '—' }}
source
{{ node.attrs.get('source', '—') }}
source blocks
{{ blocks|length }}
source chunks
{{ chunks|length }}
{% if neighbors %}

关联节点

{% for n in neighbors %} {% endfor %}
kindnamepagesummary
{{ n.kind.value }} {% if n.kind.value == 'register' %} {{ n.name }} {% else %} {{ n.name }} {% endif %} {{ n.location.page or '—' }} {{ n.summary | short(120) }}
{% endif %} {% if edges %}

关系

{% for e in edges %} {% endfor %}
kindsrcdstconfidence
{{ e.kind.value }} {{ e.src | short_id }} {{ e.dst | short_id }} {{ "%.2f"|format(e.confidence or 0) }}
{% endif %} {% if chunks %}

L1 Chunks

{% for c in chunks %} {% endfor %}
kindpagesectionchunk
{{ c.kind }} {% if c.page_start and c.page_end and c.page_start != c.page_end %} {{ c.page_start }}-{{ c.page_end }} {% else %} {{ c.page or c.page_start or '—' }} {% endif %} {{ c.section_id or '—' }} 证据
{% endif %} {% if blocks %}

L0 证据

{% for b in blocks %}
{{ b.kind.value }} {{ b.id }} p.{{ b.page }}
{% if b.text %}
{{ b.text | pretty_text }}
{% endif %} {% if b.table %} {% set t = b.table %} {% if t.caption %}

{{ t.caption }}

{% endif %}
{% if t.headers %} {% for h in t.headers %}{% endfor %} {% endif %} {% for row in t.rows %} {% for cell in row %}{% endfor %} {% endfor %}
{{ h }}
{{ cell }}
{% endif %} {% if b.image_path %}

image: {{ b.image_path }}

{% endif %}
{% endfor %}
{% endif %}
原始 JSON
{{ node.model_dump_json(indent=2) }}
{% endblock %}