from llama_index.prompts.base import Prompt SQL_SYNTH_PROMPT= Prompt( "Given an input question, synthesize a response from the query results.\n" "Query: {query_str}\n" "SQL: {sql_query}\n" "SQL Response: {sql_response_str}\n" "Response: " ) query_engine = sql_index.as_query_engine(response_synthesis_prompt=SQL_SYNTH_PROMPT)