Class Citation (0.13.8)

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

Citation info for a segment.

Attributes

Name Description
start_index int
Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.
end_index int
End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.
sources MutableSequence[google.cloud.discoveryengine_v1.types.Answer.CitationSource]
Citation sources for the attributed segment.