AttributionSourceId

@Serializable
data class AttributionSourceId(val groundingPassage: GroundingPassageId? = null, val semanticRetrieverChunk: SemanticRetrieverChunk? = null)

Identifies the source of an attribution, which can be either a grounding passage or a chunk retrieved by a semantic retriever. This class allows for specifying the origin of content or data used in processing or analysis.

Constructors

Link copied to clipboard
constructor(groundingPassage: GroundingPassageId? = null, semanticRetrieverChunk: SemanticRetrieverChunk? = null)

Properties

Link copied to clipboard

An optional GroundingPassageId that identifies a specific passage used for grounding information or context. This is nullable to accommodate situations where the attribution does not originate from a grounding passage.

Link copied to clipboard

An optional SemanticRetrieverChunk that identifies a specific chunk of content retrieved by a semantic retrieval process. This is nullable to accommodate situations where the attribution does not originate from a semantic retriever chunk.