DocumentBlock - Amazon Bedrock (original) (raw)
A document to include in a message.
Contents
name
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
Note
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.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 200.
Required: Yes
source
Contains the content of the document.
Type: DocumentSource object
Note: This object is a Union. Only one member of this object can be specified or returned.
Required: Yes
citations
Configuration settings that control how citations should be generated for this specific document.
Type: CitationsConfig object
Required: No
context
Contextual information about how the document should be processed or interpreted by the model when generating citations.
Type: String
Required: No
format
The format of a document, or its extension.
Type: String
Valid Values: pdf | csv | doc | docx | xls | xlsx | html | txt | md
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
CountTokensInput
DocumentCharLocation
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.