Primary source掘金本周最热
View sourceEvent ·Multi-source
本地图库语义搜索实战:接蓝耘元生代,让"傍晚的海边"能搜到图
作者把本地图库改造成语义搜索,索引一遍后输入"傍晚的海边"这类自然语言就能找出目标图。链路分七层,只有看图和拆搜索词两层调模型,分别用 qwen3.5-omni-plus 多模态模型和 qwen3.8-max 文本模型,其余目录遍历、哈希去重、索引排序全在本地。接入走 OpenAI 兼容协议,config.py 里相关的配置只有几行环境变量。图片发送前先在本地压缩长边并生成缩略图,因为输入 token 与像素面积大致成正比。提示词要求输出严格 JSON、标签控制在 8 到 15 个,代码里再截取首尾花括号做解析兜底。
Current read
本地图库接两个模型就能用中文搜照片,分层思路、提示词写法和 JSON 解析兜底都能直接抄。
8 sources29° AI heatLast updated 2026/9/20 09:06:28
Evidence
8 sourcesRelated source 1Blognone
View sourceRelated source 2The Rundown AI
View sourceRelated source 3Gary Marcus
View sourceRelated source 4AI Engineer
View sourceRelated source 5阿里通义 Qwen
View sourceRelated source 6arXiv: OpenAI
View sourceRelated source 7Simon Willison’s Weblog
View sourceConflict check
Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.