Class SearchResult (0.12.0)

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

Attributes

Name Description
document str
Document resource name.
uri str
URI for the document.
title str
Title.
snippet_info MutableSequence[google.cloud.discoveryengine_v1.types.Answer.Step.Action.Observation.SearchResult.SnippetInfo]
If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets.
chunk_info MutableSequence[google.cloud.discoveryengine_v1.types.Answer.Step.Action.Observation.SearchResult.ChunkInfo]
If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, populate chunk info.
struct_data google.protobuf.struct_pb2.Struct
Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL).

Classes

ChunkInfo

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

SnippetInfo

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

Snippet information.