# Grouping of different entity sets within a single message

**URL:** <https://forum.rasa.com/t/grouping-of-different-entity-sets-within-a-single-message/53413>\
**Category:** Rasa Open Source\
**Created:** [May 26, 2022, 11:24am UTC](https://forum.rasa.com/t/grouping-of-different-entity-sets-within-a-single-message/53413 "2022-05-26T11:24:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ybm11](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ybm11/32/19967_2.png) [@ybm11](https://forum.rasa.com/u/ybm11)\
**Post date:** [May 26, 2022, 11:24am UTC](https://forum.rasa.com/t/grouping-of-different-entity-sets-within-a-single-message/53413/1 "2022-05-26T11:24:01Z")

</div>

Hi,

I try to identify grouped entities using the native group attribute. The entities I try to detect are services and their prices. A single message may contain multiple prices and services, which needed to be matched.

**Input message toy example:**

`Charge is [€425,00]{"entity": "amount-of-money", "group": "1"} for [service-1]{"entity": "service-1", "group": "1"} and [€158,50]{"entity": "amount-of-money", "group": "2"} for [service-2]{"entity": "service-2", "group": "2"}`

I chose to model each service as a different entity type. This makes the native grouping mechanism perform worse than expected, and I suspect it is so due to the fact that each group contains different entities set. In the example above **group #1** contains **price and service-1** and **group #2** contains **price and service-2**

Would love to get some recommendations from someone who is familiar with the internals of Rasa about how to make such case work properly.

Thank you
