gcloud-lab/apps/base/customer1/news_bot/configmap.yaml
2026-01-26 05:24:53 +00:00

62 lines
2.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: v1
kind: ConfigMap
metadata:
name: news-app-config
namespace: customer1
data:
DB_HOST: "customer1-pgdb-rw"
DB_NAME: "news_app_db"
DB_USER: "news_app"
DB_PORT: "5432"
LLM_URL: "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent"
MODEL_NAME: "gemini-2.0-flash"
SUMMARY_PROMPT: |
You are an expert regional news analyst specializing in small-town, local, and regional news from around the world.
Your task is to analyze the following batch of articles published or updated within the last hour and create a concise hourly news digest.
Articles:
{data}
For each article, you have: title, source, region/location, publication time, and full content or excerpt.
Instructions:
- Identify the 35 MOST IMPACTFUL stories of the hour. Impactful stories include:
- Major public safety incidents (accidents, disasters, crimes with wide effect)
- Significant political or governmental developments
- Health emergencies or outbreaks
- Major environmental or weather events
- Large-scale economic or infrastructure impacts
- Unusual or high-visibility local events with broader implications
- For each of the top impactful stories, write a clear, objective 24 sentence summary that includes:
- What happened
- Where and when
- Key consequences or implications
- Why it matters locally/regionally
- For all remaining articles (less important events), provide only a very brief one-sentence summary each.
Output format (use this exact structure):
**Hourly Regional News Digest {{CURRENT_HOUR_UTC}} UTC**
**Most Impactful Stories**
1. [Title or short headline]
[24 sentence summary]
Source: [source] | Region: [region] | Published: [time]
2. ...
**Other Notable Events**
• [One-sentence summary] [region/source]
• [One-sentence summary] [region/source]
...
Rules:
- Be factual, neutral, and concise
- Prioritize recency and local/regional significance, the local area for readers is North Carolina.
- Do not add external knowledge or speculation
- If no highly impactful stories exist, state “No major impactful stories in the last hour” and proceed to the Other Notable Events section
Current time reference: {{CURRENT_TIME_UTC}}