Share via


Knowledgebase class

代表知識庫的類別。

建構函式

Knowledgebase(QnAMakerClientContext)

建立知識庫。

方法

create(CreateKbDTO, RequestOptionsBase)
create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)
create(CreateKbDTO, ServiceCallback<Operation>)
deleteMethod(string, RequestOptionsBase)
deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, ServiceCallback<void>)
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams, ServiceCallback<QnADocumentsDTO>)
download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)
generateAnswer(string, QueryDTO, RequestOptionsBase)
generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)
generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)
getDetails(string, RequestOptionsBase)
getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)
getDetails(string, ServiceCallback<KnowledgebaseDTO>)
listAll(RequestOptionsBase)
listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)
listAll(ServiceCallback<KnowledgebasesDTO>)
publish(string, RequestOptionsBase)
publish(string, RequestOptionsBase, ServiceCallback<void>)
publish(string, ServiceCallback<void>)
replace(string, ReplaceKbDTO, RequestOptionsBase)
replace(string, ReplaceKbDTO, RequestOptionsBase, ServiceCallback<void>)
replace(string, ReplaceKbDTO, ServiceCallback<void>)
train(string, FeedbackRecordsDTO, RequestOptionsBase)
train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)
train(string, FeedbackRecordsDTO, ServiceCallback<void>)
update(string, UpdateKbOperationDTO, RequestOptionsBase)
update(string, UpdateKbOperationDTO, RequestOptionsBase, ServiceCallback<Operation>)
update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

建構函式詳細資料

Knowledgebase(QnAMakerClientContext)

建立知識庫。

new Knowledgebase(client: QnAMakerClientContext)

參數

client
QnAMakerClientContext

服務用戶端的參考。

方法詳細資料

create(CreateKbDTO, RequestOptionsBase)

function create(createKbPayload: CreateKbDTO, options?: RequestOptionsBase): Promise<KnowledgebaseCreateResponse>

參數

createKbPayload
CreateKbDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.KnowledgebaseCreateResponse>

create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)

function create(createKbPayload: CreateKbDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)

參數

createKbPayload
CreateKbDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Operation>

回呼

create(CreateKbDTO, ServiceCallback<Operation>)

function create(createKbPayload: CreateKbDTO, callback: ServiceCallback<Operation>)

參數

createKbPayload
CreateKbDTO

要求張貼本文。

callback

ServiceCallback<Operation>

回呼

deleteMethod(string, RequestOptionsBase)

function deleteMethod(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

deleteMethod(string, ServiceCallback<void>)

function deleteMethod(kbId: string, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

callback

ServiceCallback<void>

回呼

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)

function download(kbId: string, environment: EnvironmentType, options?: KnowledgebaseDownloadOptionalParams): Promise<KnowledgebaseDownloadResponse>

參數

kbId

string

知識庫識別碼。

environment
EnvironmentType

指定環境為 Test 或 Prod。可能的值包括:'Prod'、'Test'

options
KnowledgebaseDownloadOptionalParams

選擇性參數

傳回

Promise < Models.KnowledgebaseDownloadResponse>

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams, ServiceCallback<QnADocumentsDTO>)

function download(kbId: string, environment: EnvironmentType, options: KnowledgebaseDownloadOptionalParams, callback: ServiceCallback<QnADocumentsDTO>)

參數

kbId

string

知識庫識別碼。

environment
EnvironmentType

指定環境為 Test 或 Prod。可能的值包括:'Prod'、'Test'

options
KnowledgebaseDownloadOptionalParams

選擇性參數

callback

ServiceCallback<QnADocumentsDTO>

回呼

download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)

function download(kbId: string, environment: EnvironmentType, callback: ServiceCallback<QnADocumentsDTO>)

參數

kbId

string

知識庫識別碼。

environment
EnvironmentType

指定環境為 Test 或 Prod。可能的值包括:'Prod'、'Test'

callback

ServiceCallback<QnADocumentsDTO>

回呼

generateAnswer(string, QueryDTO, RequestOptionsBase)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options?: RequestOptionsBase): Promise<KnowledgebaseGenerateAnswerResponse>

參數

kbId

string

知識庫識別碼。

generateAnswerPayload
QueryDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.KnowledgebaseGenerateAnswerResponse>

generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options: RequestOptionsBase, callback: ServiceCallback<QnASearchResultList>)

