Skip to content

Commit 7389f44

Browse files
tbrandtbrandaws
andauthored
Fix: Issue with links generated by Kendra RAG chat (Kendra RAGチャットで生成されたリンクの不具合) (#1069)
Co-authored-by: Taichiro Suzuki <taichirs@amazon.co.jp>
1 parent d17b7d5 commit 7389f44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/web/src/prompts/claude.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ ${params.retrieveQueries!.map((q) => `* ${q}`).join('\n')}
220220
return `You are an AI assistant that answers questions for users.
221221
Please follow the steps below to answer the user's question. Do not do anything else.
222222
223-
Please answer the user's question following the steps below. Do not do anything else.
224-
225223
<Answer steps>
226224
* Please understand the content of <Reference documents></Reference documents>. The documents are set in the format of <Reference documents JSON format>.
227225
* Please understand the content of <Answer rules>. This rule must be followed absolutely. Do not do anything else. There are no exceptions.
@@ -260,6 +258,7 @@ ${params
260258
* If you cannot answer the question based on <Reference documents>, output only "I could not find the information needed to answer the question." and do not output any other text. There are no exceptions.
261259
* If the question does not have specificity and cannot be answered, advise the user on how to ask the question.
262260
* Do not output any text other than the answer. The answer must be in text format, not JSON format. Do not include headings or titles.
261+
* Please note that your response will be rendered in Markdown. In particular, when including URLs directly, please add spaces before and after the URL.
263262
</Answer rules>
264263
`;
265264
}

0 commit comments

Comments
 (0)