liveBook · Manning

Machine learning component

As explained in Server-Side WebAssembly

A machine learning component is a WebAssembly component that produces story text through a machine-learning-oriented interface.

A machine learning component is a WebAssembly component that exposes story generation, using WASI to read stories and returning one selected at random. section 4.6

SmartCMS story generation

A composed SmartCMS component calls storygen(), writes the returned children’s one-liner to guest-hello, and retrieves it through the key-value store. section 4.6

How Server-Side WebAssembly covers it

How deep it goes
Builds the component, composes it, and configures host filesystem access, while deferring replacement with a real model.
Examples
Uses stories.txt, random one-liner selection, SmartCMS storage, WIT definitions, and wac plug composition.
What it assumes
Assumes an existing SmartCMS project and builds on prior component and host work.
What you can do after
Build it from scratch as a Rust WebAssembly component and run it through a Wasmtime SmartCMS host.
How it connects
Connects WebAssembly components with WASI, composability, key-value stores, and host runtimes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Server-Side WebAssembly. The section links point to the parts of the book it draws on.