mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-09-23 18:38:11 +00:00
Vectorizer 新增可选的 EmbedImage(img []byte, mime string) (Vector, error): 支持视觉嵌入的实现者(如 CLIP/MobileCLIP)覆写此方法;不支持的 (StaticEmbedder、TFIDFVectorizer)返回 ErrNotSupported 调用方按文本降级。 这是路线 3(完整跨模态检索)的接口基础:后续在 media.Store 里, Describe 时同时算视觉向量并存库,QueryMedia 做跨模态混合检索。