"description":"Database query assistant. It converts questions into SQL statements and queries them in the database. You need to provide 3 kinds of knowledge base: 1. DDL data in the database. 2. Sample text questions converted to SQL statements. 3. A description of the database contents, including but not limited to: tables, records, and so on. You will also need to set up database configuration information: like IP Port ...",
"prompt":"## You are the Repair SQL Statement Helper, please modify the original SQL statement based on the SQL query error report.\n\n## The contents of the SQL query error report and the original SQL statement are as follows:\n{exesql_input}\n\n## Answer only the modified SQL statement. Each SQL statement ends with semicolon and do not give any explanation, just answer the code.",
"prompt":"\n##The user provides a question and you provide SQL. You will only respond with SQL code and not with any explanations.\n\n##You may use the following DDL statements as a reference for what tables might be available. Use responses to past questions also to guide you: {ddl_input}.\n\n##You may use the following documentation as a reference for what tables might be available. Use responses to past questions also to guide you: {db_input}.\n\n##You may use the following SQL statements as a reference for what tables might be available. Use responses to past questions also to guide you: {sql_input}.\n\n##Respond with only SQL code. Each SQL code ends with semicolon and do not give any explanation -- just the code.",
"prompt":"\n##The user provides a question and you provide SQL. You will only respond with SQL code and not with any explanations.\n\n##You may use the following DDL statements as a reference for what tables might be available. Use responses to past questions also to guide you: {ddl_input}.\n\n##You may use the following documentation as a reference for what tables might be available. Use responses to past questions also to guide you: {db_input}.\n\n##You may use the following SQL statements as a reference for what tables might be available. Use responses to past questions also to guide you: {sql_input}.\n\n##Respond with only SQL code. Do not answer with any explanations -- just the code.",
"temperature":0.1,
"temperatureEnabled":true,
"topPEnabled":true,
"top_p":0.3
},
"label":"Generate",
"name":"Generate SQL Statement LLM"
},
"dragging":false,
"height":150,
"id":"Generate:OliveDotsInvent",
"position":{
"x":228.17845935020443,
"y":102.9434103991
},
"positionAbsolute":{
"x":228.17845935020443,
"y":102.9434103991
},
"selected":false,
"sourcePosition":"right",
"targetPosition":"left",
"type":"logicNode",
"width":150
},
{
"data":{
"form":{
"kb_ids":[
"b510f8f45f6011ef904f0242ac160006"
],
"keywords_similarity_weight":0.3,
"similarity_threshold":0.2,
"top_n":8
},
"label":"Retrieval",
"name":"DB Description"
},
"dragging":false,
"height":100,
"id":"Retrieval:OpenWingsRepeat",
"position":{
"x":-37.01242367263157,
"y":269.6456054919204
},
"positionAbsolute":{
"x":-37.01242367263157,
"y":269.6456054919204
},
"selected":false,
"sourcePosition":"right",
"targetPosition":"left",
"type":"logicNode",
"width":100
},
{
"data":{
"form":{
"kb_ids":[
"9870268e5f6011efb8570242ac160006"
],
"keywords_similarity_weight":0.1,
"similarity_threshold":0.02,
"top_n":18
},
"label":"Retrieval",
"name":"DDL"
},
"dragging":false,
"height":100,
"id":"Retrieval:StrongDrinksShare",
"position":{
"x":-34.942728410599784,
"y":-7.316435660083982
},
"positionAbsolute":{
"x":-34.942728410599784,
"y":-7.316435660083982
},
"selected":false,
"sourcePosition":"right",
"targetPosition":"left",
"type":"logicNode",
"width":100
},
{
"data":{
"form":{
"database":"Your DB name",
"db_type":"mysql",
"host":"Your IP Port",
"loop":3,
"password":"Your Password",
"port":3306,
"top_n":9,
"username":"Your username"
},
"label":"ExeSQL",
"name":"Execute SQL"
},
"dragging":false,
"height":50,
"id":"ExeSQL:CoolFactsChew",
"position":{
"x":370.19177674560433,
"y":300.3411019618877
},
"positionAbsolute":{
"x":370.19177674560433,
"y":300.3411019618877
},
"selected":false,
"sourcePosition":"right",
"targetPosition":"left",
"type":"ragNode",
"width":50
},
{
"data":{
"form":{
"conditions":[
{
"items":[
{
"cpn_id":"ExeSQL:CoolFactsChew",
"operator":"contains",
"value":"Error"
},
{
"cpn_id":"ExeSQL:CoolFactsChew",
"operator":"start with",
"value":"**Error**"
}
],
"logical_operator":"or",
"to":"Generate:FloppyHairsFix"
}
],
"end_cpn_id":"Answer:SocialAdsWonder"
},
"label":"Switch",
"name":"Analyze SQL Result"
},
"dragging":false,
"height":100,
"id":"Switch:GreatTermsTeach",
"position":{
"x":-49.30094871211969,
"y":481.12636846537964
},
"positionAbsolute":{
"x":-49.30094871211969,
"y":481.12636846537964
},
"selected":false,
"sourcePosition":"right",
"targetPosition":"left",
"type":"categorizeNode",
"width":100
},
{
"data":{
"form":{
"cite":true,
"frequencyPenaltyEnabled":true,
"frequency_penalty":0.7,
"llm_id":"deepseek-chat",
"maxTokensEnabled":true,
"max_tokens":256,
"message_history_window_size":12,
"parameters":[
{
"component_id":"ExeSQL:CoolFactsChew",
"id":"979b8482-28af-4c18-98a6-810963d8f08c",
"key":"exesql_input"
}
],
"presencePenaltyEnabled":true,
"presence_penalty":0.4,
"prompt":"## You are the Repair SQL Statement Helper, please modify the original SQL statement based on the SQL query error report.\n\n## The contents of the SQL query error report and the original SQL statement are as follows:\n{exesql_input}\n\n## Answer only the modified SQL statement. Please do not give any explanation, just answer the code.",