Personalize your search results with Amazon Personalize and Amazon OpenSearch Service integration

TutoSartup excerpt from this article:
Rank Item_ID Item_Name Description Gender_Affinity 1 1bcb66c4-ee9d-4c0c-ba53-168cb243569f Women’s Grooming Kit A must-have in every bathroom F 2 f91ec34f-a08e-4408-8bb0-592bdd09375c Besto Hairbrush for Women Soft bru…

Amazon Personalize has launched a new integration with Amazon OpenSearch Service that enables you to personalize search results for each user and assists in predicting their search needs. The Amazon Personalize Search Ranking plugin within OpenSearch Service allows you to improve the end-user engagement and conversion from your website and app search by taking advantage of the deep learning capabilities offered by Amazon Personalize. This feature is also available with self-managed OpenSearch.

Search is crucial in engaging users because it brings high-intent traffic from individuals seeking specific products or categories. Previously, customers found it challenging to capitalize on this traffic and provide relevant search results to their users due to infrastructure limitations or lack of ML expertise. This led to increased instances of users failing to find the items they were searching for. With the Amazon Personalize Search Ranking plugin, customers of OpenSearch Service version 2.9.0 or later can go beyond the traditional keyword matching approach and boost relevant items in an individual user’s search results based on their interests, context, and past interactions in real time. You can also fine-tune the level of personalization for every search query to ensure flexibility and control over the search experience.

AWS Partners like Cognizant are excited by the personalization possibilities that the Amazon Personalize Search Ranking plugin will unlock for their media and retail customers.

“Amazon Personalize has been proven to be highly impactful for many businesses with its cost-effective and streamlined implementation. With the release of the new Amazon Personalize Search Ranking plugin within Amazon OpenSearch Service, we can now rapidly deploy and implement real-time user personalization to search results. We are highly confident that it will deliver improved customer experience and satisfaction as well as increase conversion and clickthrough rates by two to three times. Personalized search is a differentiator, especially for media and retail platforms. We are really excited to be a launch partner with AWS on this release and are looking forward to helping businesses deliver personalized search solutions powered by Amazon Personalize.”

– Andy Huang, Head of AI/ML at Cognizant Servian.

In this post, we show you how search results get personalized based on the user and how they vary when you adjust the personalization weight. We specify a value closer to zero to place less emphasis on personalization, and specify a value closer to 1 to re-rank search results based on a higher level of personalization.

Example use cases

To explore the impact of this new feature in greater detail, let’s review an example using a dataset from the Retail Demo Store.

First, we use OpenSearch Service to get search results for the search query “Grooming.” When the personalization weight is set to 0.0, no personalization takes place. As shown in the following table, the top five search results from OpenSearch Service show the grooming items with a higher gender affinity towards women (refer to the Gender_Affinity column, where M stands for male and F stands for female).

RankItem_IDItem_NameDescriptionGender_Affinity
11bcb66c4-ee9d-4c0c-ba53-168cb243569fWomen’s Grooming KitA must-have in every bathroomF
2f91ec34f-a08e-4408-8bb0-592bdd09375cBesto Hairbrush for WomenSoft brush for everyday useF
34296626c-fbb0-42b4-9a50-b6c6c16095f3Makeup Brush KitThis nifty makeup brush kit is essential in ev…F
409920b2e-4e07-41f7-aca6-47744777a2a7Trendy RazorA must-have in every bathroomF
539945ad0-57c9-4c28-a69c-532d5d167202Makeup BrushesMakeup brushes for every bathroomF
61bfbe5c7-6f02-4465-82f1-6083a4b302c0Premium Men’s RazorRazor for every bathroomM
76d5b3f03-ade6-42f7-969d-acd1f21623325-Blade Razor for MenRazor for every bathroomM
883095a08-2968-4275-a375-4fab404df7acFusion5 Razers for MenRazor for every bathroomM
9afdd9c41-2762-45bf-b6a7-e3fb8f1b34baMinimalistic RazorA must-have in every bathroomM
105dbc7cb7-39c5-4795-9064-d1655d78b3caRazor Brand for MenRazor for every bathroomM

Let’s suppose that a user with gender M (male) performs a search using the same query for “Grooming.” When the personalization weight is set to 0.3, the items with a gender affinity towards men get a subtle boost in ranking. In this example, Premium Men’s Razor, which was originally ranked number 6 in the previous table by OpenSearch Service, gets boosted to rank 2 in the updated table. Similarly, Razor Brand for Men shows up higher in position (rank 6) despite being the lowest-ranked item in the previous table.

