mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
[feature][chat]Optimize the prompt of LLM-based DataInterpreter. #1828
This commit is contained in:
@@ -30,6 +30,7 @@ public class DataInterpretProcessor implements ExecuteResultProcessor {
|
|||||||
+ "\n#Task: Your will be provided with a question asked by a user and the relevant "
|
+ "\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."
|
+ "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.The `#Answer` must use the same language as the `#Question`."
|
||||||
|
+ "\n2.ALWAYS reference some key data in the `#Answer`."
|
||||||
+ "\n#Question:{{question}} #Data:{{data}} #Answer:";
|
+ "\n#Question:{{question}} #Data:{{data}} #Answer:";
|
||||||
|
|
||||||
public DataInterpretProcessor() {
|
public DataInterpretProcessor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user