Milvus 3.0 Function Chain 演示:在检索层内完成电商重排
Milvus 放了个电商搜索 demo,语义召回后直接在库里用 XGBoost 重排,不用再搭一层排序服务,代码也开源了。
Milvus 3.0 的 Function Chain 演示展示了一条完整的电商搜索重排路径:BGE-M3 将查询转为向量,Milvus 用 COSINE 相似度召回 top 20 商品。随后服务端的 Function Chain 计算热度、价格偏好、新鲜度和归一化语义分,再由 XGBoost 模型融合成最终业务分。与在 FastAPI 或前端重建排序管线不同,最终重排直接在 Milvus 内部完成。该模式适用于语义相似度只是排序起点之一的场景,如商品搜索中还需综合评分、热度、价格和上新时间。
A shopper searching for “a compact dark wood desk for a small home office” cares about semantic relevance. A commerce ranking may also need to consider rating, popularity, price, and freshness. 𝗧𝗵𝗲 𝗠𝗶𝗹𝘃𝘂𝘀 𝟯.𝟬 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝗖𝗵𝗮𝗶𝗻 𝗿𝗲𝗿𝗮𝗻𝗸 𝗱𝗲𝗺𝗼 𝘀𝗵𝗼𝘄𝘀 𝗵𝗼𝘄 𝘁𝗼 𝗰𝗼𝗺𝗯𝗶𝗻𝗲 𝘁𝗵𝗲𝗺 𝗶𝗻 𝗼𝗻𝗲 𝗿𝗲𝘁𝗿𝗶𝗲𝘃𝗮𝗹 𝗽𝗮𝘁𝗵: • BGE-M3 converts the query into an embedding. • Milvus runs COSINE vector search and recalls the top 20 products. • A server-side Function Chain calculates popularity, price affinity, freshness, and a normalized semantic score. • An XGBoost model combines the features into a new business score. • Milvus returns the reranked results. One thing worth noting: the final ranking happens inside Milvus, not in FastAPI or the frontend. This pattern is useful whenever semantic similarity is only the starting point. Product search, for example, may also rank results by rating, popularity, price, and freshness. Instead of retrieving candidates and rebuilding the ranking pipeline in another service, the retrieval layer demos.milvus.io/function-chain… and re github.com/zc277584121/mi… esult set. Try it: https://t.co/hoehlDbKFu Code: https://t.co/yDdf0tIO5f 💬 0 🔄 0 ❤️ 0 👀 27 ⚡