google-gemini / generative-ai-js

The official Node.js / Typescript library for the Google Gemini API
https://ai.google.dev/
Apache License 2.0
502 stars 96 forks source link

support specifying output dimensionality for embedding text content #154

Open wildsylvan opened 1 month ago

wildsylvan commented 1 month ago

Description of the feature request:

Text Embedding offers elastic embedding sizes under 768

The python api already supports it

What problem are you trying to solve with this feature?

No response

Any other information you'd like to share?

No response