File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class OnePassSCSqlGenStrategy extends SqlGenStrategy {
46
46
+ "\n 8.ALWAYS enclose alias created by `AS` command in underscores."
47
47
+ "\n 9.ALWAYS translate alias created by `AS` command to the same language as the `#Question`."
48
48
+ "\n #Exemplars: {{exemplar}}"
49
- + "\n #Question : Question:{{question}},Schema:{{schema}},SideInfo:{{information}}" ;
49
+ + "\n #Query : Question:{{question}},Schema:{{schema}},SideInfo:{{information}}" ;
50
50
51
51
public OnePassSCSqlGenStrategy () {
52
52
ChatAppManager .register (APP_KEY , ChatApp .builder ().prompt (INSTRUCTION ).name ("语义SQL解析" )
@@ -92,7 +92,8 @@ public LLMResp generate(LLMReq llmReq) {
92
92
prompt2Exemplar .keySet ().parallelStream ().forEach (prompt -> {
93
93
SemanticSql s2Sql = extractor .generateSemanticSql (prompt .toUserMessage ().singleText ());
94
94
output2Prompt .put (s2Sql .getSql (), prompt );
95
- keyPipelineLog .info ("OnePassSCSqlGenStrategy modelReq:\n {} \n modelResp:\n {}" , prompt .text (), s2Sql );
95
+ keyPipelineLog .info ("OnePassSCSqlGenStrategy modelReq:\n {} \n modelResp:\n {}" ,
96
+ prompt .text (), s2Sql );
96
97
});
97
98
98
99
// 4.format response.
You can’t perform that action at this time.
0 commit comments