Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.9Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.4 Reference Manual  /  ...  /  JavaScript GenAI API

27.3.10 JavaScript GenAI API

This section provides reference information for the GenAI API supported by JavaScript stored routines in the MLE Component.

This API enables the GenAI feature, with which you can perform natural-language searches using large language models (LLMs). A large language model is reflected in the JavaScript API as the LLM class and its attendant methods.

For more information about the GenAI feature, see:

GenAI is supported only with MySQL HeatWave and MySQL AI.

While MySQL provides SQL stored functions and procedures to invoke AutoML features, accessing these can be unintuitive for JavaScript developers. The JavaScript API described in this section acts as a wrapper which invokes these SQL stored programs.

The AutoML feature is supported only by MySQL HeatWave and MySQL AI, and thus the JavaScript API described here is supported when either MySQL HeatWave is enabled, or when MySQL AI is installed.

For more information about the AutoML feature, see: