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
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
@@ -174,6 +189,24 @@ function AddEmbeddingModelModalComponent({
174
189
/>
175
190
</ObsidianSetting>
176
191
192
+
<ObsidianSetting
193
+
name="Output Dimensions"
194
+
desc="Optional. Request a specific output dimension from models that support Matryoshka Representation Learning (MRL), such as OpenAI's text-embedding-3-* or Google's gemini-embedding-001. Leave empty to use the model's default dimension."
0 commit comments