Class QAResult (0.3.0)

QAResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Additional result info for the question-answering feature.

Attributes

NameDescription
highlights MutableSequence[google.cloud.contentwarehouse_v1.types.QAResult.Highlight]
Highlighted sections in the snippet.
confidence_score float
The calibrated confidence score for this document, in the range [0., 1.]. This represents the confidence level for whether the returned document and snippet answers the user's query.

Classes

Highlight

Highlight(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A text span in the search text snippet that represents a highlighted section (answer context, highly relevant sentence, etc.).