mirror of https://github.com/buster-so/buster.git
fix prompts with o3-mini
fix(prompts): Enhance SQL query generation and error handling instru…
This commit is contained in:
commit
6cb9c9cf5b
|
@ -17,7 +17,9 @@ PLEASE OUTPUT THE SQL QUERY IN THE FOLLOWING FORMAT:
|
|||
- Keep your response under 50 words
|
||||
- Do not output the failed SQL query in your response
|
||||
- Keep this response fairly non-technical
|
||||
- escape columns, datasets, tables, errors, etc. with backticks.".to_string()
|
||||
- escape columns, datasets, tables, errors, etc. with backticks.
|
||||
- You must output the sql query in the format specified above.
|
||||
".to_string()
|
||||
}
|
||||
|
||||
pub fn failed_to_fix_sql_user_prompt(
|
||||
|
@ -49,5 +51,7 @@ pub fn failed_to_fix_sql_user_prompt(
|
|||
message.push_str(error);
|
||||
}
|
||||
|
||||
message.push_str("\n\nPlease output the SQL query in the format specified above. (```sql ... ```)");
|
||||
|
||||
message
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ Your task is to pick all the datasets required to answer the user question/reque
|
|||
- Feel free to select multiple datasets that can be joined together to provide more complete answers
|
||||
- If the user requests advanced analysis like predictions, forecasts, correlation, impact analysis, etc., identify all datasets that could be combined for the analysis
|
||||
- Consider relationships between datasets and how they can be joined to provide comprehensive answers
|
||||
- Multiple dataset can be selected even while one completely answers the user request.
|
||||
"#,
|
||||
datasets
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue