Tag Apps/Websites into a predefined set of taxonomy

Hi There,

I am new to using OpenAI and need some guidance. My use case is to tag apps and websites into an already predefined taxonomy.

Any suggestions on how to instruct OpenAI to only use my taxonomy and not create its own?

Welcome to the forum!

One idea is to give the model a list of categories with a prompt like:
“You are a classification AI, you will take the user data marked in ### blocks and categorise it into one of the categories in [ ] below, you should output the category name only.
[
comedy,
drama,
fantasy,
horror,
sci-fi,
thriller,
western,
not-a-movie-type
]
###{user_input}###”

In addition you can add a check if the return value matches a case of the provided taxonomy and if not request another reply until a match is retrieved.

Also providing examples as to how an entity should be classified can go a long way.

1 Like