File tree Expand file tree Collapse file tree 3 files changed +14
-33
lines changed
azure-ai-language-questionanswering/samples Expand file tree Collapse file tree 3 files changed +14
-33
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ def sample_chit_chat():
51
51
deployment_name = "test"
52
52
)
53
53
best_candidate = [a for a in output .answers if a .confidence_score > 0.9 ][0 ]
54
- print ("Q: {}" .format (first_question .question ))
55
- print ("A: {}" .format (best_candidate .answer ))
54
+ print (u "Q: {}" .format (first_question .question ))
55
+ print (u "A: {}" .format (best_candidate .answer ))
56
56
57
57
followup_question = qna .QueryKnowledgeBaseOptions (
58
58
question = "How long it takes to charge Surface?" ,
@@ -75,8 +75,8 @@ def sample_chit_chat():
75
75
project_name = knowledge_base_project ,
76
76
deployment_name = "test"
77
77
)
78
- print ("Q: {}" .format (followup_question .question ))
79
- print ("A: {}" .format (output .answers [0 ].answer ))
78
+ print (u "Q: {}" .format (followup_question .question ))
79
+ print (u "A: {}" .format (output .answers [0 ].answer ))
80
80
81
81
# [END chit_chat]
82
82
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ def sample_query_text():
50
50
output = client .query_text (input )
51
51
52
52
best_answer = [a for a in output .answers if a .confidence_score > 0.9 ][0 ]
53
- print ("Q: {}" .format (input .question ))
54
- print ("A: {}" .format (best_answer .answer ))
53
+ print (u "Q: {}" .format (input .question ))
54
+ print (u "A: {}" .format (best_answer .answer ))
55
55
56
56
# [END query_text]
57
57
Original file line number Diff line number Diff line change 1
- trigger :
2
- branches :
3
- include :
4
- - master
5
- - main
6
- - hotfix/*
7
- - release/*
8
- - restapi*
9
- paths :
10
- include :
11
- - sdk/cognitivelanguage/
12
- - scripts/
13
-
14
- pr :
15
- branches :
16
- include :
17
- - master
18
- - main
19
- - feature/*
20
- - hotfix/*
21
- - release/*
22
- - restapi*
23
- paths :
24
- include :
25
- - sdk/cognitivelanguage/
1
+ trigger : none
26
2
27
3
stages :
28
4
- template : ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
29
5
parameters :
30
6
AllocateResourceGroup : false
7
+ BuildTargetingString : azure*
31
8
ServiceDirectory : cognitivelanguage
32
9
MatrixReplace :
33
10
- TestSamples=.*/true
34
11
EnvVars :
35
12
AZURE_QUESTIONANSWERING_KEY : $(qna-key)
36
13
AZURE_QUESTIONANSWERING_PROJECT : 190a9e13-8ede-4e4b-a8fd-c4d7f2aeab6c
37
14
AZURE_QUESTIONANSWERING_ENDPOINT : $(qna-uri)
15
+ AZURE_CONVERSATIONS_ENDPOINT : $(conversations-endpoint)
16
+ AZURE_CONVERSATIONS_KEY : $(conversations-key)
17
+ AZURE_CONVERSATIONS_PROJECT : $(conversations-project)
18
+ AZURE_CONVERSATIONS_WORKFLOW_PROJECT : $(conversations-workflow-project)
38
19
AZURE_CLIENT_ID : $(aad-azure-sdk-test-client-id)
39
20
AZURE_CLIENT_SECRET : $(aad-azure-sdk-test-client-secret)
40
21
AZURE_SUBSCRIPTION_ID : $(azure-subscription-id)
41
22
AZURE_TENANT_ID : $(aad-azure-sdk-test-tenant-id)
42
- TEST_MODE : ' RunLiveNoRecord' # use when allowing preparers to create the rgs for you
43
- AZURE_TEST_RUN_LIVE : ' true' # use when utilizing the New-TestResources Script
23
+ TEST_MODE : " RunLiveNoRecord" # use when allowing preparers to create the rgs for you
24
+ AZURE_TEST_RUN_LIVE : " true" # use when utilizing the New-TestResources Script
You can’t perform that action at this time.
0 commit comments