ai-tech-summary
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAI Tech Summary
AI Tech 摘要
Core Goal
核心目标
- Pull the right records and fields for a requested time range.
- Package evidence into a compact JSON context for RAG.
- Let the agent synthesize final summary text from retrieved evidence.
- Support daily, weekly, monthly, and custom time windows.
- 提取请求时间范围内的正确记录和字段。
- 将证据打包为适用于RAG的紧凑JSON上下文。
- 让Agent基于检索到的证据合成最终摘要文本。
- 支持每日、每周、每月及自定义时间窗口。
Triggering Conditions
触发条件
- Receive requests for daily, weekly, or monthly digests.
- Receive requests for arbitrary date-range summaries.
- Need evidence-grounded summary output from RSS entries/fulltext.
- Need agent-generated summary style rather than rigid scripted report format.
- 收到生成每日、每周或每月摘要的请求。
- 收到生成任意日期范围摘要的请求。
- 需要基于RSS条目/全文生成有证据支撑的摘要输出。
- 需要Agent生成的摘要风格,而非僵化的脚本化报告格式。
Input Requirements
输入要求
- Required tables in SQLite: ,
feeds(fromentries).ai-tech-rss-fetch - Optional table: (from
entry_content).ai-tech-fulltext-fetch - Shared DB path should be the same across all RSS skills.
- In multi-agent runtimes, set to one absolute DB path for this agent.
AI_RSS_DB_PATH
- SQLite中需包含必填表:、
feeds(来自entries)。ai-tech-rss-fetch - 可选表:(来自
entry_content)。ai-tech-fulltext-fetch - 所有RSS技能需使用相同的共享数据库路径。
- 在多Agent运行环境中,需为该Agent设置为一个绝对数据库路径。
AI_RSS_DB_PATH
RAG Workflow
RAG工作流
- Retrieve evidence context by time window.
bash
export AI_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/ai_rss.db"
python3 scripts/time_report.py \
--db "$AI_RSS_DB_PATH" \
--period weekly \
--date 2026-02-10 \
--max-records 120 \
--max-per-feed 20 \
--summary-chars 8192 \
--fulltext-chars 8192 \
--pretty \
--output /tmp/ai-tech-weekly-context.json- Load retrieval output and generate final summary in agent response.
- Read ,
query,dataset,aggregates.records - Prioritize as evidence source.
records - Mention key trends, major events, and notable changes grounded in records.
- Include evidence anchors in summary.
- Reference , feed, and URL for key claims.
entry_id - If retrieval is truncated, state that summary is based on sampled top records.
- 按时间窗口检索证据上下文。
bash
export AI_RSS_DB_PATH="/absolute/path/to/workspace-rss-bot/ai_rss.db"
python3 scripts/time_report.py \
--db "$AI_RSS_DB_PATH" \
--period weekly \
--date 2026-02-10 \
--max-records 120 \
--max-per-feed 20 \
--summary-chars 8192 \
--fulltext-chars 8192 \
--pretty \
--output /tmp/ai-tech-weekly-context.json- 加载检索输出并在Agent响应中生成最终摘要。
- 读取、
query、dataset、aggregates。records - 优先将作为证据来源。
records - 提及基于记录的关键趋势、重大事件和显著变化。
- 在摘要中包含证据锚点。
- 为关键论断引用、来源Feed和URL。
entry_id - 若检索结果被截断,需说明摘要基于抽样的顶级记录。
Time Window Modes
时间窗口模式
--period daily --date YYYY-MM-DD--period weekly --date YYYY-MM-DD--period monthly --date YYYY-MM-DD--period custom --start ... --end ...- Time filtering is always based on (UTC).
entries.first_seen_at
Custom boundaries support both and ISO datetime.
YYYY-MM-DD--period daily --date YYYY-MM-DD--period weekly --date YYYY-MM-DD--period monthly --date YYYY-MM-DD--period custom --start ... --end ...- 时间过滤始终基于(UTC时间)。
entries.first_seen_at
自定义边界支持格式和ISO日期时间格式。
YYYY-MM-DDField Selection for RAG
RAG字段选择
- Use to control token budget and relevance.
--fields - Default fields are tuned for summarization:
entry_id,timestamp_utc,timestamp_source,feed_title,feed_url,title,url,summary,fulltext_status,fulltext_length,fulltext_excerpt
- Common minimal field set for tight context:
entry_id,timestamp_utc,feed_title,title,url,summary
- 使用控制token用量和相关性。
--fields - 默认字段为摘要优化配置:
entry_id,timestamp_utc,timestamp_source,feed_title,feed_url,title,url,summary,fulltext_status,fulltext_length,fulltext_excerpt
- 适用于紧凑上下文的常用最小字段集:
entry_id,timestamp_utc,feed_title,title,url,summary
Recommended Agent Output Pattern
推荐的Agent输出格式
- Use this order in final response:
- Time range scope
- Top themes/trends
- Key developments (grouped)
- Risks/open questions
- Evidence list (entry ids + URLs)
- 最终响应遵循以下顺序:
- 时间范围说明
- 核心主题/趋势
- 关键进展(分组展示)
- 风险/待解决问题
- 证据列表(条目ID + URL)
Configurable Parameters
可配置参数
--db- (recommended absolute path in multi-agent runtime)
AI_RSS_DB_PATH --period--date--start--end--max-records--max-per-feed--summary-chars--fulltext-chars--top-feeds--top-keywords--fields--output--pretty--fail-on-empty
--db- (多Agent运行环境中推荐使用绝对路径)
AI_RSS_DB_PATH --period--date--start--end--max-records--max-per-feed--summary-chars--fulltext-chars--top-feeds--top-keywords--fields--output--pretty--fail-on-empty
Error Handling
错误处理
- Missing /
feeds: fail fast with setup guidance.entries - Invalid date/time/field list: return parse errors.
- Missing : continue in metadata-only mode.
entry_content - Empty retrieval set: return empty context; optionally fail with .
--fail-on-empty
- 缺少/
feeds表:快速失败并提供设置指引。entries - 无效的日期/时间/字段列表:返回解析错误。
- 缺少表:继续以仅元数据模式运行。
entry_content - 检索结果为空:返回空上下文;可通过参数设置失败返回。
--fail-on-empty
References
参考资料
references/time-window-rules.mdreferences/report-format.md
references/time-window-rules.mdreferences/report-format.md
Assets
资源文件
assets/config.example.json
assets/config.example.json
Scripts
脚本文件
scripts/time_report.py
scripts/time_report.py