ML Engines in Mongo
To create a model, you need an underlying ML engine, such as Lightwood or OpenAI. MindsDB uses the Lightwood engine by default if none other is provided. You can check the available ML engines in the ML Engines section.
The db.ml_engines.insertOne
Method
Description
This method creates an ML engine based on one of the available ML handlers.
Syntax
Here is the syntax:
On execution, we get:
Example
Let’s create an OpenAI engine that uses the OpenAI handler.
On execution, we get:
The db.ml_engines.find
Method
Description
This method lists all the available ML engines.
Syntax
Here is the syntax:
On execution, we get:
The db.ml_engines.deleteOne
Method
Description
This method deletes an ML engine.
Syntax
Here is the syntax:
On execution, we get:
Example
Let’s delete an OpenAI engine created earlier.
On execution, we get:
Check out how to build an ML handler.
To learn more about ML engines, visit the ML Engines section.
Was this page helpful?