You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: support output dimensions for embedding models (#490) (#522)
Add optional outputDimension field for embedding models to request
specific dimensions from providers that support Matryoshka
Representation Learning (MRL).
Supported providers:
- OpenAI text-embedding-3-* (via 'dimensions' parameter)
- Google gemini-embedding-001 (via 'config.outputDimensionality')
Changes:
- Add outputDimension field to EmbeddingModel type
- Update all provider getEmbedding methods to accept dimensions option
- Add Output Dimensions input field in Add Embedding Model modal
- Validate that returned dimension matches requested outputDimension