Hey everyone,
I've been experimenting with GPT to generate content based on a specific list of elements. The goal was to ensure that the model picks values only from this predefined list, but I’m running into an issue. While GPT does sometimes choose elements from the list, it also generates values that aren’t part of it.
For example, I’ll give my prompt:
Please select the least relevant categories to the user's needs (minimum 45) among the following 336 categories:
car_dealer
[List of 300+ element]
car_repair
YOUR RESPONSE FORMAT IS THE FOLOWING: ONLY a comma-separated list with no explanations, introductions, or additional text.
You are not allowed to add any other text or explanations.
User prompt input: You are a flower merchant
Is it may way of prompting that creates this inconsistency ?
Has anyone else had this problem?
I’ve tried rephrasing the prompt, being more explicit, and even giving it more context, but it doesn’t always seem to help.
Any help would be greatly appreciated!