Hi. Having issues with Llama-3 with NLSQLTableQueryEngine. It generates a response but then starts hallucinating. Inside the response starts to create imaginary questions and answers. I suspect that I need to set completion_to_prompt, messages_to_prompt but struggle to figure out how.
Please, could someone explain to me how the NLSQLTableQueryEngine works on the backend? Specially interested in understanding how the schema is generated, what it looks like and what checks it does to build the SQL query. It does a quite good job. Better understanding it would help to ensure it writes usable queries.