morph_lib.ai
text_to_sql
The morph_lib.ai
package has been deprecated since v0.1.5 to reduce the size of the morph-data package.
It is planned to be provided in the form of an external adapter in the future.
Generates SQL from a given prompt.
Parameters
These are the parameters for OpenAI. Set the authentication parameters for other models as appropriate from the function definitions above.
Prompt
API key for using the LLM model
List of table names used for generation
LLM model to use
Connection used for generation
Schema name used for generation