Runtime - Train
Latih panggilan untuk menambahkan saran ke basis pengetahuan.
POST {RuntimeEndpoint}/qnamaker/knowledgebases/{kbId}/train
Parameter URI
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
kb
|
path | True |
|
Id pangkalan pengetahuan. |
|
Runtime
|
path | True |
|
Titik akhir App Service QnA Maker (misalnya: https://{qnaservice-hostname}.azurewebsites.net). |
Header Permintaan
| Name | Required | Type | Description |
|---|---|---|---|
| Authorization | True |
|
Isi Permintaan
| Name | Type | Description |
|---|---|---|
| feedbackRecords |
Daftar catatan umpan balik. |
Respons
| Name | Type | Description |
|---|---|---|
| 204 No Content |
HTTP 204 Tanpa Konten. |
|
| Other Status Codes |
Respons kesalahan. |
Keamanan
Authorization
Type:
apiKey
In:
header
Contoh
Successful query
Sample Request
POST {RuntimeEndpoint}/qnamaker/knowledgebases/9d091697-fb8c-4ed5-9ac0-35bf8273bfff/train
{
"feedbackRecords": [
{
"userId": "sd53lsY=",
"userQuestion": "qna maker with luis",
"qnaId": 4
}
]
}
Sample Response
Definisi
| Error |
Objek kesalahan. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
|
Error |
Salah satu set kode kesalahan yang ditentukan server. |
|
Error |
Respons kesalahan. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
|
Feedback |
Catatan umpan balik pembelajaran aktif. |
|
Feedback |
Catatan umpan balik pembelajaran aktif. |
|
Inner |
Objek yang berisi informasi yang lebih spesifik tentang kesalahan tersebut. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
Error
Objek kesalahan. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
| Name | Type | Description |
|---|---|---|
| code |
Salah satu set kode kesalahan yang ditentukan server. |
|
| details |
|
Array detail tentang kesalahan tertentu yang menyebabkan kesalahan yang dilaporkan ini. |
| innerError |
Objek yang berisi informasi yang lebih spesifik daripada objek saat ini tentang kesalahan. |
|
| message |
|
Representasi kesalahan yang dapat dibaca manusia. |
| target |
|
Target kesalahan. |
ErrorCodeType
Salah satu set kode kesalahan yang ditentukan server.
| Name | Type | Description |
|---|---|---|
| BadArgument |
|
|
| EndpointKeysError |
|
|
| ExtractionFailure |
|
|
| Forbidden |
|
|
| KbNotFound |
|
|
| NotFound |
|
|
| OperationNotFound |
|
|
| QnaRuntimeError |
|
|
| QuotaExceeded |
|
|
| SKULimitExceeded |
|
|
| ServiceError |
|
|
| Unauthorized |
|
|
| Unspecified |
|
|
| ValidationFailure |
|
ErrorResponse
Respons kesalahan. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
| Name | Type | Description |
|---|---|---|
| error |
Objek kesalahan. |
FeedbackRecordDTO
Catatan umpan balik pembelajaran aktif.
| Name | Type | Description |
|---|---|---|
| qnaId |
|
qnaId yang pertanyaannya disarankan diberikan sebagai umpan balik. |
| userId |
|
Pengidentifikasi unik untuk pengguna. |
| userQuestion |
|
Pertanyaan yang disarankan diberikan sebagai umpan balik. |
FeedbackRecordsDTO
Catatan umpan balik pembelajaran aktif.
| Name | Type | Description |
|---|---|---|
| feedbackRecords |
Daftar catatan umpan balik. |
InnerErrorModel
Objek yang berisi informasi yang lebih spesifik tentang kesalahan tersebut. Sesuai panduan Microsoft One API - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
| Name | Type | Description |
|---|---|---|
| code |
|
Kode kesalahan yang lebih spesifik daripada yang disediakan oleh kesalahan yang berisi. |
| innerError |
Objek yang berisi informasi yang lebih spesifik daripada objek saat ini tentang kesalahan. |