RankItem_IDItem_NameDescriptionGender_Affinity
11bcb66c4-ee9d-4c0c-ba53-168cb243569fWomen’s Grooming KitA must-have in every bathroomF
21bfbe5c7-6f02-4465-82f1-6083a4b302c0Premium Men’s RazorRazor for every bathroomM
3f91ec34f-a08e-4408-8bb0-592bdd09375cBesto Hairbrush for WomenSoft brush for everyday useF
44296626c-fbb0-42b4-9a50-b6c6c16095f3Makeup Brush KitThis nifty makeup brush kit is essential in ev…F
509920b2e-4e07-41f7-aca6-47744777a2a7Trendy RazorA must-have in every bathroomF
65dbc7cb7-39c5-4795-9064-d1655d78b3caRazor Brand for MenRazor for every bathroomM
739945ad0-57c9-4c28-a69c-532d5d167202Makeup BrushesMakeup brushes for every bathroomF
8afdd9c41-2762-45bf-b6a7-e3fb8f1b34baMinimalistic RazorA must-have in every bathroomM
983095a08-2968-4275-a375-4fab404df7acFusion5 Razers for MenRazor for every bathroomM
106d5b3f03-ade6-42f7-969d-acd1f21623325-Blade Razor for MenRazor for every bathroomM

Next, we fine-tune the personalization weight to a value of 0.8 to get more personalized search results for “Grooming.” In the following table, the top four items in the search results are highly suited for men. Premium Men’s Razor and Razor Brand for Men shoot up further in rank. We also see other grooming items such as Minimalistic Razor and Fusion5 Razers for Men surfaced at the top of the search results even though they had a lower ranking in our first query.

RankItem_IDItem_NameDescriptionGender_Affinity
11bfbe5c7-6f02-4465-82f1-6083a4b302c0Premium Men’s RazorRazor for every bathroomM
25dbc7cb7-39c5-4795-9064-d1655d78b3caRazor Brand for MenRazor for every bathroomM
3afdd9c41-2762-45bf-b6a7-e3fb8f1b34baMinimalistic RazorA must-have in every bathroomM
483095a08-2968-4275-a375-4fab404df7acFusion5 Razers for MenRazor for every bathroomM
51bcb66c4-ee9d-4c0c-ba53-168cb243569fWomen’s Grooming KitA must-have in every bathroomF
6f91ec34f-a08e-4408-8bb0-592bdd09375cBesto Hairbrush for WomenSoft brush for everyday useF
76d5b3f03-ade6-42f7-969d-acd1f21623325-Blade Razor for MenRazor for every bathroomM
809920b2e-4e07-41f7-aca6-47744777a2a7Trendy RazorA must-have in every bathroomF
939945ad0-57c9-4c28-a69c-532d5d167202Makeup BrushesMakeup brushes for every bathroomF
104296626c-fbb0-42b4-9a50-b6c6c16095f3Makeup Brush KitThis nifty makeup brush kit is essential in ev…F

For more details on how to implement personalized search with OpenSearch Service, refer to Personalizing search results from OpenSearch.

Conclusion

With the new Amazon Personalize Search Ranking plugin, customers of both self-managed OpenSearch and OpenSearch Service v2.9 and above can boost relevant items in their search results by including signals from each user’s history, context, and preferences. The plugin enables you to exercise greater control over the level of personalization for each user and query type, and improve the overall search experience for your users.

For more details on Amazon Personalize, refer to the Amazon Personalize Developer Guide.


About the Authors


Shreeya Sharma
is a Sr. Technical Product Manager working with AWS AI/ML on the Amazon Personalize team. She has a background in computer science engineering, technology consulting, and data analytics

Ketan Kulkarni is a Software Development Engineer with the Amazon Personalize team focused on building AI-powered recommender systems at scale. In his spare time, he enjoys reading and traveling.

Prashant Mishra is a Software Development Engineer on the Amazon Personalize team.

Branislav Kveton is a Principal Scientist at AWS AI Labs. He proposes, analyzes, and applies algorithms that learn incrementally, run in real time, and converge to near optimal solutions as the number of observations increases.

Personalize your search results with Amazon Personalize and Amazon OpenSearch Service integration
Author: Shreeya Sharma