(fix):remove parantheses in generated sql (#532)

This commit is contained in:
Scott
2023-12-18 17:57:06 +08:00
committed by GitHub
parent b5fdbfbbf6
commit 0c69651ef3

View File

@@ -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<String> 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<String, String> questionPrompt = transformQuestionPrompt(llmReq);