{# FE2-4: related-work fragment — lazy-loaded into #corpus-related. Context: doi — the seed paper's DOI (embedded literally in hx-get URLs; the {doi:path} route accepts "10.x/y" verbatim, so NO urlencode on the path. Query VALUES (mode) are urlencode'd — the FE2-2 lesson). mode — active retrieval mode ("vector" | "graph" | "hybrid"). related — list of {doi, score[, title], source} dicts, or None for the no-data path. Each row carries an explicit `source` ("vector"|"graph"|"hybrid") set by how it was actually found; the per-row provenance pill below renders that truthfully so a vector neighbour is NEVER presented as a graph relationship. None means: graph/hybrid → graph-not-built notice; vector → no-embedded-neighbours notice. error — True when the retrieval raised (generic notice, no detail leaked). All content is rendered through Jinja autoescape ONLY — never |safe. #}