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 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. |
|1 |`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
+
|2 |`infera_unload_model(name VARCHAR)`|`BOOLEAN`| Unloads a model, freeing its associated resources. Returns `true` on success. |
9
+
|3 |`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
+
|4 |`infera_get_loaded_models()`|`VARCHAR (JSON)`| Returns a JSON array containing the names of all currently loaded models. |
11
+
|5 |`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
+
|6 |`infera_predict(name VARCHAR, features... FLOAT)`|`FLOAT`| Performs inference on a batch of data, returning a single float value for each input row. |
13
+
|7 |`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
+
|8 |`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
+
|9 |`infera_get_version()`|`VARCHAR (JSON)`| Returns a JSON object with version and build information for the Infera extension. |
16
16
17
17
---
18
18
@@ -24,42 +24,42 @@ This section includes some examples of how to use the Infera functions.
|`e1_core_functionality.sql`| Core lifecycle | Version, load, inspect model info, single prediction, unload, autoload directory reuse |
26
-
|`e2_advanced_features.sql`| Remote and BLOB inference | Remote model load (GitHub), large vision model, constructing a zero‑filled BLOB for inference |
27
-
|`e3_integration_and_errors.sql`| Integration patterns and errors | Deterministic batch table, aggregation, null feature detection, missing model handling |
0 commit comments