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](https://docs.cloud.google.com/generative-ai-app-builder/docs/serving-configs.md.txt).

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](https://docs.cloud.google.com/generative-ai-app-builder/docs/filter-recommendations#filter-diversification-media).

## 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:

1. In the Google Cloud console, go to the **AI Applications** page.

   [AI Applications](https://console.cloud.google.com/gen-app-builder/start)
2. Click the name of the app that you want to configure recommendations for.

3. Go to the **Configurations** \> **Control** tab.

4. If you have more than one serving config, select the serving config that you
   plan to set diversification for.

5. In the **Result diversification** section, choose how to diversify your
   recommendations in the **Diversification type** field.

6. Turn on the **Enable diversification level** toggle to see the
   available diversification levels.

7. Select a diversification level for your recommendations.

8. Click **Save and publish**.