@@ -73,26 +73,38 @@ make release
73733 . Run the following SQL commands in the shell to try Infera out:
7474
7575``` sql
76- -- 1. Load the extension (optional when building from source)
77- load ' build/release/extension/infera/infera.duckdb_extension'
78- load infera;
76+ -- Normally, we need to load the extension first,
77+ -- but the `duckdb` binary that we built in the previous step
78+ -- already has Infera statically linked to it.
79+ -- So, we don't need to load the extension explicitly.
7980
80- -- 2 . Load a simple linear model from a remote URL
81+ -- 1 . Load a simple linear model from a remote URL
8182select infera_load_model(' linear_model' ,
8283 ' https://github.com/CogitatorTech/infera/raw/refs/heads/main/test/models/linear.onnx' );
8384
84- -- 3 . Run a prediction using a very simple linear model
85+ -- 2 . Run a prediction using a very simple linear model
8586-- Model: y = 2*x1 - 1*x2 + 0.5*x3 + 0.25
8687select infera_predict(' linear_model' , 1 .0 , 2 .0 , 3 .0 );
8788-- Expected output: 1.75
8889
89- -- 4 . Unload the model when we're done with it
90+ -- 3 . Unload the model when we're done with it
9091select infera_unload_model(' linear_model' );
9192
92- -- 5 . Check the Infera version
93+ -- 4 . Check the Infera version
9394select infera_get_version();
9495````
9596
97+ > [!NOTE]
98+ > After building from source, the Infera binary will be ` build/release/extension/infera/infera.duckdb_extension` .
99+ > You can load it using the ` load 'build/release/extension/infera/infera.duckdb_extension';` in DuckDB shell.
100+ > Note that the extension binary will only work with the DuckDB version that it was built against.
101+ > At the moment, Infera is not available as
102+ > a [DuckDB community extension](https:// duckdb .org / community_extensions/ list_of_extensions).
103+ > Nevertheless, you can still use Infera by building it from source yourself, or downloading pre- built binaries from
104+ > the [releases page](https:// github .com / CogitatorTech/ infera/ releases) for your platform.
105+ > Please check the [this page](https:// duckdb .org / docs/ stable/ extensions/ installing_extensions .html ) for more details on
106+ > how to use extensions in DuckDB.
107+
96108-- -
97109
98110# ## Documentation
0 commit comments