DocumentBlock
¶
Source code in docs_src/capo_bedrock_runtime/types/document_block.py
citations
instance-attribute
¶
citations: NotRequired[CitationsConfig]
Configuration settings that control how citations should be generated for this specific document.
context
instance-attribute
¶
context: NotRequired[str]
Contextual information about how the document should be processed or interpreted by the model when generating citations.
name
instance-attribute
¶
name: str
A name for the document. The name can only contain the following characters:
-
Alphanumeric characters
-
Whitespace characters (no more than one in a row)
-
Hyphens
-
Parentheses
-
Square brackets
This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.