Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location based recommendations #66

Open
NaikSoftware opened this issue May 27, 2019 · 2 comments
Open

Location based recommendations #66

NaikSoftware opened this issue May 27, 2019 · 2 comments

Comments

@NaikSoftware
Copy link

Can I take into account user/item locations in universal recommender? If it is true how to do it? Thanks.

@mick912
Copy link

mick912 commented Dec 12, 2019

I think it will work
input:

{
   "event" : "$set",
   "entityType" : "item",
   "entityId" : "iPad",
   "properties" : {
      "category": ["electronics", "mobile"],
      "country": ["UK"]
      "expireDate": "2016-10-05T21:02:49.228Z"
   },
   "eventTime" : "2015-10-05T21:02:49.228Z"
}

query:

{
  "rules": [
    {
      "name": "country"
      "values": ["UK"],
      "bias": -1
    }  ]
}

@zebraf1
Copy link

zebraf1 commented Jun 17, 2022

Yes, you can add a property to item which has array of values. When quering you can filter only items which have this property value using bias -1 or boost it's value by using bias > 1. Using a value between 0 and 1 deboosts it and using 0 excludes it.

I this this issue should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants