跳至內容

Clarification on variables used in orchestration prompt

0

The following is a small snippet of the orchestration prompt, more specifically the '$additional_kb_guidelines$' prompt.

Structure any answer that uses information from search results in this exact XML format: <answer> <answer_part> <text> $ANSWER_PART$ </text> <sources> <source>$SOURCE_ID$</source> </sources> </answer_part> </answer>

I want to know what is the $ANSWER_PART$ and $SOURCE_ID$ refer to.

已提問 2 個月前檢視次數 82 次
1 個回答
0
已接受的答案

Hello,

I understand that you are using Bedrock and would like clarification on the variables used in the orchestration prompt, specifically $ANSWER_PART$ and $SOURCE_ID$.

$ANSWER_PART$ – This is where the actual text content of the answer goes. It's the substantive information being provided in response to the query.

$SOURCE_ID$ – Refers to the unique identifier of the source document or reference from which the information in the answer part was obtained. This helps track and validate the origin of the information.

Example -
If you were answering a question about climate change using search results.

$ANSWER_PART$ would be replaced with "Global temperatures have risen by approximately 1.1°C since pre-industrial times."
$SOURCE_ID$ would be replaced with "IPCC Climate Report 2023"

If you encounter any difficulties, please reach out to AWS Support [1] with details of your use case, and we will be happy to assist you further.

—References—

[1] Creating support cases and case management: https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-case

AWS
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。