Determine if prompts are semantically the same

Hello! I’m working on an app where one of the requirements will be to determine if prompts are semantically the same.

While this may be trivial with just two prompts, the problem will involve nearly 100 different prompts where they will need to be grouped into collections which are semantically identical.

What would be an efficient and scalable approach to this?