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 am testing a basic text-to-SQL tool, following some basic llamaindex guides. I am using NLSQLTableQueryEngine to interact with the mysql database. However, I struggle to find exactly how the engine gets the schema and what prompt it send to the API provider (I am using Groq) to get the SQL query generated.
however, according the info log, table_desc_str is very verbose and has 50k tokens, way beyond the context window. Hence, I am trying how this is possible. Thanks!
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 am testing a basic text-to-SQL tool, following some basic llamaindex guides. I am using NLSQLTableQueryEngine to interact with the mysql database. However, I struggle to find exactly how the engine gets the schema and what prompt it send to the API provider (I am using Groq) to get the SQL query generated.
In the NLSQLRetriever code I found this:
however, according the info log, table_desc_str is very verbose and has 50k tokens, way beyond the context window. Hence, I am trying how this is possible. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions