Skip to main content

question_answering_projects

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

Overview

Namequestion_answering_projects
TypeResource
Idazure.ai_language.question_answering_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
configureSemanticRankingbooleanRepresents if semantic ranking is configured.
createdDateTimestring (date-time)Project creation date-time.
descriptionstringDescription of the project.
languagestringLanguage of the text records. This is BCP-47 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default.
lastDeployedDateTimestring (date-time)Represents the project last deployment date-time.
lastModifiedDateTimestring (date-time)Represents the project last modified date-time.
multilingualResourcebooleanResource enabled for multiple languages across projects or not.
projectNamestringName of the project. Required.
settingsobjectConfigurable settings of the Project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_projectsselectendpointtop, skip, maxpagesizeGets all projects for a user.
delete_projectdeleteproject_name, endpointDelete the project.
create_projectexecproject_name, endpointCreate or update a project.

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: )
project_namestringName of the project. Required.
maxpagesizeinteger
skipintegerAn offset into the collection of the first resource to be returned. Default value is None.
topintegerThe maximum number of resources to return from the collection. Default value is None.

SELECT examples

Gets all projects for a user.

SELECT
configureSemanticRanking,
createdDateTime,
description,
language,
lastDeployedDateTime,
lastModifiedDateTime,
multilingualResource,
projectName,
settings
FROM azure.ai_language.question_answering_projects
WHERE endpoint = '{{ endpoint }}' -- required
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND maxpagesize = '{{ maxpagesize }}'
;

DELETE examples

Delete the project.

DELETE FROM azure.ai_language.question_answering_projects
WHERE project_name = '{{ project_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Create or update a project.

EXEC azure.ai_language.question_answering_projects.create_project 
@project_name='{{ project_name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"description": "{{ description }}",
"language": "{{ language }}",
"multilingualResource": {{ multilingualResource }},
"settings": "{{ settings }}",
"configureSemanticRanking": {{ configureSemanticRanking }}
}'
;