CreateKbDTO Class

Post body schema for CreateKb operation.

All required parameters must be populated in order to send to Azure.

Inheritance
CreateKbDTO

Constructor

CreateKbDTO(*, name: str, qna_list=None, urls=None, files=None, enable_hierarchical_extraction: Optional[bool] = None, default_answer_used_for_extraction: Optional[str] = None, language: Optional[str] = None, enable_multiple_languages: Optional[bool] = None, default_answer: Optional[str] = None, **kwargs)

Parameters

name
str
Required

Required. Friendly name for the knowledgebase.

qna_list
list[QnADTO]
Required

List of Q-A (QnADTO) to be added to the knowledgebase. Q-A Ids are assigned by the service and should be omitted.

urls
list[str]
Required

List of URLs to be used for extracting Q-A.

files
list[FileDTO]
Required

List of files from which to Extract Q-A.

enable_hierarchical_extraction
bool
Required

Enable hierarchical extraction of Q-A from files and urls. Value to be considered False if this field is not present.

default_answer_used_for_extraction
str
Required

Text string to be used as the answer in any Q-A which has no extracted answer from the document but has a hierarchy. Required when EnableHierarchicalExtraction field is set to True.

language
str
Required

Language of the knowledgebase. Please find the list of supported languages here.

enable_multiple_languages
bool
Required

Set to true to enable creating KBs in different languages for the same resource.

default_answer
str
Required

Default answer sent to user if no good match is found in the KB.