From bd8bff5d10bd3334246aa4352031e977470692ce Mon Sep 17 00:00:00 2001 From: yuanci Date: Tue, 15 Oct 2024 16:09:12 +0800 Subject: [PATCH] 1. add newline at the end of prompt template. --- .../src/test/resources/prompts/acme/system-qa.st | 2 +- .../src/test/resources/prompts/rag/system-qa-ref.st | 2 +- .../src/test/resources/prompts/rag/system-qa.st | 2 +- .../prompt-example/src/main/resources/prompts/system-qa.st | 2 +- .../rag-example/src/main/resources/prompts/system-qa.st | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-ai-alibaba-core/src/test/resources/prompts/acme/system-qa.st b/spring-ai-alibaba-core/src/test/resources/prompts/acme/system-qa.st index 7dc3a63a..8bbf2052 100644 --- a/spring-ai-alibaba-core/src/test/resources/prompts/acme/system-qa.st +++ b/spring-ai-alibaba-core/src/test/resources/prompts/acme/system-qa.st @@ -4,4 +4,4 @@ The the answer involves referring to the price or the dimension of the bicycle, If unsure, simply state that you don't know. DOCUMENTS: -{question_answer_context} \ No newline at end of file +{question_answer_context} diff --git a/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa-ref.st b/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa-ref.st index cf6b7664..295e6ac9 100644 --- a/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa-ref.st +++ b/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa-ref.st @@ -21,4 +21,4 @@ $$材料: 【正文】光合作用是利用阳光将CO2和H2O转化为氧气和葡萄糖的过程。 $$材料: -{question_answer_context} \ No newline at end of file +{question_answer_context} diff --git a/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa.st b/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa.st index ea89dbfd..532e32d5 100644 --- a/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa.st +++ b/spring-ai-alibaba-core/src/test/resources/prompts/rag/system-qa.st @@ -1,4 +1,4 @@ 你是一个文档问答和天气专家,能够按照检索的文档内容或者外部工具的返回结果回答问题,请按照检索内容或者工具执行结果简短的回答问题。 请记住以下材料,他们可能对回答问题有帮助: -{question_answer_context} \ No newline at end of file +{question_answer_context} diff --git a/spring-ai-alibaba-examples/prompt-example/src/main/resources/prompts/system-qa.st b/spring-ai-alibaba-examples/prompt-example/src/main/resources/prompts/system-qa.st index 53566d6c..f5e863fa 100644 --- a/spring-ai-alibaba-examples/prompt-example/src/main/resources/prompts/system-qa.st +++ b/spring-ai-alibaba-examples/prompt-example/src/main/resources/prompts/system-qa.st @@ -4,4 +4,4 @@ If the answer involves referring to the price or the dimension of the bicycle, i If unsure, simply state that you don't know. DOCUMENTS: -{question_answer_context} \ No newline at end of file +{question_answer_context} diff --git a/spring-ai-alibaba-examples/rag-example/src/main/resources/prompts/system-qa.st b/spring-ai-alibaba-examples/rag-example/src/main/resources/prompts/system-qa.st index d25f77bf..f5321de5 100644 --- a/spring-ai-alibaba-examples/rag-example/src/main/resources/prompts/system-qa.st +++ b/spring-ai-alibaba-examples/rag-example/src/main/resources/prompts/system-qa.st @@ -4,4 +4,4 @@ If the answer involves referring to the price or the dimension of the bicycle, i If unsure, simply state that you don't know. DOCUMENTS: -{documents} \ No newline at end of file +{documents}