File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sdk/cognitivelanguage/azure-ai-language-questionanswering Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ client = QuestionAnsweringClient(endpoint, AzureKeyCredential(key))
137137output = client.get_answers(
138138 question = " How long should my Surface battery last?" ,
139139 project_name = " FAQ" ,
140- deployment_name = " test "
140+ deployment_name = " production "
141141)
142142for candidate in output.answers:
143143 print (" ({} ) {} " .format(candidate.confidence, candidate.answer))
@@ -168,7 +168,7 @@ output = client.get_answers(
168168 previous_qna_id = previous_answer.qna_id
169169 ),
170170 project_name = " FAQ" ,
171- deployment_name = " live "
171+ deployment_name = " production "
172172)
173173for candidate in output.answers:
174174 print (" ({} ) {} " .format(candidate.confidence, candidate.answer))
326326 client.get_answers(
327327 question = " Why?" ,
328328 project_name = " invalid-knowledge-base" ,
329- deployment_name = " test "
329+ deployment_name = " production "
330330 )
331331except HttpResponseError as error:
332332 print (" Query failed: {} " .format(error.message))
You can’t perform that action at this time.
0 commit comments