Hi All,
I'm creating a data classification model using the prebuilt "Classify Texts into custom categories" model.
I would like to know if highlighting key phrases in the training data (e.g., marking phrases like **key phrase**) would enhance the AI model's prediction capability on respective tags, or if it has no effect.
@arun_kj Ah that's so awesome!! Congratulations, you saved yourself a lot of time! Since you don't have to highlight key phrases in the future anymore. Awesome!
I'll take a look into the other articles and see what I can do.
@Tjan It worked. It was really helpful. Thank you so much!!
Since it is new to us, we have couple more queries to make sure we can use custom AI Prompt over custom AI model, which I have posted in below threads. Kindly check and let me know if you can help us on the same. Much appreciated!
https://powerusers.microsoft.com/t5/AI-Builder/Something-Went-Wrong-AI-Prompt/m-p/2821223
@arun_kj Oh you’re really close now! You now need to use the parse JSON action in Power Automate (make sure to generate a schema based on an example output from a run history). Afterwards you will be able to use the classification output as variable in your flow!
Hi @Tjan , can you please guide me how you are using the output from the prompt in a flow. Unfortunately I'm not able to find the direct output from it in dynamic contents. I'm only getting the json response from the prompt. Not the classification output.
Hi @arun_kj , yes they are extremely useful for classification outputs. I have tested this with around 30 categories and worked perfectly. Also, the approval flow isn't needed required anymore. You can choose for it (and it may be wise) but not something that will be forced to you.
If my solution helped you, please be so kind to accept my solution. This will greatly help others as well!
@Tjan Thank you for your input. Are the prompts currently effective in generating the required classification outputs? For my purpose, I need to classify emails into around 10 different categories based on their content. I haven't used prompts in a process before. Are they efficient for this purpose?
Also does it require an approval flow to use a prompt in a process.
Hi @arun_kj, this might not answer your question but might benefit you. In your specific use-case I would definitely look into the prompts function in AI Builder. This is a rather more modern approach to what you want to accomplish and saves a lot of time in the future (since with prompts you tend to not need to retrain stuff).
In general what you will do with the prompt function is to write a solid prompt that is able to classify your texts into your chosen categories. This prompt can then afterwards be integrated in your Power Automate flow in which you feed the text to the prompt. The output can then be used by you for whatever you want.