Skip to content

fix: tighten AI summary prompts to 2 sentences / 60 words max#404

Merged
koala73 merged 2 commits intomainfrom
fix/concise-summaries
Feb 26, 2026
Merged

fix: tighten AI summary prompts to 2 sentences / 60 words max#404
koala73 merged 2 commits intomainfrom
fix/concise-summaries

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 26, 2026

Summary

  • Summaries in AI Insights were verbose paragraphs instead of concise briefs
  • Changed all prompts from "2-3 sentences" to "2 concise sentences MAX (under 60 words total)"
  • Added "no elaboration beyond the core facts" rule to prevent rambling
  • Reduced max_tokens from 150 to 100 as a hard cap
  • Updated brief, analysis, fallback, and browser-local ML prompts

Test plan

  • tsc --noEmit passes
  • Verify AI Insights panel shows shorter summaries after deploy

…uards

- list-commodity-quotes: replace Promise.all with fetchYahooQuotesBatch to prevent Yahoo 429
- get-sector-summary: add Yahoo Finance fallback when FINNHUB_API_KEY is missing
- list-etf-flows: sequential fetch loop + add missing try-catch around cachedFetchJson
- get-macro-signals: replace unnecessary Promise.allSettled([single]) with direct await
Summaries were often verbose walls of text despite "2-3 sentences" in
the prompt. Changed to "2 concise sentences MAX (under 60 words total)"
across all brief, analysis, and fallback prompts. Reduced max_tokens
from 150 to 100 to hard-cap output length.
@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Feb 26, 2026 9:11am
worldmonitor-finance Building Building Preview, Comment Feb 26, 2026 9:11am
worldmonitor-happy Building Building Preview, Comment Feb 26, 2026 9:11am
worldmonitor-startup Building Building Preview, Comment Feb 26, 2026 9:11am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant