Find answers from the community

j
jpd0c
Offline, last seen 3 months ago
Joined September 25, 2024
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.
5 comments
L
j
j
jpd0c
·

Sql

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.
4 comments
L
j
how to use NLSQLTableQueryEngine with Ollama? I got stuck trying to configure llama_index.core.Settings
6 comments
L
j