ModelDimensionRegistry

org.llm4s.llmconnect.config.ModelDimensionRegistry

Lookup service for embedding model vector dimensions.

Provides a single, authoritative mapping from (provider, model) pairs to the dimensionality of the vectors they produce. All configuration and encoding code should resolve dimensions through this registry to avoid duplicated or inconsistent dimension constants.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def getDimension(provider: String, model: String): Result[Int]