-
Notifications
You must be signed in to change notification settings - Fork 17
/
QnAMakerRecognizer.yml
336 lines (336 loc) · 10.1 KB
/
QnAMakerRecognizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
### YamlMime:TSType
name: QnAMakerRecognizer
uid: botbuilder-ai.QnAMakerRecognizer
package: botbuilder-ai
summary: A recognizer which uses QnAMaker KB to recognize intents.
fullName: QnAMakerRecognizer
remarks: ''
isPreview: false
isDeprecated: false
type: class
constructors:
- name: 'QnAMakerRecognizer(string, string, string)'
uid: botbuilder-ai.QnAMakerRecognizer.constructor
package: botbuilder-ai
summary: Initializes a new instance of `QnAMakerRecognizer`.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
new QnAMakerRecognizer(hostname?: string, knowledgeBaseId?: string,
endpointKey?: string)
parameters:
- id: hostname
type: string
description: Hostname of QnAMaker KB.
- id: knowledgeBaseId
type: string
description: Id of QnAMaker KB.
- id: endpointKey
type: string
description: |
Endpoint key of QnAMaker KB.
properties:
- name: $kind
uid: botbuilder-ai.QnAMakerRecognizer.$kind
package: botbuilder-ai
summary: ''
fullName: $kind
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'static $kind: string'
return:
description: ''
type: string
- name: context
uid: botbuilder-ai.QnAMakerRecognizer.context
package: botbuilder-ai
summary: An expression to evaluate to set the context.
fullName: context
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'context: ObjectExpression<QnARequestContext>'
return:
description: ''
type: ObjectExpression<<xref uid="botbuilder-ai.QnARequestContext" />>
- name: endpointKey
uid: botbuilder-ai.QnAMakerRecognizer.endpointKey
package: botbuilder-ai
summary: Endpoint key for the QnA service.
fullName: endpointKey
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'endpointKey: StringExpression'
return:
description: ''
type: StringExpression
- name: hostname
uid: botbuilder-ai.QnAMakerRecognizer.hostname
package: botbuilder-ai
summary: Host name of the QnA maker knowledgebase.
fullName: hostname
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'hostname: StringExpression'
return:
description: ''
type: StringExpression
- name: includeDialogNameInMetadata
uid: botbuilder-ai.QnAMakerRecognizer.includeDialogNameInMetadata
package: botbuilder-ai
summary: Whether to include the dialog name metadata for QnA context.
fullName: includeDialogNameInMetadata
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'includeDialogNameInMetadata: BoolExpression'
return:
description: ''
type: BoolExpression
- name: isTest
uid: botbuilder-ai.QnAMakerRecognizer.isTest
package: botbuilder-ai
summary: >-
A value indicating whether to call test or prod environment of
knowledgebase.
fullName: isTest
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'isTest: boolean'
return:
description: ''
type: boolean
- name: knowledgeBaseId
uid: botbuilder-ai.QnAMakerRecognizer.knowledgeBaseId
package: botbuilder-ai
summary: Knowledgebase id of your QnA maker knowledgebase.
fullName: knowledgeBaseId
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'knowledgeBaseId: StringExpression'
return:
description: ''
type: StringExpression
- name: logPersonalInformation
uid: botbuilder-ai.QnAMakerRecognizer.logPersonalInformation
package: botbuilder-ai
summary: >-
The flag to indicate if personal information should be logged in
telemetry.
fullName: logPersonalInformation
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'logPersonalInformation: BoolExpression'
return:
description: ''
type: BoolExpression
- name: metadata
uid: botbuilder-ai.QnAMakerRecognizer.metadata
package: botbuilder-ai
summary: An expression to evaluate to set additional metadata name value pairs.
fullName: metadata
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'metadata: ArrayExpression<QnAMakerMetadata>'
return:
description: ''
type: ArrayExpression<<xref uid="botbuilder-ai.QnAMakerMetadata" />>
- name: qnaId
uid: botbuilder-ai.QnAMakerRecognizer.qnaId
package: botbuilder-ai
summary: An expression to evaluate to set QnAId parameter.
fullName: qnaId
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'qnaId: IntExpression'
return:
description: ''
type: IntExpression
- name: qnaMatchIntent
uid: botbuilder-ai.QnAMakerRecognizer.qnaMatchIntent
package: botbuilder-ai
summary: ''
fullName: qnaMatchIntent
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'static qnaMatchIntent: "QnAMatch" = "QnAMatch"'
return:
description: ''
type: '"QnAMatch"'
- name: rankerType
uid: botbuilder-ai.QnAMakerRecognizer.rankerType
package: botbuilder-ai
summary: Desired RankerType.
fullName: rankerType
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'rankerType: StringExpression'
return:
description: ''
type: StringExpression
- name: strictFiltersJoinOperator
uid: botbuilder-ai.QnAMakerRecognizer.strictFiltersJoinOperator
package: botbuilder-ai
summary: A value used for Join operation of Metadata.
fullName: strictFiltersJoinOperator
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'strictFiltersJoinOperator: JoinOperator'
return:
description: ''
type: <xref uid="botbuilder-ai.JoinOperator" />
- name: threshold
uid: botbuilder-ai.QnAMakerRecognizer.threshold
package: botbuilder-ai
summary: Threshold for the results.
fullName: threshold
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'threshold: NumberExpression'
return:
description: ''
type: NumberExpression
- name: top
uid: botbuilder-ai.QnAMakerRecognizer.top
package: botbuilder-ai
summary: Number of results you want.
fullName: top
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'top: IntExpression'
return:
description: ''
type: IntExpression
inheritedProperties:
- name: id
uid: botbuilder-ai.QnAMakerRecognizer.id
package: botbuilder-ai
summary: Recognizers unique ID.
fullName: id
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'id: string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> Recognizer.id
- name: telemetryClient
uid: botbuilder-ai.QnAMakerRecognizer.telemetryClient
package: botbuilder-ai
summary: |-
The telemetry client for logging events.
Default this to the NullTelemetryClient, which does nothing.
fullName: telemetryClient
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'telemetryClient: BotTelemetryClient'
return:
description: ''
type: BotTelemetryClient
inheritanceDescription: <b>Inherited From</b> Recognizer.telemetryClient
inheritedMethods:
- name: 'configure(Record<string, unknown>)'
uid: botbuilder-ai.QnAMakerRecognizer.configure
package: botbuilder-ai
summary: Fluent method for configuring the object.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function configure(config: Record<string, unknown>): this'
parameters:
- id: config
type: 'Record<string, unknown>'
description: Configuration settings to apply.
return:
description: >-
The [Configurable](xref:botbuilder-dialogs.Configurable) after the
operation is complete.
type: this
inheritanceDescription: <b>Inherited From</b> Configurable.configure
methods:
- name: getConverter(Object)
uid: botbuilder-ai.QnAMakerRecognizer.getConverter
package: botbuilder-ai
summary: ''
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function getConverter(property: Object): Converter | ConverterFactory'
parameters:
- id: property
type: Object
description: Properties that extend QnAMakerRecognizerConfiguration.
return:
description: The expression converter.
type: Converter | ConverterFactory
- name: >-
recognize(DialogContext, Activity, [key: string]: string, [key: string]:
number)
uid: botbuilder-ai.QnAMakerRecognizer.recognize
package: botbuilder-ai
summary: Gets results of the call to QnA maker KB.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function recognize(dc: DialogContext, activity: Activity,
telemetryProperties?: [key: string]: string, telemetryMetrics?: [key:
string]: number): Promise<RecognizerResult>
parameters:
- id: dc
type: DialogContext
description: >-
Context object containing information for a single turn of
coversation with a user.
- id: activity
type: Activity
description: >-
The incoming activity received from the user. The text value is used
as the query to QnA Maker.
- id: telemetryProperties
type: '[key: string]\: string'
description: Additional properties to be logged to telemetry.
- id: telemetryMetrics
type: '[key: string]\: number'
description: Additional metrics to be logged to telemetry.
return:
description: A promise resolving to the recognizer result
type: Promise<RecognizerResult>
extends: Recognizer