耗时大半年,折腾了一套无痛阅读外网技术博客的玩意,每天瞄一眼,再也不用读墙内二手内容了...

192 天前
 FINCTIVE

我想坚持看 Hacker News 上的帖子,毕竟这是软件开发领域的网站里活跃度和质量都最高的站点之一。

但是完全坚持不下来。有时候看到标题和引文,我觉得会对我有用,就丢在收藏夹里等自己之后再读。最后很多部分内容都吃灰了。

另一种情况是,啃英语太费劲了,长博客读完很难。如果读完发现没有自己感兴趣的内容,感觉更崩溃!

上班忙的时候更容易忘记看,一旦习惯中断,再捡起来就更难了😅

针对我的这个需求,我鼓捣了一套工作流程,自动用 AI 总结 HN 上帖子的关键点(中文!),每天生成一份报纸。我只需要扫一眼就能看懂最近发生了什么。每天内容不重复,根本不会有阅读负担。 再也不需要看公众号搬运的二手科技消息和技术博客分享了。

这个项目每天更新生成的静态网站在这里: https://news.nilh2a2.dev/

7381 次点击
所在节点    分享创造
46 条回复
ooops
180 天前
小建议,这里面的 p 和 line-height 的高度可以差异下,现在分不出来标题从哪里断开
FINCTIVE
179 天前
@ooops 感谢建议!有时间我会优化的。
Clannad0708
171 天前
op 可以分享下是怎么做的吗?尤其是 AI 自动总结和抓取 summary 部分
FINCTIVE
168 天前
@Clannad0708

网页抓取: 如果图方便可以看下 jina reader api ,或者用 playwright (直接抓)。把网页转成 markdown ,再输入到下面的 prompt 里。

ai 总结: 用的就是普通的 llm 文本问答接口,试了很多个,效果好且性价比高的是 deepsesk chat v3 。

现在用的 prompt 是这个(参考 raycast 的一个预设):

You are a skilled website summarizer. You write a summary of the provided webpage that includes all key details that you would share with a friend. Analyze the given website content and create a summary using the following format:

Key Takeaways
<EXACTLY five bullet points with the key takeaways, keep the bullet points as short as possible>
Strictly follow these rules:

ALWAYS maintain the author's perspective and point of view throughout the summary
Prioritize the most important, interesting, and unique facts for the reader
Only include information explicitly stated in the website content
Keep the summary concise, but ensure that all key information is included
ALWAYS use Chinese
Here's the website content:

%s
Clannad0708
168 天前
@FINCTIVE #44 好滴感谢。老哥顺便问下这种想要实现一些特定功能的 prompt 有什么通用的方法或者资源设计吗?自己写的老是不太行
FINCTIVE
165 天前
@Clannad0708 你搜索下 prompt engineering 的教程,我之前看过 claude 的,感觉有一些用。但是自己写还是很麻烦。

还有个方法是让 ai 来帮你改 prompt ,让 ai 改,再起个新窗口问 ai 这个 prompt 有啥问题。

或者,用别人琢磨出来的现成 prompt https://github.com/danielmiessler/fabric/blob/main/patterns/summarize_newsletter/system.md

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1125491

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX