Knowledgebase class

Klasa reprezentująca bazę wiedzy.

Konstruktory

Knowledgebase(QnAMakerClientContext)

Utwórz bazę wiedzy.

Metody

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

Szczegóły konstruktora

Knowledgebase(QnAMakerClientContext)

Utwórz bazę wiedzy.

new Knowledgebase(client: QnAMakerClientContext)

Parametry

client
QnAMakerClientContext

Odwołanie do klienta usługi.

Szczegóły metody

create(CreateKbDTO, RequestOptionsBase)

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

Parametry

createKbPayload
CreateKbDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseCreateResponse>

create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)

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

Parametry

createKbPayload
CreateKbDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<Operation>

Wywołanie zwrotne

create(CreateKbDTO, ServiceCallback<Operation>)

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

Parametry

createKbPayload
CreateKbDTO

Opublikuj treść żądania.

callback

ServiceCallback<Operation>

Wywołanie zwrotne

deleteMethod(string, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<void>

Wywołanie zwrotne

deleteMethod(string, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

callback

ServiceCallback<void>

Wywołanie zwrotne

download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

environment
EnvironmentType

Określa, czy środowisko jest testowe, czy prod. Możliwe wartości to: "Prod", "Test"

options
KnowledgebaseDownloadOptionalParams

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseDownloadResponse>

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

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

environment
EnvironmentType

Określa, czy środowisko jest testowe, czy prod. Możliwe wartości to: "Prod", "Test"

options
KnowledgebaseDownloadOptionalParams

Parametry opcjonalne

callback

ServiceCallback<QnADocumentsDTO>

Wywołanie zwrotne

download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

environment
EnvironmentType

Określa, czy środowisko jest testowe, czy prod. Możliwe wartości to: "Prod", "Test"

callback

ServiceCallback<QnADocumentsDTO>

Wywołanie zwrotne

generateAnswer(string, QueryDTO, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

generateAnswerPayload
QueryDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseGenerateAnswerResponse>

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

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

generateAnswerPayload
QueryDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<QnASearchResultList>

Wywołanie zwrotne

generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

generateAnswerPayload
QueryDTO

Opublikuj treść żądania.

callback

ServiceCallback<QnASearchResultList>

Wywołanie zwrotne

getDetails(string, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseGetDetailsResponse>

getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<KnowledgebaseDTO>

Wywołanie zwrotne

getDetails(string, ServiceCallback<KnowledgebaseDTO>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

callback

ServiceCallback<KnowledgebaseDTO>

Wywołanie zwrotne

listAll(RequestOptionsBase)

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

Parametry

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseListAllResponse>

listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)

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

Parametry

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<KnowledgebasesDTO>

Wywołanie zwrotne

listAll(ServiceCallback<KnowledgebasesDTO>)

function listAll(callback: ServiceCallback<KnowledgebasesDTO>)

Parametry

callback

ServiceCallback<KnowledgebasesDTO>

Wywołanie zwrotne

publish(string, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<RestResponse>

Promise<msRest.RestResponse>

publish(string, RequestOptionsBase, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<void>

Wywołanie zwrotne

publish(string, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

callback

ServiceCallback<void>

Wywołanie zwrotne

replace(string, ReplaceKbDTO, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

replaceKb
ReplaceKbDTO

Wystąpienie obiektu ReplaceKbDTO zawierające listę qnas do przekazania

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<RestResponse>

Promise<msRest.RestResponse>

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

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

replaceKb
ReplaceKbDTO

Wystąpienie obiektu ReplaceKbDTO zawierające listę qnas do przekazania

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<void>

Wywołanie zwrotne

replace(string, ReplaceKbDTO, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

replaceKb
ReplaceKbDTO

Wystąpienie obiektu ReplaceKbDTO zawierające listę qnas do przekazania

callback

ServiceCallback<void>

Wywołanie zwrotne

train(string, FeedbackRecordsDTO, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

trainPayload
FeedbackRecordsDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<RestResponse>

Promise<msRest.RestResponse>

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

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

trainPayload
FeedbackRecordsDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<void>

Wywołanie zwrotne

train(string, FeedbackRecordsDTO, ServiceCallback<void>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

trainPayload
FeedbackRecordsDTO

Opublikuj treść żądania.

callback

ServiceCallback<void>

Wywołanie zwrotne

update(string, UpdateKbOperationDTO, RequestOptionsBase)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

updateKb
UpdateKbOperationDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

Zwraca

Promise<Models.KnowledgebaseUpdateResponse>

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

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

updateKb
UpdateKbOperationDTO

Opublikuj treść żądania.

options
RequestOptionsBase

Parametry opcjonalne

callback

ServiceCallback<Operation>

Wywołanie zwrotne

update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)

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

Parametry

kbId

string

Identyfikator bazy wiedzy.

updateKb
UpdateKbOperationDTO

Opublikuj treść żądania.

callback

ServiceCallback<Operation>

Wywołanie zwrotne