Skip to content

AiSdkEmbedderOptions

model: EmbeddingModel;

Any Vercel AI SDK embedding model.


optional providerOptions?: SharedV3ProviderOptions;

Provider-specific options passed through to the AI SDK embed() / embedMany() calls. Use this to set task types, dimensionality overrides, or any other provider-specific parameter.

Example (Gemini task type for query embedding):

{ google: { taskType: 'RETRIEVAL_QUERY' } }