From 0c69651ef37f72c8613965c069d13b473ca2d5fc Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 18 Dec 2023 17:57:06 +0800 Subject: [PATCH] (fix):remove parantheses in generated sql (#532) --- .../supersonic/chat/parser/sql/llm/SqlPromptGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat/core/src/main/java/com/tencent/supersonic/chat/parser/sql/llm/SqlPromptGenerator.java b/chat/core/src/main/java/com/tencent/supersonic/chat/parser/sql/llm/SqlPromptGenerator.java index 568aa3a5e..e6d260d82 100644 --- a/chat/core/src/main/java/com/tencent/supersonic/chat/parser/sql/llm/SqlPromptGenerator.java +++ b/chat/core/src/main/java/com/tencent/supersonic/chat/parser/sql/llm/SqlPromptGenerator.java @@ -57,7 +57,7 @@ public class SqlPromptGenerator { String instruction = "# Use the the schema links to generate the SQL queries for each of the questions."; List exampleKeys = Arrays.asList("questionAugmented", "dbSchema", "generatedSchemaLinkings", "sql"); String exampleTemplate = "dbSchema\nQ: questionAugmented\n" + "Schema_links: generatedSchemaLinkings\n" - + "SQL: {sql}"; + + "SQL: sql"; String schemaLinkingPrompt = InputFormat.format(exampleTemplate, exampleKeys, fewshotExampleList); Pair questionPrompt = transformQuestionPrompt(llmReq);