參數

kbId

string

知識庫識別碼。

generateAnswerPayload
QueryDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)

function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, callback: ServiceCallback<QnASearchResultList>)

參數

kbId

string

知識庫識別碼。

generateAnswerPayload
QueryDTO

要求張貼本文。

getDetails(string, RequestOptionsBase)

function getDetails(kbId: string, options?: RequestOptionsBase): Promise<KnowledgebaseGetDetailsResponse>

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.KnowledgebaseGetDetailsResponse>

getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)

function getDetails(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<KnowledgebaseDTO>)

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

getDetails(string, ServiceCallback<KnowledgebaseDTO>)

function getDetails(kbId: string, callback: ServiceCallback<KnowledgebaseDTO>)

參數

kbId

string

知識庫識別碼。

listAll(RequestOptionsBase)

function listAll(options?: RequestOptionsBase): Promise<KnowledgebaseListAllResponse>

參數

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.KnowledgebaseListAllResponse>

listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)

function listAll(options: RequestOptionsBase, callback: ServiceCallback<KnowledgebasesDTO>)

參數

options
RequestOptionsBase

選擇性參數

listAll(ServiceCallback<KnowledgebasesDTO>)

function listAll(callback: ServiceCallback<KnowledgebasesDTO>)

參數

publish(string, RequestOptionsBase)

function publish(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

publish(string, RequestOptionsBase, ServiceCallback<void>)

function publish(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

publish(string, ServiceCallback<void>)

function publish(kbId: string, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

callback

ServiceCallback<void>

回呼

replace(string, ReplaceKbDTO, RequestOptionsBase)

function replace(kbId: string, replaceKb: ReplaceKbDTO, options?: RequestOptionsBase): Promise<RestResponse>

參數

kbId

string

知識庫識別碼。

replaceKb
ReplaceKbDTO

ReplaceKbDTO 的實例,其中包含要上傳的 qnas 清單

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

replace(string, ReplaceKbDTO, RequestOptionsBase, ServiceCallback<void>)

function replace(kbId: string, replaceKb: ReplaceKbDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

replaceKb
ReplaceKbDTO

ReplaceKbDTO 的實例,其中包含要上傳的 qnas 清單

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

replace(string, ReplaceKbDTO, ServiceCallback<void>)

function replace(kbId: string, replaceKb: ReplaceKbDTO, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

replaceKb
ReplaceKbDTO

ReplaceKbDTO 的實例,其中包含要上傳的 qnas 清單

callback

ServiceCallback<void>

回呼

train(string, FeedbackRecordsDTO, RequestOptionsBase)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, options?: RequestOptionsBase): Promise<RestResponse>

參數

kbId

string

知識庫識別碼。

trainPayload
FeedbackRecordsDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

傳回

Promise<RestResponse>

Promise < msRest.RestResponse>

train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

trainPayload
FeedbackRecordsDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<void>

回呼

train(string, FeedbackRecordsDTO, ServiceCallback<void>)

function train(kbId: string, trainPayload: FeedbackRecordsDTO, callback: ServiceCallback<void>)

參數

kbId

string

知識庫識別碼。

trainPayload
FeedbackRecordsDTO

要求張貼本文。

callback

ServiceCallback<void>

回呼

update(string, UpdateKbOperationDTO, RequestOptionsBase)

function update(kbId: string, updateKb: UpdateKbOperationDTO, options?: RequestOptionsBase): Promise<KnowledgebaseUpdateResponse>

參數

kbId

string

知識庫識別碼。

updateKb
UpdateKbOperationDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

傳回

Promise < Models.KnowledgebaseUpdateResponse>

update(string, UpdateKbOperationDTO, RequestOptionsBase, ServiceCallback<Operation>)

function update(kbId: string, updateKb: UpdateKbOperationDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)

參數

kbId

string

知識庫識別碼。

updateKb
UpdateKbOperationDTO

要求張貼本文。

options
RequestOptionsBase

選擇性參數

callback

ServiceCallback<Operation>

回呼

update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

function update(kbId: string, updateKb: UpdateKbOperationDTO, callback: ServiceCallback<Operation>)

參數

kbId

string

知識庫識別碼。

updateKb
UpdateKbOperationDTO

要求張貼本文。

callback

ServiceCallback<Operation>

回呼