LlamaEmbeddingsOperation class final
A text or content embeddings request.
- Inheritance
-
- Object
- LlamaOperation
- LlamaEmbeddingsOperation
Constructors
-
LlamaEmbeddingsOperation({required String? model, required LlamaRuntime? runtime, required List<
String> inputs, List<List< ? inputPartKinds, required bool normalize})LlamaEmbeddingModality> > - Creates a LlamaEmbeddingsOperation.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputCount → int
-
Number of requested vectors, including for redacted content inputs.
no setter
-
inputPartKinds
→ List<
List< LlamaEmbeddingModality> > -
Ordered part kinds per input, without text or media sources/payloads.
final
-
inputs
→ List<
String> -
Legacy text inputs as an unmodifiable copy; empty for content calls.
final
- model → String?
-
The loaded model's
general.namemetadata, or else the last segment of the path or URL it was loaded from. For a LlamaModelLoadOperation, that last segment of the model being loaded.finalinherited - normalize → bool
-
Whether the vectors are L2-normalized.
final
- runtime → LlamaRuntime?
-
The runtime of the loaded model, or null when the backend does not
report it or no model is loaded yet.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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