Azure ML Prompt Flow overview

Azure ML Has integrated a new tool called Prompt Flow.

You can build a workflow here for different types of robotic process automation, advanced LLM based flow testing and automations as well.

From the Authoring page, click on prompt flow you will see the below page.

If you click on create new, you will see 3 types of flows,

  1. standard flow
  2. chat flow
  3. evaluation flow

standard flow is a combination of python code, LLM to test the process.

Chat flow is to test, debug the user friendlyness of your process and evaluation flow is for output tesitng, checking, content moderation testing etc.

There are also some available samples there. In this example we have selected the web classificaiton flow and cloned it.

Once you click clone it will take you to below page.

You will see that the entire flow is ready. Before you run this flow you need to configure 2 steps.

  1. LLM connection, you need to configure and connect your LLM models here from open ai to azure ml studio
  2. you need to configure and connect runtime environment.

Above graph shows the steps of activities for this individual flow, it’s taking string as an input which is a web URL, then fetching content from that URL, parsing it, summarizing it, matching it with example for classify use case. later it is using built in function to convert it into dictionary to show the final result.

Here we have provided a link of wikipedia page of a movie as input string. It fetched the content, parsed it, summarized it and then use it for classification.

Once we run the entire flow all the steps are executed in seconds.

This is the end result we got, this movie page type is academic.

It was able to classify application page, sports page and none type page successfully. It is just an example of an LLM flow through promt flow of azure ML.

Leave a comment