用户Labels与Item与Labels的直接关系是什么
Author: simanlxCreated Jul 16, 2026Updated Jul 16, 2026
gorse.InsertUser(client.User{ UserId: "bob", Labels: map[string]interface{}{ "company": "gorse", "location": "hangzhou, china", }, Comment: "Bob is a software engineer.", })
// Insert an item.
gorse.InsertItem(client.Item{
ItemId: "gorse-io:gorse",
IsHidden: false,
Labels: map[string]interface{}{
"topics": []string{"recommendation", "machine-learning"},
},
Categories: []string{"go"},
Timestamp: "2022-02-22",
Comment: "Gorse is an open-source recommender system.",
})
我可理解用户Labels是用户的的偏好标签吗? 如用户喜欢的身高 地区 颜色 用户Labels与 tem的定义标准是什么? 我发现好像支持范围标签了Min Max范围如何定义 实在看懂用户与Item的Labels 的关系 有没有相关的的说明啊
Source: gorse-io/gorse