每篇内容都被抽象成一个标签集合(比如标题,来源,正文... 都是标签),在管道的每一个节点,可以基于自定义 Prompt 对特定标签值进行处理(比如评分、分类、摘要、过滤、添加新标签等...),而后基于标签查询过滤,路由,展示... See Rewrite Rules
@
shot 你看这个符合需求不,安装后在前端的“高级设置”中自定义
https://github.com/glidea/zenfeed/blob/main/docs/config-zh.md#%E9%87%8D%E5%86%99%E8%A7%84%E5%88%99%E9%85%8D%E7%BD%AE-storagefeedrewritesFor example:
```yaml
rewrites:
- skip_too_short_threshold: 0
match_re: ^[\s\S]{0,300}$ # 丢掉 300 字以内的短文
action: drop_feed
- skip_too_short_threshold: 0
transform:
to_text:
llm: qwen-small
prompt: "{{ .score }}" # 给内容打分(使用内置 Prompt )
label: score
- source_label: score # 引用刚刚的分数
skip_too_short_threshold: 0
match_re: ^[0-6]$ # 6 分及以下丢掉
action: drop_feed
- transform:
to_text:
llm: qwen-small
prompt: "{{ .category }}" # 给内容分类,后续你可以根据分类 Group by 查询,或者一个分类一个邮件...
label: category
- transform:
to_text:
llm: qwen-small
prompt: |
{{ .tags }}
使用中文回复 # 打 tags 。在内置 Prompt 的基础上补充要求
label: tags
- transform:
to_text:
llm: qwen-small
prompt: |
{{ .summary_html_snippet }} # 总结成可视化的 html ,也就是上面预览看到的内容
label: summary_html_snippet
```