You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fan-out by-prompt view: show run count / fan-out coverage next to sub-query count #543
In Prompts → Fan-out → By prompt, each row shows only the number of distinct sub-queries. Users can't tell how that relates to tracking volume: a prompt with 500 tracking runs and 1 observed fan-out means the answer engines are essentially not searching for that prompt — a very different story from 10 runs / 8 fan-outs. Without the denominator, the signal is invisible.
Proposal
Add fan-out coverage to the by-prompt table: alongside the sub-query count, show runs with fan-out / total runs in the window (e.g. 12 / 500 · 2%).
Data — zero extra queries:fetchFanoutRows in web/src/lib/actions/fanout.ts already fetches allprompt_results rows in the window (there is deliberately no server-side non-empty filter on search_queries; empty rows are skipped in JS). Extend the same aggregation pass to also count, per prompt:
totalRuns — all fetched rows for the prompt,
runsWithFanout — rows where at least one valid sub-query was observed.
Expose both on the by-prompt payload and render in _fanout-tab.tsx (by-prompt view), e.g. a muted 12/500 (2%) cell or badge next to the existing sub-query count.
Notes:
Counts are scoped to the same fetched window (days + FANOUT_MAX_ROWS cap) as the sub-query data, so numerator and denominator always describe the same slice.
Low coverage is expected for engines that rarely search (e.g. plain ChatGPT web answers) — a per-engine coverage breakdown could be a v2; v1 keeps the single ratio.
Tooltip copy suggestion: "Of N tracked answers in this window, X triggered live searches."
Acceptance criteria
By-prompt rows show sub-query count and runs-with-fanout / total-runs (+ percentage) for the selected window.
Numbers are consistent with the frequency view's data (same fetch, same window).
A prompt with many runs and zero fan-outs clearly reads as 0/N (0%) rather than just an absent row.
Activity
BharadwajKanneveti commentedon Jul 28, 2026
Hi @gkhngyk I will work on this issue.
arambu1a commentedon Aug 5, 2026
Hi @gkhngyk I'll work on this