From 7773c82eeaac67a187f053aabd088aa7e2ecb7ac Mon Sep 17 00:00:00 2001 From: jerryjzhang Date: Thu, 31 Oct 2024 21:48:40 +0800 Subject: [PATCH] [improvement][chat]Iterate the prompt of data interpretation. --- .../chat/server/processor/execute/DataInterpretProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/server/src/main/java/com/tencent/supersonic/chat/server/processor/execute/DataInterpretProcessor.java b/chat/server/src/main/java/com/tencent/supersonic/chat/server/processor/execute/DataInterpretProcessor.java index 5192870d9..2a8fe8d64 100644 --- a/chat/server/src/main/java/com/tencent/supersonic/chat/server/processor/execute/DataInterpretProcessor.java +++ b/chat/server/src/main/java/com/tencent/supersonic/chat/server/processor/execute/DataInterpretProcessor.java @@ -32,7 +32,7 @@ public class DataInterpretProcessor implements ExecuteResultProcessor { + "#Role: You are a data expert who communicates with business users everyday." + "\n#Task: Your will be provided with a question asked by a user and the relevant " + "result data queried from the databases, please interpret the data and organize a brief answer." - + "\n#Rules: " + "\n1.The `#Answer` must use the same language as the `#Question`." + + "\n#Rules: " + "\n1.ALWAYS respond in the use the same language as the `#Question`." + "\n2.ALWAYS reference some key data in the `#Answer`." + "\n#Question:{{question}} #Data:{{data}} #Answer:";