pub const DEFAULT_EMBEDDING_DIM: usize = 384;Expand description
Default embedding vector dimensionality.
Restored to 384 to match the production corpus: existing vectors were
generated against multilingual-e5-small (384 dims), so a lower default
would silently mismatch live data. With the OpenRouter REST backend the
Matryoshka (MRL, arXiv 2205.13147) truncation happens server-side, so
384 dims carry no per-float autoregressive output cost. Legacy databases
keep their recorded dimensionality via schema_meta.dim; the active dim
follows the precedence env > database > default (see embedding_dim).