EmbeddingBackendProvider class abstract
A pluggable embedding backend (LiteRT C API + Gecko/EmbeddingGemma, or a third-party backend). Same probe-chain shape as InferenceEngineProvider: selected by probing the embedding model spec, highest-priority first match.
Passed to FlutterGemma.initialize via embeddingBackends:.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable name for diagnostics / error messages.
no setter
- priority → int
-
Selection precedence on overlap. Core backends use 0.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canHandle(
EmbeddingModelSpec spec) → bool -
Whether this backend can serve
spec. Probed by the registry. -
createModel(
EmbeddingModelSpec spec, RuntimeConfig config) → Future< EmbeddingModel> -
Build a runtime EmbeddingModel for
spec+config. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited