Skip to content

Bedrock Runtime  >  Structures  >  Citation

Citation

Structure Class

Citation dataclass

Contains information about a citation that references a specific source document. Citations provide traceability between the model's generated response and the source documents that informed that response.

Attributes

location class-attribute instance-attribute
location: CitationLocation | None = None

The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.

source class-attribute instance-attribute
source: str | None = None

The source from the original search result that provided the cited content.

source_content class-attribute instance-attribute
source_content: list[CitationSourceContent] | None = None

The specific content from the source document that was referenced or cited in the generated response.

title class-attribute instance-attribute
title: str | None = None

The title or identifier of the source document being cited.