Skip to main content
The SDK automatically detects the provider based on the model name. Below is the complete list of supported embedding models.
Anthropic does not offer native embedding models. Use OpenAI, Google, or Amazon Bedrock for embeddings.

OpenAI

Dimension Override

OpenAI’s text-embedding-3-small and text-embedding-3-large, and Google’s text-embedding-004 support the dimensions parameter to reduce the output size:

Google

Amazon Bedrock

Amazon Bedrock models require AWS credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION) to be set in your environment.

Voyage AI

Voyage AI requires a VOYAGE_API_KEY environment variable. Voyage is an embedding-only provider and cannot be used with run_local().

Using Custom Models

For embedding models not in the built-in list (fine-tuned or new releases), specify the provider explicitly:
When using custom models, always specify the provider parameter to ensure the correct SDK is used.