QnADTO Class

Q-A object.

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

Inheritance
QnADTO

Constructor

QnADTO(*, answer: str, questions, id: int = None, source: str = None, metadata=None, context=None, last_updated_timestamp: str = None, **kwargs) -> None

Parameters

id
int
Required

Unique id for the Q-A.

answer
str
Required

Required. Answer text

source
str
Required

Source from which Q-A was indexed. eg. https://docs.microsoft.com/en-us/azure/cognitive-services/QnAMaker/FAQs

questions
list[str]
Required

Required. List of questions associated with the answer.

metadata
list[MetadataDTO]
Required

List of metadata associated with the answer.

context
QnADTOContext
Required

Context of a QnA

last_updated_timestamp
str
Required

Timestamp when the QnA was last updated.