Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.8Mb
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.6Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


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

27.3.9 JavaScript GenAI API

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

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

GenAI is supported only with MySQL HeatWave.

While MySQL provides SQL stored functions and procedures to invoke AutoML features, accessing these can be uninituitive 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 thus the JavaScript API described here is supported only when HeatWave is enabled. See HeatWave AutoML, for more information.