Skip to main content

rai_svc

Creates, updates, deletes, gets or lists a rai_svc resource.

Overview

Namerai_svc
TypeResource
Idazure.ai_evaluation.rai_svc

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_jail_break_dataset_with_typeselecttype_name, endpointGet the jailbreak dataset with type.
get_template_parameters_imageselectpath, endpointGet the template parameters image.
get_operation_resultselectoperation_id, endpointapi-key, model-endpointGet the operation result.
get_annotationselectendpointGet the supported annotation tasks.
get_attack_objectivesexecendpointlang, strategy, targetTypeGet the attack objectives.
get_jail_break_datasetexecendpointGet the jailbreak dataset.
get_template_parameters_with_typeexectype_name, endpointGet template parameters with type.
get_template_parametersexecendpointGet template parameters.
submit_annotationexecendpoint, AnnotationTask, ContentType, UserTextList, Contents, MetricList, PromptVersionSubmit a request for annotation.
submit_simulationexecendpointSubmit a request for simulation.
submit_aoai_evaluationexecendpoint, Data, ModelConfig, SampleGenerators, GradersSubmit a request for graders.

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: )
operation_idstringOperation id. Required.
pathstringImage path. Required.
type_namestringType for the template parameters. Required.
api-keystringApi key. Default value is None.
langstringThe language for the attack objectives dataset, defaults to 'en'. Default value is None.
model-endpointstringModel Endpoint. Default value is None.
strategystringThe strategy. Default value is None.
targetTypestringThe target, model/agent. Default value is None.

SELECT examples

Get the jailbreak dataset with type.

SELECT
value
FROM azure.ai_evaluation.rai_svc
WHERE type_name = '{{ type_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Get the attack objectives.

EXEC azure.ai_evaluation.rai_svc.get_attack_objectives 
@endpoint='{{ endpoint }}' --required,
@lang='{{ lang }}',
@strategy='{{ strategy }}',
@targetType='{{ targetType }}'
;