Is there a solution you are using to solve this that is more accurate and cost effective? I'm working through it now so would be curious
Putting all the labels into the LLM is super expensive per call when you have millions of items to classify.
You can't reduce the number of labels becasue they are correctly organizes/structured. This class of problem exists in many different domains.
This problem has also been solved for 3 decades now.
Orginally I started writing that as sarcasm, and now I'm not quite so sure.