Can we/How to provide an array as contextual metadata on GetRecommendation?

0

This is a follow up question after this Question.

I am storing contextual metadata on interaction whose value is an array so it is stored as | separated string. The data stores the users licenses at the time of interaction. User may bought new licenses any time. Say, The definition of the Contextual Metadata on interaction is,

{
          "name": "LICENSES",
          "type": "string",
          "categorical": true
 }

And the data can be "L1", "L1|L3",, or "L1|L2|L3" etc. Where L1, L2, L3 are different licenses. Users may have any combination of them.

Now I want to get Recommendations using GetRecommendation based on that context data. I would like to pass the current licenses user have on the Context. Can I pass the | separated string and get the desired result? For example an user has license L1 and L2,

context = {
      'LICENSES': 'L1|L2'
    }

Now my question is, can we pass context like this? And will it work? I want to show items based on the license users have. On the documentation, it never explicitly says that we can provide such categorical data in context. All the examples use a single string, not a | separated array of strings. So I am wondering if I can pass such | separated array of string on context which would work.

One might suggest filtering the Items based on license. But we want to show items without filtering in our case.

질문됨 2년 전256회 조회
1개 답변
0

Hello,

Thank you for using Personalize Service.

Looking at the questions you have asked along with the follow up question, I believe deeper exploration needs to be done on your use case along. To get better assistance, I'd recommend you to open a case with Premium Support Personalize team so that we can discuss more on the use case along with the implementation required for your use case

Open a support case with AWS using the link:

https://console.aws.amazon.com/support/home?#/case/create

AWS
지원 엔지니어
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