Class QAResult (0.1.0)

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

Additional result info for the question-answering feature.

Attributes

NameDescription
highlights Sequence[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.

Inheritance

builtins.object > proto.message.Message > QAResult

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