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})
id must 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). dimension must be greater than 0. Throws ArgumentError otherwise.
factory

Properties

dimension → int
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
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.
override