Versioned identity for a rebuildable routing cache or index.
Profiles describe how a Routing projection may be indexed. They contain no embeddings or provider clients; derived rows remain disposable cache data.
Summary
Functions
Returns the deterministic built-in exact-routing profile.
Returns the canonical profile digest used in cache keys.
Restores an index profile from portable data.
Builds and validates an index profile.
Builds an index profile or raises with its stable validation reason.
Returns the current index-profile schema version.
Returns the portable profile representation.
Types
@type t() :: %Spectre.Router.IndexProfile{ dimensions: pos_integer() | nil, id: String.t(), max_entries: pos_integer(), metadata: map(), metric: :none | :cosine | :dot | :euclidean, model_profile_ref: String.t() | nil, schema_version: pos_integer(), strategy: :exact | :lexical | :embedding, version: pos_integer() }
Functions
@spec default() :: t()
Returns the deterministic built-in exact-routing profile.
Returns the canonical profile digest used in cache keys.
Restores an index profile from portable data.
Builds and validates an index profile.
Builds an index profile or raises with its stable validation reason.
@spec schema_version() :: pos_integer()
Returns the current index-profile schema version.
Returns the portable profile representation.