You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I test vanna in my local machine with MySQL verison 5.7.x, llama3.1-405b-instruct as backend LLM, chromadb as VDB.
If no specific version info of database server is set, LLM tends to generate SQL that suits somewhat newer version. In my case, for example, it generated a SQL using WITH statment, which is not supported for <8.0 version of MySQL.
I tried to solve this by:
Added a document:
"The version of MySQL server is 5.7.44, take it into consideration when generating SQL."
Added a sample of (question, sql):
The result showed that, approch 2 took effect while approch 1 did not.
I guess the language of document might not be the root cause of why approch 1 was invalid.
So, are there any other methods we could use to solve the problems?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I test vanna in my local machine with MySQL verison 5.7.x, llama3.1-405b-instruct as backend LLM, chromadb as VDB.
If no specific version info of database server is set, LLM tends to generate SQL that suits somewhat newer version. In my case, for example, it generated a SQL using
WITH
statment, which is not supported for <8.0 version of MySQL.I tried to solve this by:
The result showed that, approch 2 took effect while approch 1 did not.
I guess the language of document might not be the root cause of why approch 1 was invalid.
So, are there any other methods we could use to solve the problems?
Beta Was this translation helpful? Give feedback.
All reactions