You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`infera_load_model(name VARCHAR, path_or_url VARCHAR)`|`BOOLEAN`| Loads an ONNX model from a local path or remote URL. |
6
-
|`infera_unload_model(name VARCHAR)`|`BOOLEAN`| Unloads a model from memory to free resources. |
7
-
|`infera_set_autoload_dir(path VARCHAR)`|`VARCHAR (JSON)`| Scans a directory, loads all the `.onnx` files in it (models), and returns a JSON report. |
8
-
|`infera_get_loaded_models()`|`VARCHAR (JSON)`| Returns a JSON array containing the names of models that are currently loaded and are ready to be used. |
9
-
|`infera_get_model_info(name VARCHAR)`|`VARCHAR (JSON)`| Returns a JSON object with information about a specific (loaded) model. |
10
-
|`infera_predict(name VARCHAR, features... FLOAT)`|`FLOAT`| Performs inference and returns a single float value. |
11
-
|`infert_predict_multi(name VARCHAR, features... FLOAT)`|`VARCHAR (JSON)`| Performs inference and returns all outputs as a JSON array. This is useful for models that prodcue more than one predictions per sample, like in multi-target regression. |
12
-
|`infera_predict_from_blob(name VARCHAR, data BLOB)`|`LIST[FLOAT]`| Performs inference on a raw `BLOB` of tensor data, like image data stored in the database. |
13
-
|`infera_get_version()`|`VARCHAR (JSON)`| Returns a JSON object with the information about the current version of the extension. |
14
-
15
-
-----
3
+
Table below includes the information about all SQL functions exposed by the Infera.
|`infera_load_model(name VARCHAR, path_or_url VARCHAR)`|`BOOLEAN`| Loads an ONNX model from a local file path or a remote URL and assigns it a unique name. Returns `true` on success. |
8
+
|`infera_unload_model(name VARCHAR)`|`BOOLEAN`| Unloads a model, freeing its associated resources. Returns `true` on success. |
9
+
|`infera_set_autoload_dir(path VARCHAR)`|`VARCHAR (JSON)`| Scans a directory for `.onnx` files, loads them automatically, and returns a JSON report of loaded models and any errors. |
10
+
|`infera_get_loaded_models()`|`VARCHAR (JSON)`| Returns a JSON array containing the names of all currently loaded models. |
11
+
|`infera_get_model_info(name VARCHAR)`|`VARCHAR (JSON)`| Returns a JSON object with metadata about a specific loaded model, including its name, input/output shapes, and status. |
12
+
|`infera_predict(name VARCHAR, features... FLOAT)`|`FLOAT`| Performs inference on a batch of data, returning a single float value for each input row. |
13
+
|`infera_predict_multi(name VARCHAR, features... FLOAT)`|`VARCHAR (JSON)`| Performs inference and returns all outputs as a JSON-encoded array. This is useful for models that produce multiple predictions per sample. |
14
+
|`infera_predict_from_blob(name VARCHAR, data BLOB)`|`LIST[FLOAT]`| Performs inference on raw `BLOB` data (for example, used for an image tensor), returning the result as a list of floats. |
15
+
|`infera_get_version()`|`VARCHAR (JSON)`| Returns a JSON object with version and build information for the Infera extension. |
16
+
17
+
---
16
18
17
19
### Usage Examples
18
20
21
+
This section includes some examples of how to use the Infera functions.
0 commit comments