Skip to main content

Notifications

Power Automate - AI Builder
Answered

Does highlighting key phrases help?

(0) ShareShare
ReportReport
Posted on by 76

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.

Categories:
  • Tjan Profile Picture
    Tjan 1,087 on at
    Re: Does highlighting key phrases help?

    @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.

  • arun_kj Profile Picture
    arun_kj 76 on at
    Re: Does highlighting key phrases help?

    @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/Credit-Consumption-AI-Model-Vs-AI-Prompt/m-p/2821478#M4361

    https://powerusers.microsoft.com/t5/AI-Builder/Something-Went-Wrong-AI-Prompt/m-p/2821223

     

  • Tjan Profile Picture
    Tjan 1,087 on at
    Re: Does highlighting key phrases help?

    @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!

  • arun_kj Profile Picture
    arun_kj 76 on at
    Re: Does highlighting key phrases help?

    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.

  • Tjan Profile Picture
    Tjan 1,087 on at
    Re: Does highlighting key phrases help?

    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!

  • arun_kj Profile Picture
    arun_kj 76 on at
    Re: Does highlighting key phrases help?

    @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.

  • Tjan Profile Picture
    Tjan 1,087 on at
    Re: Does highlighting key phrases help?

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard