In my app, a user types the description of an event (problem/situation) and I want the AI to offer him the best matching choice from a fixed list of event categories. Each category has a name and a description and there can be a variable amount of them.
I tried using a mix of system and user prompt and tool calls but the AI only seem to consider the first couple of choices given in the list (formatted in JSON).
I’m asking here because maybe there is a good general pattern for prompting this sort requirements.