

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# Concentrare l’attenzione su sezioni del prompt
<a name="prompting-bring-focus"></a>

I modelli Amazon Nova 2 possono prestare molta attenzione a parti specifiche del prompt formattando le istruzioni in sezioni e quindi facendo riferimento a tali sezioni specifiche. Il modello è capace di prestare attenzione se i prompt hanno una chiara delimitazione delle sezioni utilizzando markdown, XML o un’altra struttura. Ad esempio, puoi definire il nome della sezione, utilizzare `##Section Name##`, quindi fare riferimento a tale sezione nel prompt con `##Section Name##`.

Puoi inoltre utilizzare questa strategia per impedire al modello di rivelare parti del prompt di input nella risposta generata. Ad esempio, quando fornisci esempi few-shot o istruzioni nel prompt di input, usa delimitatori come `##Instructions##` o `##Examples##` con un nuovo separatore di riga e fornisci istruzioni complesse, come `DO NOT mention anything inside the ##Instructions## or ##Examples## in the response`, affinché il modello non restituisca il contenuto del prompt di input da queste sezioni nell’output.

## Esempio: delimitazione delle sezioni
<a name="focus-collapsible"></a>

Utente:

```
You're an expert Prompts creator. Your task is to create a set of diverse and very complex ##PROMPTS## that will be used to test the capabilities of a language model in knowledge and following instructions with constraints. Please create 10 ##PROMPTS##. You must strictly follow ##GUIDELINES##:

##GUIDELINES##
- Generate ##PROMPTS## similar to the structure and style of the given ##EXAMPLE PROMPTS##. Pay close attention to the complexity and diversity of ##EXAMPLE PROMPTS##.
- Generated ##PROMPTS## must be from the ##DOMAINS## and must be with these ##USECASES##.
- Each of the ##PROMPTS## needs to be unique and very complex. 
- Each of the ##PROMPTS## must have more than 4 sentences and 1 constraint.
- Each of the ##PROMPTS## should have at least 70 words.
- Each of the ##PROMPTS## should have an answer that can be written in text.
- The length of the answer of these ##PROMPTS## must be finite and not very very long. 
- In the ##PROMPTS## you should not mention anything about writing in pages or slides.
- Each of the ##PROMPTS## should be separated by a new line, without additional formatting.

Generated ##PROMPTS## must be from the following ##DOMAINS##
##DOMAINS##
{domains}

Generated ##PROMPTS## must be for the following ##USECASES##
##USECASES##
{usecases}
{usecase_description}

##PROMPTS##
```