bookclerk_plugin_ai_embedder::plugin

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

The plugin's ai entrypoint over the model directories on disk.

Structs

EmbedderRoot

pub struct EmbedderRoot {
    /* private fields */
}

Root capability of the embedder guest.

EmbedderRoot::new

pub fn new(models_dir: Option<PathBuf>, library: Option<PathBuf>) -> Self

A plugin over explicit locations.

Arguments
  • models_dir - Directory with one directory per model.
  • library - The ONNX Runtime shared library.

EmbedderRoot::from_environment

pub fn from_environment() -> Self

The plugin as the host starts it: models under models/ in its data directory (its HOME), ONNX Runtime beside its executable.

Implements: Clone, Debug, PluginWorker

Generated from crates/bookclerk-plugins/platform/ai-embedder at main · View as Markdown