Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class FactChunk.
Fact Chunk.
Generated from protobuf message google.cloud.discoveryengine.v1.FactChunk
Namespace
Google \ Cloud \ DiscoveryEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ chunk_text
string
Text content of the fact chunk. Can be at most 10K characters long.
↳ source
string
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
↳ index
int
The index of this chunk. Currently, only used for the streaming mode.
↳ source_metadata
getChunkText
Text content of the fact chunk. Can be at most 10K characters long.
string
setChunkText
Text content of the fact chunk. Can be at most 10K characters long.
var
string
$this
getSource
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string
setSource
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
var
string
$this
getIndex
The index of this chunk. Currently, only used for the streaming mode.
int
setIndex
The index of this chunk. Currently, only used for the streaming mode.
var
int
$this
getSourceMetadata
More fine-grained information for the source reference.
setSourceMetadata
More fine-grained information for the source reference.
$this