4 ms·
You can use the function definitions and few shot prompting (examples) to great effect together. E.g. I was trying to build a classifier for game genres from d
by msp26 3y ago
You can use the function definitions and few shot prompting (examples) to great effect together.
E.g. I was trying to build a classifier for game genres from descriptions. I could use the function definitions to easily define all the main genres and add subgenres as enums. That ensured that the taxonomy was pretty much always followed. But then I used examples to coerce the model into outputting in {'strategy':'turn-based'} format rather than {'genre':'strategy', 'subgenre':'turn-based'}. The tokens saved on that could then be used to do more classifications per gpt call, making the whole thing cheaper.