Built-in T-SQL AI functions leveraging GPT-4 for enrichment. The user would like to set the LLM for AI Functions.
sukkaur
3 months agoMicrosoft Employee
Status changed:
New
to Completed
Please check this learn document - sp_invoke_external_rest_endpoint (Transact-SQL) - SQL Server | Microsoft Learn
Also, Here's a sample code
DECLARE @url nvarchar(4000) = '<URL for Chat GPT model that you have deployed>';
DECLARE @payload nvarchar(max) = N'{
"messages": [
{
"role": "system",
"content": "You are a sales assistant who helps customers find the right products for their question and activities."
},
{
"role": "user",
"content": "The products available are the following: ' + <Data to ground your ask> + '"
},
{
"role": "user",
"content": " ' + <add the prompt> + '"
}
]
}';
@url = @url,
@method = 'POST',
@payload = @payload,
Credential = [<Add your Credential>],
@timeout = 230,
@response = @response output;
select json_value(@response, '$.result.choices[0].message.content');
Recent ideas
Support SNC Authentication for SAP BW in Power BI Report Server
Organizations are increasingly moving toward encrypted and certificate-based authentication for SAP BW connections due to security and compliance requirements. Currently, Power BI Report Server (PBI...Indramouli5 hours agoNew MemberNew3Views0likes0CommentsHow to remind the Global team to respond to ECNs with greater efficiency
Suggest Power BI send emails to each responsible person, and display how many days they have spent handling each ECN, compared to the required number of calendar days for completion.richardzhu12 hours agoNew MemberNew36Views5likes2Comments