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.
db.ml_engines.insertOne
MethodThis method creates an ML engine based on one of the available ML handlers.
Here is the syntax:
On execution, we get:
Let’s create an OpenAI engine that uses the OpenAI handler.
On execution, we get:
db.ml_engines.find
MethodThis method lists all the available ML engines.
Here is the syntax:
On execution, we get:
db.ml_engines.deleteOne
MethodThis method deletes an ML engine.
Here is the syntax:
On execution, we get:
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.