EmbeddingModelSpec class

Specification for embedding models (model.bin + tokenizer.json)

Inheritance

Constructors

EmbeddingModelSpec({required String name, required ModelSource modelSource, required ModelSource tokenizerSource, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
EmbeddingModelSpec.fromLegacyUrl({required String name, required String modelUrl, required String tokenizerUrl, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
Legacy compatibility constructor for String URLs
factory

Properties

files → List<ModelFile>
All files that belong to this model
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
isValid → bool
Whether this model specification is valid
no setterinherited
modelSource → ModelSource
Modern type-safe getters
no setter
modelUrl → String
Legacy getters for backward compatibility (WEB PLATFORM ONLY)
no setter
name → String
Human-readable name for this model
no setteroverride
replacePolicy → ModelReplacePolicy
Policy for replacing old models
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenizerSource → ModelSource
no setter
tokenizerUrl → String
no setter
type → ModelManagementType
Type of this model
no setteroverride

Methods

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.
override