GetPersonalizedRanking
Source:
src/AWS/Personalize/GetPersonalizedRanking.ts
Runtime binding for personalize:GetPersonalizedRanking — Re-ranks a caller-supplied list of items for a user using a campaign
backed by the Personalized-Ranking recipe. Campaign ARNs are chosen at
runtime, so the binding takes no arguments and grants
personalize:GetPersonalizedRanking on *.
Provide the implementation with
Effect.provide(AWS.Personalize.GetPersonalizedRankingHttp).
Serving Recommendations
Section titled “Serving Recommendations”// initconst getPersonalizedRanking = yield* Personalize.GetPersonalizedRanking();
const { personalizedRanking } = yield* getPersonalizedRanking({ campaignArn, userId: "user-1", inputList: ["item-1", "item-2", "item-3"],});