text-embedding-preview-0409
model, also called text-embedding-0004
in Gemini APIs.Model | Dimensions | Max Tokens | Cost | MTEB Avg Score | Similarity Metric |
---|---|---|---|---|---|
text-embedding-preview-0409 / text-embedding-0004 | 768 (scales down) | 2048 | $0.025/1M tokens in Vertex, free in Gemini | 66.31 | cosine, L2 |
text-embedding-0004
model has 768 dimensions, but you can scale it down to lower dimensions.
The older model, text-embedding-0001
does not support scaling down.
taskType
is only supported
by text-embedding-0001
model, and other say that it works with 0004
as well. My experiments showed that
taskType
works with 0004
, so I have included it in the example above. I assume there are typos in the docs.