Skip to content

Commit c84d474

Browse files
Update amazon-bedrock.md
1 parent fc10731 commit c84d474

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • content/en/docs/appstore/use-content/platform-supported-content/modules/aws

content/en/docs/appstore/use-content/platform-supported-content/modules/aws/amazon-bedrock.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,17 @@ The request object passed to this operation must include a KnowledgeBaseTool obj
254254

255255
##### Prompt Template {#PromptTemplate}
256256

257-
Amazon Bedrocks Retrieve and Generate action has a limitation: it doesn’t support System prompts within the request. This can pose challenges when trying to orchestrate responses in specific ways, such as adopting a subject experts tone or providing tailored advice when certain conditions are met (e.g., suggesting contacting support if no search results are found).
257+
Amazon Bedrock's Retrieve and Generate action has a limitation: it does not support system prompts within the request. This can pose challenges when trying to orchestrate responses in specific ways, such as adopting a subject expert's tone or providing tailored advice when certain conditions are met (for example, suggesting contacting support if no search results are found).
258258

259-
To address this limitation, Amazon Bedrock offers a solution through Prompt Templates. A Prompt Template acts as an orchestration prompt that’s sent along with the request response generation when a user queries a knowledge base using Amazon Bedrocks Retrieve and Generate feature. While Prompt Templates can contain instructions similar to system prompts, they are distinct and serve a different purpose in the query process.
259+
To address this limitation, Amazon Bedrock offers a solution through prompt templates. A prompt template acts as an orchestration prompt that is sent along with the request response generation when a user queries a knowledge base using Amazon Bedrock's Retrieve and Generate feature. While prompt templates can contain instructions similar to system prompts, they are distinct and serve a different purpose in the query process.
260260

261-
Prompt Templates allow for greater flexibility in response generation. When creating a Prompt Template, you can use various tokens to customize the output. It’s crucial to note that the $searchresult$ token is mandatory in every Prompt Template, as it represents where the retrieved information will be inserted.
261+
Prompt templates allow for greater flexibility in response generation. When creating a prompt template, you can use various tokens to customize the output. It is crucial to note that the *$searchresult$* token is mandatory in every prompt template, as it represents where the retrieved information will be inserted.
262262

263-
By leveraging Prompt Templates, you can influence the tone, structure, and content of responses, even in scenarios where the standard Retrieve and Generate action might fall short. This feature enables more nuanced and context-appropriate interactions with the knowledge base.
263+
By leveraging prompt templates, you can influence the tone, structure, and content of responses, even in scenarios where the standard Retrieve and Generate action might fall short. This feature enables more nuanced and context-appropriate interactions with the knowledge base.
264264

265-
For a deeper understanding of Prompt Templates and their implementation, refer to the official Amazon Documentation on Prompt Templates, which provides comprehensive guidance on their usage and best practices. [Amazon Documentation for Prompt Template](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt).
266-
267-
For more information about how to structure your prompts please read [Prompt engineering](https://docs.mendix.com/appstore/modules/genai/prompt-engineering/).
265+
For a deeper understanding of prompt templates and their implementation, refer to the [Amazon documentation on prompt templates](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt), which provides comprehensive guidance on their usage and best practices. .
268266

267+
For more information about how to structure your prompts, see [Prompt engineering](https://docs.mendix.com/appstore/modules/genai/prompt-engineering/).
269268

270269
#### Chatting with History {#retrieve-and-generate-with-history}
271270

0 commit comments

Comments
 (0)