DVAIEmbedder class
An embedder over any DVAIAdapter's embed.
The model is named here rather than read from the adapter, because the adapter's default model is exactly the kind of default this section refuses: an index built without deciding which model built it.
- Implemented types
Constructors
- DVAIEmbedder(DVAIAdapter adapter, {required String id, required int dimensions})
Properties
- adapter → DVAIAdapter
-
final
- dimensions → int
-
The length of every vector embed returns.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The model, as the provider names it:
openai/text-embedding-3-small.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
embed(
String text) → Future< List< double> > -
override
-
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