Ask a question — get curated stories back. Powered by the public /v1/search API.
/v1/search returned${cfgLabel(json)}${esc(JSON.stringify(json, null, 2))}No stories matched. Try a broader question or a longer period.
`; return; } const cards = results.map((r) => { const isStory = Array.isArray(r.items); // With enrichment OFF there is no llm_title, and a story whose cluster has no title falls back in // enrichedOutput to the raw cluster_id ("clu_00QBYK") — not a headline. Prefer the best article's title. const raw = r.llm_title || r.title; const heading = (raw && !/^clu_/.test(raw)) ? raw : ((isStory && r.items && r.items[0] && r.items[0].title) || raw || (isStory ? "(story)" : "(article)")); const url = isStory ? "" : safeUrl(r.url); const h2 = url ? `${esc(heading)}` : esc(heading); const tags = isStory ? [ pill(r.type), pill(r.subtype), pill(r.verdict, r.verdict === "incoherent" ? "verdict-incoherent" : ""), ].join("") : ""; const summary = r.llm_summary || r.summary || ""; const metaBits = isStory ? [ r.source_count != null ? `${r.source_count} source${r.source_count === 1 ? "" : "s"}` : "", span(r.story_span) ] : [ r.source, r.published_at ]; const meta = metaBits.filter(Boolean).map(esc).join(" · "); const articles = isStory && r.items.length ? `${esc(summary)}
` : ""} ${meta ? `` : ""} ${articles}