EmbeddingPassInfo class final

What a loaded pass can do. Core checks the model's declared media against it at load, and every request against it before the request is sent (D4).

Sendable: sets of enums and of EncodedMediaFormat constants.

Constructors

EmbeddingPassInfo({required int dimension, Set<EmbeddingModality> modalities = const {EmbeddingModality.text}, int? maxInputTokens, Set<EncodedMediaFormat> imageFormats = const {}, Set<EncodedMediaFormat> audioFormats = const {}, bool combinedInputs = false})
const

Properties

audioFormats → Set<EncodedMediaFormat>
Audio containers the engine decodes. Non-empty exactly when EmbeddingModality.audio is in modalities.
final
combinedInputs → bool
Whether one input may carry several parts: several modalities (text with an image, …) or several images.
final
dimension → int
Length of every vector EmbeddingPass.embed returns. Must be > 0.
final
hashCode → int
The hash code for this object.
no setterinherited
imageFormats → Set<EncodedMediaFormat>
Image containers the engine decodes. Non-empty exactly when EmbeddingModality.image is in modalities.
final
maxInputTokens → int?
Longest input in tokens, prefix and terminators included, read from the model file. Null when the file declares no limit.
final
modalities → Set<EmbeddingModality>
What THIS engine version serves for THIS model file.
final
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited