Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
f"Under conditions: {', '.join(schema_info.get('conditions', []))}." return system_prompt # Example usage user_prompt = "total sales last year" system_prompt = generate_system_prompt(user_prompt) print(system_prompt) Generate a SQL query to calculate total sales last year. Use tables: SalesOrder,