https://github.com/spring-projects/spring-ai/blob/6512ec42577b94737c8e8b10bd3f5d9b55aeeb55/spring-ai-core/src/main/java/org/springframework/ai/embedding/AbstractEmbeddingModel.java#L88

There should be something like model.getName(), or KNOWN_EMBEDDING_DIMENSIONS will never be used.

Comment From: sobychacko

@Dieken Did you run into any issues with that? I think this is fine, because this is used for computing the embedding dimensions initially. If someone calls this method, then it is imperative that the KNOWN_EMBEDDING_DIMENSIONS will not be used, but rather the dimensions are empirically calculated. If there is a need to find out the dimensions more deterministically, then this public API method can be used instead. https://github.com/spring-projects/spring-ai/blob/6512ec42577b94737c8e8b10bd3f5d9b55aeeb55/spring-ai-core/src/main/java/org/springframework/ai/embedding/AbstractEmbeddingModel.java#L57.

Thanks!