Skip to content

Commit 5c27f83

Browse files
committed
curl example for QnA maker query endpoint
1 parent e747460 commit 5c27f83

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
#
3+
# all information for your knowledgebase is found at
4+
# https://www.qnamaker.ai/Publish?kbId=your-kb-id
5+
#
6+
# replace values:
7+
# xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx = azure resources's key
8+
# yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy = your kb id
9+
# myazureresourcename = QnA Maker resource name you used in Azure
10+
# your-question = question submitted from user
11+
12+
13+
curl \
14+
--header "Content-type: application/json" \
15+
--header "Authorization: EndpointKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
16+
--request POST \
17+
--data '{"question":"your-question"}' \
18+
https://myazureresourcename.azurewebsites.net/qnamaker/knowledgebases/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/generateAnswer

0 commit comments

Comments
 (0)