EmbeddingProfile class final
Stable identity and vector dimension for one embedding space.
A persistent vector-store location must contain vectors from exactly one
profile. RagIndex pins the profile at open and the vector-store provider
persists it beside the vectors (as part of a VectorStoreBinding), so a
reopen cannot silently mix embedding spaces.
Constructors
- EmbeddingProfile({required String id, required int dimension})
-
idmust not be empty and must not contain control characters (U+0000–U+001F; U+001F is reserved for the storage qualifier of image and audio bindings).dimensionmust be greater than 0. Throws ArgumentError otherwise.factory
Properties
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.
override