You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/aws/amazon-bedrock.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,18 +254,17 @@ The request object passed to this operation must include a KnowledgeBaseTool obj
254
254
255
255
##### Prompt Template {#PromptTemplate}
256
256
257
-
Amazon Bedrock’s 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 expert’s 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).
258
258
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 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.
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.
260
260
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.
262
262
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.
264
264
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. .
268
266
267
+
For more information about how to structure your prompts, see [Prompt engineering](https://docs.mendix.com/appstore/modules/genai/prompt-engineering/).
269
268
270
269
#### Chatting with History {#retrieve-and-generate-with-history}
0 commit comments