8.0
热点
AI SCORE
编程提效2026-08-15 05:54
别分类,直接「幻觉」标签:LLM标签推荐新思路
Simon Willison#LLM#向量检索#标签系统
Editor brief · 编辑速览
Simon Willison介绍利用LLM「幻觉」生成候选标签、再用向量嵌入匹配已有标签库的方法,可绕过标签过多无法穷举的难题。
不要分类,去「幻觉」!
我博客上还有不少旧内容一直没来得及打标签。我的博客有 1856 个标签——这个数量可能太多,无法一次性丢给 LLM 然后问它「以下内容匹配哪些标签」。
Doug Turnbull 有一个巧妙的解决方案:不向模型展示现有标签词表,直接让它输出标签,然后用向量嵌入在现有语料库中找到与模型「臆想」出的标签最接近的实体标签!
他的示例提示词建议包含一个标签格式的示例,帮助模型做出更有用的猜测:
Your task is to create novel, never seen before, furniture, home goods, or hardware classification that best fit a search query.
Product classifications might look like:
Furniture / Living Room Furniture / Coffee Tables & End Tables / Coffee Tables
Décor & Pillows / Decorative Pillows & Blankets / Throw Pillows
Furniture / Bedroom Furniture / Dressers & Chests
Kitchen & Tabletop / Kitchen Organization / Food Storage & Canisters
School Furniture and Supplies / School Furniture / School Chairs & Seating / Stackable Chairs
Baby & Kids / Toddler & Kids Bedroom Furniture / Kids Beds
Here's the query to generate classifications for:
现在我们有了 OpenAI 对 Hugging Face 意外攻击的时间线——2026 年 8 月 7 日
用 Claude Fable 5 一枪通关浣熊盗窃游戏——2026 年 8 月 5 日
LLM 新增版本支持推理轨迹、OpenAI Responses、服务端工具和更智能的日志——2026 年 8 月 4 日
这是 Simon Willison 的链接帖,发布于 2026 年 8 月 14 日。
每月赞助 $10,即可获得当月最重要 LLM 动态的精选邮件摘要。
付钱让我少发邮件!