Knowledgebase class
Klasse, die eine Wissensdatenbank darstellt.
Konstruktoren
Knowledgebase(Qn |
Erstellen Sie eine Wissensdatenbank. |
Methoden
Details zum Konstruktor
Knowledgebase(QnAMakerClientContext)
Erstellen Sie eine Wissensdatenbank.
new Knowledgebase(client: QnAMakerClientContext)
Parameter
- client
- QnAMakerClientContext
Verweisen auf den Dienstclient.
Details zur Methode
create(CreateKbDTO, RequestOptionsBase)
function create(createKbPayload: CreateKbDTO, options?: RequestOptionsBase): Promise<KnowledgebaseCreateResponse>
Parameter
- createKbPayload
- CreateKbDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseCreateResponse>
Zusage<Models.KnowledgebaseCreateResponse>
create(CreateKbDTO, RequestOptionsBase, ServiceCallback<Operation>)
function create(createKbPayload: CreateKbDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)
Parameter
- createKbPayload
- CreateKbDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
- callback
Der Rückruf
create(CreateKbDTO, ServiceCallback<Operation>)
function create(createKbPayload: CreateKbDTO, callback: ServiceCallback<Operation>)
Parameter
- createKbPayload
- CreateKbDTO
Post body of the request.
- callback
Der Rückruf
deleteMethod(string, RequestOptionsBase)
function deleteMethod(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<RestResponse>
Zusage<msRest.RestResponse>
deleteMethod(string, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameter
- kbId
-
string
Knowledgebase-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
Knowledgebase-ID.
- callback
-
ServiceCallback<void>
Der Rückruf
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams)
function download(kbId: string, environment: EnvironmentType, options?: KnowledgebaseDownloadOptionalParams): Promise<KnowledgebaseDownloadResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- environment
- EnvironmentType
Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: 'Prod', 'Test'
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseDownloadResponse>
Promise<Models.KnowledgebaseDownloadResponse>
download(string, EnvironmentType, KnowledgebaseDownloadOptionalParams, ServiceCallback<QnADocumentsDTO>)
function download(kbId: string, environment: EnvironmentType, options: KnowledgebaseDownloadOptionalParams, callback: ServiceCallback<QnADocumentsDTO>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- environment
- EnvironmentType
Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: 'Prod', 'Test'
Die optionalen Parameter
- callback
Der Rückruf
download(string, EnvironmentType, ServiceCallback<QnADocumentsDTO>)
function download(kbId: string, environment: EnvironmentType, callback: ServiceCallback<QnADocumentsDTO>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- environment
- EnvironmentType
Gibt an, ob die Umgebung Test oder Prod ist. Mögliche Werte sind: 'Prod', 'Test'
- callback
Der Rückruf
generateAnswer(string, QueryDTO, RequestOptionsBase)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options?: RequestOptionsBase): Promise<KnowledgebaseGenerateAnswerResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseGenerateAnswerResponse>
Promise<Models.KnowledgebaseGenerateAnswerResponse>
generateAnswer(string, QueryDTO, RequestOptionsBase, ServiceCallback<QnASearchResultList>)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, options: RequestOptionsBase, callback: ServiceCallback<QnASearchResultList>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
- callback
Der Rückruf
generateAnswer(string, QueryDTO, ServiceCallback<QnASearchResultList>)
function generateAnswer(kbId: string, generateAnswerPayload: QueryDTO, callback: ServiceCallback<QnASearchResultList>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- generateAnswerPayload
- QueryDTO
Post body of the request.
- callback
Der Rückruf
getDetails(string, RequestOptionsBase)
function getDetails(kbId: string, options?: RequestOptionsBase): Promise<KnowledgebaseGetDetailsResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseGetDetailsResponse>
Promise<Models.KnowledgebaseGetDetailsResponse>
getDetails(string, RequestOptionsBase, ServiceCallback<KnowledgebaseDTO>)
function getDetails(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<KnowledgebaseDTO>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- options
- RequestOptionsBase
Die optionalen Parameter
- callback
Der Rückruf
getDetails(string, ServiceCallback<KnowledgebaseDTO>)
function getDetails(kbId: string, callback: ServiceCallback<KnowledgebaseDTO>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- callback
Der Rückruf
listAll(RequestOptionsBase)
function listAll(options?: RequestOptionsBase): Promise<KnowledgebaseListAllResponse>
Parameter
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseListAllResponse>
Promise<Models.KnowledgebaseListAllResponse>
listAll(RequestOptionsBase, ServiceCallback<KnowledgebasesDTO>)
function listAll(options: RequestOptionsBase, callback: ServiceCallback<KnowledgebasesDTO>)
Parameter
- options
- RequestOptionsBase
Die optionalen Parameter
- callback
Der Rückruf
listAll(ServiceCallback<KnowledgebasesDTO>)
function listAll(callback: ServiceCallback<KnowledgebasesDTO>)
Parameter
- callback
Der Rückruf
publish(string, RequestOptionsBase)
function publish(kbId: string, options?: RequestOptionsBase): Promise<RestResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<RestResponse>
Zusage<msRest.RestResponse>
publish(string, RequestOptionsBase, ServiceCallback<void>)
function publish(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameter
- kbId
-
string
Knowledgebase-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
Knowledgebase-ID.
- callback
-
ServiceCallback<void>
Der Rückruf
replace(string, ReplaceKbDTO, RequestOptionsBase)
function replace(kbId: string, replaceKb: ReplaceKbDTO, options?: RequestOptionsBase): Promise<RestResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- replaceKb
- ReplaceKbDTO
Eine Instanz von ReplaceKbDTO, die liste der hochzuladenden qnas enthält
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<RestResponse>
Zusage<msRest.RestResponse>
replace(string, ReplaceKbDTO, RequestOptionsBase, ServiceCallback<void>)
function replace(kbId: string, replaceKb: ReplaceKbDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- replaceKb
- ReplaceKbDTO
Eine Instanz von ReplaceKbDTO, die 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
Knowledgebase-ID.
- replaceKb
- ReplaceKbDTO
Eine Instanz von ReplaceKbDTO, die 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
Knowledgebase-ID.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<RestResponse>
Zusage<msRest.RestResponse>
train(string, FeedbackRecordsDTO, RequestOptionsBase, ServiceCallback<void>)
function train(kbId: string, trainPayload: FeedbackRecordsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- 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
Knowledgebase-ID.
- trainPayload
- FeedbackRecordsDTO
Post body of the request.
- callback
-
ServiceCallback<void>
Der Rückruf
update(string, UpdateKbOperationDTO, RequestOptionsBase)
function update(kbId: string, updateKb: UpdateKbOperationDTO, options?: RequestOptionsBase): Promise<KnowledgebaseUpdateResponse>
Parameter
- kbId
-
string
Knowledgebase-ID.
- updateKb
- UpdateKbOperationDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
Gibt zurück
Promise<KnowledgebaseUpdateResponse>
Promise<Models.KnowledgebaseUpdateResponse>
update(string, UpdateKbOperationDTO, RequestOptionsBase, ServiceCallback<Operation>)
function update(kbId: string, updateKb: UpdateKbOperationDTO, options: RequestOptionsBase, callback: ServiceCallback<Operation>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- updateKb
- UpdateKbOperationDTO
Post body of the request.
- options
- RequestOptionsBase
Die optionalen Parameter
- callback
Der Rückruf
update(string, UpdateKbOperationDTO, ServiceCallback<Operation>)
function update(kbId: string, updateKb: UpdateKbOperationDTO, callback: ServiceCallback<Operation>)
Parameter
- kbId
-
string
Knowledgebase-ID.
- updateKb
- UpdateKbOperationDTO
Post body of the request.
- callback
Der Rückruf