How to use prompt based analysis for data using Azure AI services ?

S H 65 Reputation points
2024-11-29T14:26:45.7266667+00:00

I am trying to process data by prepairing a prompt ( just like we do in chat GPT promp window ) while using Azure AI service API, but I checked all the options and couldnt find a proper action or API to pass the prompt and the data that we want to analyze, instead there are many ready to use models like sentiment analysis , summarization, but nothing I could pass my own prompt.

Example

data to analyzie " some user message blah blah blah"

prompt: "check if the user is asking to order any product , if yes name the product or say no order in the email"

results : "no order in the email "

results : "TV 75 inch "

I am suspecting Azure AI service is the not right option for this , if so please advice what service to use then.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,955 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
434 questions
{count} votes

Accepted answer
  1. santoshkc 10,475 Reputation points Microsoft Vendor
    2024-11-29T15:32:54.7666667+00:00

    Hi @S H,

    Thank you for reaching out to Microsoft Q&A forum!

    To perform custom prompt-based analysis using Azure AI services, you can leverage the Azure OpenAI service, which allows you to pass both your custom prompts (instructions) and data (like a user message) for analysis. For example, you can use the chat API to send a prompt instructing the model to analyze a message and extract relevant information, such as whether it's an order request and what product is being ordered. This approach is similar to how you interact with models like ChatGPT.

    I hope this help! Thank you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.