Skip to content

Conversation

@nicolaskrier
Copy link
Contributor

@nicolaskrier nicolaskrier commented Nov 5, 2025

  • Provide a way to override known embedding dimensions
  • Make known embedding dimensions maps immutable

@nicolaskrier nicolaskrier force-pushed the make-known-embedding-dimensions-maps-immutable branch from 86eb8ad to 87917c7 Compare November 5, 2025 19:25
- Provide a way to override known embedding dimensions
- Make known embedding dimensions maps immutable

Signed-off-by: Nicolas Krier <7557886+nicolaskrier@users.noreply.github.com>
@nicolaskrier nicolaskrier force-pushed the make-known-embedding-dimensions-maps-immutable branch from 87917c7 to dd34dda Compare November 5, 2025 21:21
@nicolaskrier nicolaskrier changed the title Make known embedding dimensions maps immutable Refactor overridden EmbeddingModel dimensions method Nov 5, 2025
* @param modelName Embedding generative name to retrieve the dimensions for.
* @return Returns the embedding dimensions for the model name.
*/
public static int dimensions(AbstractEmbeddingModel embeddingModel, String modelName) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure it is the best solution to avoid source code duplication in embedding models overriding dimensions method.

@nicolaskrier
Copy link
Contributor Author

Blocked by this PR (#4810).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant