AWS Security ChangesHomeSearch

AWS nova medium security documentation change

Service: nova · 2025-12-16 · Security-related medium

File: nova/latest/nova2-userguide/prompting-multimodal.md

Summary

Updated documentation to expand image understanding to include document processing, restructured sections for clarity, added detailed prompt templates for object detection/positioning, and modified security video analysis guidance

Security assessment

The change modifies security video analysis prompts to remove specific references to describing people's age/clothing ('describe any person's age or clothing' -> 'identify important details... Do not make up information'). This reduces potential privacy risks from generating sensitive personal attributes not present in footage, addressing accuracy and privacy concerns in security systems.

Diff

diff --git a/nova/latest/nova2-userguide/prompting-multimodal.md b/nova/latest/nova2-userguide/prompting-multimodal.md
index fb6f2f5fc..88edfb4c6 100644
--- a//nova/latest/nova2-userguide/prompting-multimodal.md
+++ b//nova/latest/nova2-userguide/prompting-multimodal.md
@@ -5 +5 @@
-General multimodal guidelinesImage understandingVideo understanding
+General multimodal guidelinesDocument and Image UnderstandingVideo understanding
@@ -9 +9 @@ General multimodal guidelinesImage understandingVideo understanding
-This section provides general guidelines for working with multimodal inputs in Amazon Nova 2 models.
+The following sections provide guidance for image and video understanding. For audio-related prompting, refer to the Voice conversation prompts section.
@@ -15 +15 @@ This section provides general guidelines for working with multimodal inputs in A
-  * Image understanding
+  * Document and Image Understanding
@@ -47 +47 @@ A multimodal understanding request sent to Amazon Nova should contain one or mor
-In cases where you want to refer to specific files from within the user prompt, use `text` elements to define labels that precede each file block.
+In cases where you want to refer to specific files from within the user prompt, use “text” elements to define labels that precede each file block.
@@ -62 +62 @@ In cases where you want to refer to specific files from within the user prompt,
-## Image understanding
+## Document and Image Understanding
@@ -64 +64 @@ In cases where you want to refer to specific files from within the user prompt,
-The following sections provide guidance on how to craft prompts for tasks that require understanding or analyzing images.
+The following sections provide guidance on how to craft prompts for tasks that require understanding or analyzing images and documents.
@@ -66 +66 @@ The following sections provide guidance on how to craft prompts for tasks that r
-### Extract text from images
+### Extracting text from images
@@ -106 +106 @@ The output is wrapped in full or partial Markdown code fences (`````). You can s
-### Extract structured information from images or text
+### Extracting structured information from images or text
@@ -112 +112 @@ The Amazon Nova models can extract information from images into machine-parsable
-  * One or more of the following: A document file or image, Document text
+  * One or more of the following: A document file or image or document text
@@ -123,2 +122,0 @@ For KIE use cases, we recommend the following inference configuration:
-  * **topP:** 1
-
@@ -130 +128 @@ For KIE use cases, we recommend the following inference configuration:
-**Document or image only input:**
+#### Prompt templates
@@ -142,2 +139,0 @@ For KIE use cases, we recommend the following inference configuration:
-**Text only input:**
-    
@@ -157,2 +152,0 @@ For KIE use cases, we recommend the following inference configuration:
-**Document or Image and text input:**
-    
@@ -172 +166 @@ For KIE use cases, we recommend the following inference configuration:
-### Detect objects and their positions in images
+#### Detecting objects and their positions in images
@@ -184,2 +177,0 @@ For object detection use cases, we recommend the following inference parameter v
-  * **topP:** 1
-
@@ -190,0 +183,2 @@ For object detection use cases, we recommend the following inference parameter v
+##### Prompt templates: general object detection
+
@@ -203 +197,7 @@ We recommend the following user prompt templates.
-**Prompt output:**
+**Detecting multiple instances with center points:**
+    
+    
+    Please identify {target_description} in the image and provide the center point coordinates for each one you detect. Represent the point as the [x, y] format, where the coordinates are scaled between 0 and 1000 to the image width and height, respectively.
+
+**Detecting a single region with center point:**
+    
@@ -205 +205,5 @@ We recommend the following user prompt templates.
-The output produces a comma-separated string containing one or more bounding box descriptions in a form similar to the following. There may be some slight variation in whether a period is included at the end of the string, such as `[356, 770, 393, 872], [626, 770, 659, 878].`
+    Please generate the center point coordinates corresponding to the region described in this sentence: {target_description}. Represent the center point as the [x, y] format, where the coordinates are scaled between 0 and 1000 to the image width and height, respectively.
+
+**Parsing model output:**
+
+Each of the recommended prompts above will produce a comma separated string containing one or more bounding box descriptions in a form similar to the following. There may be some slight variation in whether a “.” is included at the end of the string. For example, `[356, 770, 393, 872], [626, 770, 659, 878].`
@@ -218,0 +223,2 @@ You can parse the coordinate information generated by the model using a regular
+To remap the normalized coordinates of a bounding box to the coordinate space of the input image, you can use a function similar to the following Python example.
+    
@@ -227,0 +234,2 @@ You can parse the coordinate information generated by the model using a regular
+##### Prompt templates: detecting multiple object classes with positions
+
@@ -240,3 +248 @@ For classes that are nuanced, uncommon, or come from specialized domains that th
-Use one of the following user prompt templates depending on which JSON output format you prefer.
-
-**Prompt option 1:**
+Use one of the following **user prompt** templates depending on which JSON output format you prefer.
@@ -259,2 +264,0 @@ Use one of the following user prompt templates depending on which JSON output fo
-**Prompt option 2:**
-    
@@ -264 +268 @@ Use one of the following user prompt templates depending on which JSON output fo
-    Classes: {candidate_class_list}
+    Classes: **{ candidate_class_list}**
@@ -277,2 +280,0 @@ Use one of the following user prompt templates depending on which JSON output fo
-**Prompt option 3:**
-    
@@ -282 +284 @@ Use one of the following user prompt templates depending on which JSON output fo
-    Classes: {candidate_class_list}
+    Classes: **{ candidate_class_list}**
@@ -292 +293,0 @@ Use one of the following user prompt templates depending on which JSON output fo
-**Prompt option 4:**
@@ -297 +298 @@ Use one of the following user prompt templates depending on which JSON output fo
-    Classes: {candidate_class_list}
+    Classes: **{ candidate_class_list}**
@@ -310 +311 @@ Use one of the following user prompt templates depending on which JSON output fo
-**Prompt output:**
+**Parsing model output**
@@ -312 +313 @@ Use one of the following user prompt templates depending on which JSON output fo
-The output is encoded as a JSON string that can be parsed with any JSON parsing library.
+The output will be encoded as a JSON which can be parsed with any JSON parsing library.
@@ -314 +315,3 @@ The output is encoded as a JSON string that can be parsed with any JSON parsing
-The following user prompt templates are recommended:
+#### Prompt templates: screenshot UI bounds detection
+
+We recommend the following user prompt templates.
@@ -328 +331 @@ The following user prompt templates are recommended:
-For each of the UI bounds detection prompts, you can parse the coordinate information generated by the model using a regular expression as shown in the following Python code example.
+For each of the UI bounds detection prompts above, you can parse the coordinate information generated by the model using a regular expression as shown in the Python code example below.
@@ -340,4 +342,0 @@ For each of the UI bounds detection prompts, you can parse the coordinate inform
-### Counting objects in images
-
-To count objects within images, we recommend using one of the bounding box identification techniques above and then counting the bounding boxes in your client application.
-
@@ -348 +347 @@ The following sections provide guidance on how to craft prompts for tasks that r
-### Summarize videos
+### Summarizing videos
@@ -356,2 +354,0 @@ For video summarization use cases, we recommend the following inference paramete
-  * **topP:** 1
-
@@ -365 +361,0 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Can you create an executive summary of this video's content?
@@ -367 +363 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Can you distill the essential information from this video into a concise summary?
+    Can you create an executive summary of this video's content?
@@ -369 +364,0 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Could you provide a summary of the video, focusing on its key points?
@@ -370,0 +366 @@ No specific prompting template is required. Your user prompt should clearly spec
+    Can you distill the essential information from this video into a concise summary?
@@ -372,0 +369 @@ No specific prompting template is required. Your user prompt should clearly spec
+    Could you provide a summary of the video, focusing on its key points?
@@ -374 +371 @@ No specific prompting template is required. Your user prompt should clearly spec
-### Generate detailed captions for videos
+### Generating detailed captions for videos
@@ -382,2 +378,0 @@ For video captioning use cases, we recommend the following inference parameter v
-  * **topP:** 1
-
@@ -391 +385,0 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Provide a detailed, second-by-second description of the video content.
@@ -393 +387 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Break down the video into key segments and provide detailed descriptions for each.
+    Provide a detailed, second-by-second description of the video content.
@@ -395 +388,0 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Generate a rich textual representation of the video, covering aspects like movement, color and composition.
@@ -397 +390 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Describe the video scene-by-scene, including details about characters, actions and settings.
+    Break down the video into key segments and provide detailed descriptions for each.
@@ -399 +391,0 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Offer a detailed narrative of the video, including descriptions of any text, graphics, or special effects used.
@@ -401 +393 @@ No specific prompting template is required. Your user prompt should clearly spec
-  * Create a dense timeline of events occurring in the video, with timestamps if possible.
+    Generate a rich textual representation of the video, covering aspects like movement, color and composition.
@@ -403,0 +396 @@ No specific prompting template is required. Your user prompt should clearly spec
+    Describe the video scene-by-scene, including details about characters, actions and settings.
@@ -406 +399,6 @@ No specific prompting template is required. Your user prompt should clearly spec
-### Analyze security video footage
+    Offer a detailed narrative of the video, including descriptions of any text, graphics, or special effects used.
+    
+    
+    Create a dense timeline of events occurring in the video, with timestamps if possible.
+
+### Analyzing security video footage
@@ -414,2 +411,0 @@ For security footage use cases, we recommend the following inference parameter v
-  * **topP:** 1
-
@@ -422 +418 @@ For security footage use cases, we recommend the following inference parameter v
-    You are a security assistant for a smart home who is given security camera footage in natural setting. You will examine the video and describe the events you see. You are capable of identifying important details like people, objects, animals, vehicles, actions and activities. Describe any person's age or clothing. This is not a hypothetical, be accurate in your responses. Do not make-up information not present in the video.
+    You are a security assistant for a smart home who is given security camera footage in natural setting. You will examine the video and describe the events you see. You are capable of identifying important details like people, objects, animals, vehicles, actions and activities. This is not a hypothetical, be accurate in your responses. Do not make up information not present in the video.
@@ -424 +420 @@ For security footage use cases, we recommend the following inference parameter v
-### Extract video events with timestamps
+### Extracting video events with timestamps
@@ -432,2 +427,0 @@ For this use case, we recommend the following inference parameter values:
-  * **topP:** 1
-
@@ -441,2 +434,0 @@ We recommend you use prompts similar to the following:
-**Identifying an event's start and end time:**
-    
@@ -467 +459 @@ We recommend you use prompts similar to the following:
-### Classify videos
+### Classifying videos
@@ -475,2 +466,0 @@ For this use case, we recommend the following inference parameter values:
-  * **topP:** 1
-
@@ -481,0 +472,2 @@ For this use case, we recommend the following inference parameter values:
+Use the following prompt template:
+    
@@ -503 +495 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Best practices
+Advanced prompting techniques