Skip to main content

insights

Creates, updates, deletes, gets or lists an insights resource.

Overview

Nameinsights
TypeResource
Idazure.ai_evaluation.insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the insights report. Required.
displayNamestringUser friendly display name for the insight. Required.
metadataobjectMetadata about the insights report. Required.
requestobjectRequest for the insights analysis. Required.
resultobjectThe result of the insights report.
statestringThe current state of the insights. Required. Known values are: "NotStarted", "Running", "Succeeded", "Failed", and "Canceled". (NotStarted, Running, Succeeded, Failed, Canceled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_insightselectid, endpointincludeCoordinatesGet a specific insight by Id.
list_insightsselectendpointtype, evalId, runId, agentName, includeCoordinatesList all insights in reverse chronological order (newest first).
generate_insightsexecendpoint, displayName, requestGenerate Insights.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
idstringThe unique identifier for the insights report. Required.
agentNamestringFilter by the agent name. Default value is None.
evalIdstringFilter by the evaluation ID. Default value is None.
includeCoordinatesbooleanWhether to include coordinates for visualization in the response. Defaults to false. Default value is None.
runIdstringFilter by the evaluation run ID. Default value is None.
typestringFilter by the type of analysis. Known values are: "EvaluationRunClusterInsight", "AgentClusterInsight", and "EvaluationComparison". Default value is None.

SELECT examples

Get a specific insight by Id.

SELECT
id,
displayName,
metadata,
request,
result,
state
FROM azure.ai_evaluation.insights
WHERE id = '{{ id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
AND includeCoordinates = '{{ includeCoordinates }}'
;

Lifecycle Methods

Generate Insights.

EXEC azure.ai_evaluation.insights.generate_insights 
@endpoint='{{ endpoint }}' --required
@@json=
'{
"displayName": "{{ displayName }}",
"request": "{{ request }}"
}'
;