We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06c9128 + 5c27f83 commit 1a2af4eCopy full SHA for 1a2af4e
curl/Knowledge/QnA-Maker/query-endpoint.sh
@@ -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