LlamaEmbeddingText class final
An explicitly prepared, task, or document text input.
Use LlamaEmbeddingText.prepared for already-prefixed text; no prefix detection or removal is performed. These helpers accept no media parts.
Constructors
- LlamaEmbeddingText.document(String text, {String? title})
-
Unprefixed document content, with an optional real title or code filename.
const
- LlamaEmbeddingText.prepared(String text)
-
Verbatim text, including any instructions already supplied by the caller.
const
- LlamaEmbeddingText.query(String text, {LlamaEmbeddingTask task = LlamaEmbeddingTask.search})
-
Unprefixed query or symmetric-task content.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- task → LlamaEmbeddingTask?
-
The query or symmetric task; null for documents and prepared text.
final
- text → String
-
The original caller text.
final
- title → String?
-
Optional document title.
final
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