EmbeddingModelSpec class
Specification for embedding models (model.bin + tokenizer.json)
Constructors
- EmbeddingModelSpec.new({required String name, required String modelUrl, required String tokenizerUrl, ModelReplacePolicy replacePolicy = ModelReplacePolicy.keep})
Properties
-
files
→ List<
ModelFile> -
All files that belong to this model
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValid → bool
-
Whether this model specification is valid
no setterinherited
- modelFilename → String
-
no setter
- modelUrl → String
-
Convenience getters for backward compatibility
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
- tokenizerFilename → String
-
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.
inherited