# Ranking Group

A ranking group tells you which products should be loaded based on the filter rules you have defined, so they return a wild mix of products that match each rule.

The more filters you create, the better the recommendations of your ranking group will be.

## Creating a Ranking Group

First assign a name and activate the ranking group. With the setting "Narrow down to gender", the products of all defined filter rules are narrowed down to the potential gender of the visitor. All products are classified in the background into the categories *female*, *male* and *child* based on the category name with certain keywords. You can optionally define certain categories for the genders in the app settings to optimise the recognition of the gender.

![Rankinggruppe erstellen](/files/xkF3PAtELgqUcDhY4IXo)

### Rules

You can now create rules about which products should be loaded. Each rule primarily has one type and one weighting. Depending on the type, a configuration may be required, which can be opened by clicking on the three dots on the right with the menu item "Configuration". The menu item does not exist if no configuration is required.

![Regeln](/files/YJ9rprqZI6CYIqtZQxAb)

![Konfiguration von Preisdifferenz](/files/feFBZmj1KcZoKk54Qm18)

### Weighting

The weighting process works as follows: Each rule (or type) returns a list of products. Each product in this list receives the weighting of the rule. If several rules within the ranking group return the same products, the weightings add up. Products that apply to many rules are therefore taken into account in the recommendation algorithm. Accordingly, experience shows that the recommendations improve when many rules with smaller weightings are created.

### Preview

You can see a rough preview of the products that the ranking group plays out on the editing page of a ranking group. To do this, select a product from which you would like the recommendations to be loaded.&#x20;

(You can also display product recommendations later in the category listing)

![Vorschau](/files/a2F431cCuY8gu3Ab8bpx)

{% hint style="info" %}
Please note that the preview only serves as a rough overview. You can maintain exact configurations in the Shopping Experiences blocks.

**Tip**: If edit mode is activated, the preview automatically reloads when changes are made to the rules.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codegiganten.de/plugin-documentation/en/apps/dynamic-product-recommendations/rankinggruppe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
