Knowledgebase class

Klasse, die eine Wissensdatenbank darstellt.

Konstruktoren

Knowledgebase(QnAMakerClientContext)

Erstellen Sie eine Wissensdatenbank.

Methoden

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>)

Details zum Konstruktor

Knowledgebase(QnAMakerClientContext)

Erstellen Sie eine Wissensdatenbank.

new Knowledgebase(client: QnAMakerClientContext)

Parameter

client
QnAMakerClientContext

Verweis auf den Dienstclient.

Details zur Methode

create(CreateKbDTO, RequestOptionsBase)

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

Parameter

createKbPayload
CreateKbDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseCreateResponse>

create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)

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

Parameter

createKbPayload
CreateKbDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<Operation>

Der Rückruf.

create(CreateKbDTO, ServiceCallback<Operation>)

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

Parameter

createKbPayload
CreateKbDTO

Posttext der Anforderung.

callback

ServiceCallback<Operation>

Der Rückruf.

deleteMethod(string, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<RestResponse>

Versprechen<msRest.RestResponse>

deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<void>

Der Rückruf.

deleteMethod(string, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

callback

ServiceCallback<void>

Der Rückruf.

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)

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

Parameter

kbId

string

Wissensdatenbank-ID.

environment
EnvironmentType

Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: "Prod", "Test"

options
KnowledgebaseDownloadOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseDownloadResponse>

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

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

Parameter

kbId

string

Wissensdatenbank-ID.

environment
EnvironmentType

Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: "Prod", "Test"

options
KnowledgebaseDownloadOptionalParams

Die optionalen Parameter

callback

ServiceCallback<QnADocumentsDTO>

Der Rückruf.

download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

environment
EnvironmentType

Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: "Prod", "Test"

callback

ServiceCallback<QnADocumentsDTO>

Der Rückruf.

generateAnswer(string, QueryDTO, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

generateAnswerPayload
QueryDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseGenerateAnswerResponse>

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

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

Parameter

kbId

string

Wissensdatenbank-ID.

generateAnswerPayload
QueryDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<QnASearchResultList>

Der Rückruf.

generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

generateAnswerPayload
QueryDTO

Posttext der Anforderung.

callback

ServiceCallback<QnASearchResultList>

Der Rückruf.

getDetails(string, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseGetDetailsResponse>

getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<KnowledgebaseDTO>

Der Rückruf.

getDetails(string, ServiceCallback<KnowledgebaseDTO>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

callback

ServiceCallback<KnowledgebaseDTO>

Der Rückruf.

listAll(RequestOptionsBase)

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

Parameter

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseListAllResponse>

listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)

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

Parameter

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<KnowledgebasesDTO>

Der Rückruf.

listAll(ServiceCallback<KnowledgebasesDTO>)

function listAll(callback: ServiceCallback<KnowledgebasesDTO>)

Parameter

callback

ServiceCallback<KnowledgebasesDTO>

Der Rückruf.

publish(string, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<RestResponse>

Versprechen<msRest.RestResponse>

publish(string, RequestOptionsBase, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<void>

Der Rückruf.

publish(string, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

callback

ServiceCallback<void>

Der Rückruf.

replace(string, ReplaceKbDTO, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

replaceKb
ReplaceKbDTO

Eine Instanz von ReplaceKbDTO, die eine Liste der hochzuladenden qnas enthält.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<RestResponse>

Versprechen<msRest.RestResponse>

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

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

Parameter

kbId

string

Wissensdatenbank-ID.

replaceKb
ReplaceKbDTO

Eine Instanz von ReplaceKbDTO, die eine Liste der hochzuladenden qnas enthält.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<void>

Der Rückruf.

replace(string, ReplaceKbDTO, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

replaceKb
ReplaceKbDTO

Eine Instanz von ReplaceKbDTO, die eine Liste der hochzuladenden qnas enthält.

callback

ServiceCallback<void>

Der Rückruf.

train(string, FeedbackRecordsDTO, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

trainPayload
FeedbackRecordsDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<RestResponse>

Versprechen<msRest.RestResponse>

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

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

Parameter

kbId

string

Wissensdatenbank-ID.

trainPayload
FeedbackRecordsDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<void>

Der Rückruf.

train(string, FeedbackRecordsDTO, ServiceCallback<void>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

trainPayload
FeedbackRecordsDTO

Posttext der Anforderung.

callback

ServiceCallback<void>

Der Rückruf.

update(string, UpdateKbOperationDTO, RequestOptionsBase)

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

Parameter

kbId

string

Wissensdatenbank-ID.

updateKb
UpdateKbOperationDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise<Models.KnowledgebaseUpdateResponse>

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

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

Parameter

kbId

string

Wissensdatenbank-ID.

updateKb
UpdateKbOperationDTO

Posttext der Anforderung.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<Operation>

Der Rückruf.

update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

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

Parameter

kbId

string

Wissensdatenbank-ID.

updateKb
UpdateKbOperationDTO

Posttext der Anforderung.

callback

ServiceCallback<Operation>

Der Rückruf.