Skip to content

Commit e0588eb

Browse files
feat(web): cite the measured router lift in the router-off copy
The router-off notices read as "the headline feature is missing" with no evidence it exists. They now carry the offline measurement (+35% recall over text-only on MMLongBench) and link docs/results.md, so the disclaimer doubles as the pointer to the result.
1 parent f0e6b5b commit e0588eb

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

web/app/chat.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function AdvancedPanel({ settings, set, papers, routingAvailable }) {
3838
{ value: "visual", label: "visual", disabled: noRouter, disabledTitle: offTitle },
3939
{ value: "agentic", label: "agentic" }]} />
4040
{noRouter &&
41-
<span className="field-note">visual routing needs the GPU leg — off on this deployment; figure questions still work via page images</span>
41+
<span className="field-note">visual routing needs the GPU leg — off on this CPU deployment (offline: +35% recall over text-only); figure questions still work via page images</span>
4242
}
4343
</div>
4444
<div className="field">
@@ -210,7 +210,7 @@ function RetrievalPanel({ turn, highlight, settings, paperTitle, routingAvailabl
210210
<h4>Routing decision</h4>
211211
{routingAvailable === false ? (
212212
<div className="route-card">
213-
<span className="cand-src">router off on this deployment — every turn retrieves text-side; figure questions are answered from page images at generation time</span>
213+
<span className="cand-src">router off on this CPU-only deployment — offline it measures <b>+35% recall</b> over text-only retrieval on MMLongBench (<a href="https://github.com/NorthernLightx/SpectraRAG/blob/main/docs/results.md" target="_blank" rel="noopener">results</a>). Here every turn retrieves text-side; figure questions read the page images at generation.</span>
214214
</div>
215215
) : (
216216
<div className="route-card">

web/app/inspection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function InspectionView({ settings, papers, routingAvailable }) {
157157
{visCands.length
158158
? visCands.map((c, i) => <InspRow key={i} c={c} onOpen={setPageItem} />)
159159
: <div className="retr-empty">{routingAvailable === false
160-
? "Not built on this deployment — the visual leg needs a GPU, so retrieval runs text-side only. Figure questions are still answered from page images at generation time."
160+
? <span>Not built on this deployment — the visual leg needs a GPU. Offline it measures +35% recall@10 over text-only retrieval (<a href="https://github.com/NorthernLightx/SpectraRAG/blob/main/docs/results.md" target="_blank" rel="noopener">results</a>); here retrieval runs text-side and figure questions are answered from page images at generation time.</span>
161161
: "No visual candidates passed the gate for this query."}</div>}
162162
</div>
163163
</div>

web/app/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ body {
302302
.model-row.locked:hover { opacity: .8; background: var(--panel-2); }
303303
.endpoint-cta { margin-top: 11px; width: 100%; justify-content: center; }
304304
.endpoint-keystat a { color: var(--accent); }
305+
.route-card a, .retr-empty a { color: var(--accent); }
305306

306307
/* settings row (now holds New chat) */
307308
.adv-toggle-row {

0 commit comments

Comments
 (0)