Stay organized with collections
Save and categorize content based on your preferences.
If you want to ensure that media recommendations results returned from a single
recommendation request are more diversified rather than looking similar, you can
turn on diversification. This feature is available only for media
recommendations, not custom search and recommendations.
Generally, diversification reduces the likelihood that similar content is
shown in a recommendation panel, at the risk of removing some good
recommendations.
Diversification is set on the serving config level. You can have multiple
serving configs per media recommendations app, each with a different
diversification setting. For more about serving configs, see
Create and manage media serving configs.
Two types of diversification are available: rule-based diversity and data-driven
diversity.
Rule-based diversity
Rule-based diversity relies on the categories that are uploaded with your
content. Use rule-based diversity to recommend content from a variety of
categories. Diversification is configured by level, with higher levels of
diversification causing fewer items to be displayed per category. This
diversification type works best if your content has high-quality categories.
Diversification level
Maximum items per category
None
Unlimited
Low
3
Medium
2
High
1
Auto
Depends on content
In general, setting rule-based diversity and using filter recommendations is not
advised. For more information, see Filters and diversification
settings.
Data-driven diversity
Use data-driven diversity to produce recommendation results that balance
relevance and diversity. Data-driven diversity learns from content metadata such
as titles or categories. Instead of relying on words from a title or category,
data-driven diversity uses semantic similarity to produce better-performing
diversification.
Diversification level
Maximum similar items
None
Unlimited
Low
3
Medium
2
High
1
Auto
Depends on content
Diversify recommendations
To diversify your media recommendations:
In the Google Cloud console, go to the AI Applications page.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eDiversification for media recommendations ensures results are varied rather than similar, which is only applicable to media recommendations, and not generic recommendations or search results.\u003c/p\u003e\n"],["\u003cp\u003eDiversification, set at the serving config level, reduces the chances of similar content appearing in a recommendation panel, possibly at the cost of removing some good recommendations.\u003c/p\u003e\n"],["\u003cp\u003eRule-based diversity, which relies on content categories, offers levels from 'None' to 'High' and 'Auto', determining the maximum number of items per category in recommendations.\u003c/p\u003e\n"],["\u003cp\u003eData-driven diversity, which learns from content metadata, uses semantic similarity to balance relevance and diversity in recommendations, with levels from 'None' to 'High' and 'Auto' that determine the maximum similar items.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable and modify the diversification settings by navigating to the "Serving" section under the "Configurations" tab of your app within the Google Cloud Console's Agent Builder.\u003c/p\u003e\n"]]],[],null,["# Diversify media recommendations\n\nIf you want to ensure that media recommendations results returned from a single\nrecommendation request are more diversified rather than looking similar, you can\nturn on diversification. This feature is available only for media\nrecommendations, not custom search and recommendations.\n\nGenerally, diversification reduces the likelihood that similar content is\nshown in a recommendation panel, at the risk of removing some good\nrecommendations.\n\nDiversification is set on the serving config level. You can have multiple\nserving configs per media recommendations app, each with a different\ndiversification setting. For more about serving configs, see\n[Create and manage media serving configs](/generative-ai-app-builder/docs/serving-configs).\n\nTwo types of diversification are available: rule-based diversity and data-driven\ndiversity.\n\nRule-based diversity\n--------------------\n\nRule-based diversity relies on the categories that are uploaded with your\ncontent. Use rule-based diversity to recommend content from a variety of\ncategories. Diversification is configured by level, with higher levels of\ndiversification causing fewer items to be displayed per category. This\ndiversification type works best if your content has high-quality categories.\n\nIn general, setting rule-based diversity and using filter recommendations is not\nadvised. For more information, see [Filters and diversification\nsettings](/generative-ai-app-builder/docs/filter-recommendations#filter-diversification-media).\n\nData-driven diversity\n---------------------\n\nUse data-driven diversity to produce recommendation results that balance\nrelevance and diversity. Data-driven diversity learns from content metadata such\nas titles or categories. Instead of relying on words from a title or category,\ndata-driven diversity uses semantic similarity to produce better-performing\ndiversification.\n\nDiversify recommendations\n-------------------------\n\nTo diversify your media recommendations:\n\n1. In the Google Cloud console, go to the **AI Applications** page.\n\n [AI Applications](https://console.cloud.google.com/gen-app-builder/start)\n2. Click the name of the app that you want to configure recommendations for.\n\n3. Go to the **Configurations** \\\u003e **Serving** tab.\n\n4. If you have more than one serving config, select the serving config that you\n plan to set diversification for.\n\n5. In the **Result diversification** section, choose how to diversify your\n recommendations in the **Diversification type** field.\n\n6. Turn on the **Enable diversification level** toggle to see the\n available diversification levels.\n\n7. Select a diversification level for your recommendations.\n\n8. Click **Save and publish**."]]