Skip to main content
Embedding & reranking

Embedding & reranking models

Choose a model for semantic search, RAG retrieval, cross-modal matching, and reranking.

Model selection

Choose a model based on your input data type and use case.
  • Text or code — Use text-embedding-v4. Best general-purpose text embedding model, supporting task instructions (instruct), sparse vectors, and other advanced features.
  • Multimodal content — Use tongyi-embedding-vision-plus for cross-modal retrieval (text-to-image, image-to-image, text-to-video). For cost-sensitive scenarios, use tongyi-embedding-vision-flash.
  • Large-scale data — Use qwen3.7-text-embedding or text-embedding-v4 with Batch API to significantly reduce costs.

How many dimensions?

Large-scale search where storage matters → 256 or 512. General use → 1024 (default, good balance). Maximum accuracy on benchmarks → 1536 or 2048.

Text-only data?

Use text-embedding-v4 instead — faster, cheaper, more dimension options. Multimodal embedding is for cross-modal retrieval (text-to-image, text-to-video).

Accuracy vs speed

Best accuracy → tongyi-embedding-vision-plus (dimensions up to 1152). Budget or latency-sensitive → tongyi-embedding-vision-flash (up to 768).

Reranking

Improve RAG precision → add qwen3-rerank after your embedding search. Re-scores top-N results with cross-attention for better ranking quality. Limits: 500 documents per request, 4,000 tokens per item, 30,000 tokens per request.

Migrate from closed-source models

Replacing OpenAI, Cohere, or Voyage embeddings? Use these QwenCloud equivalents.
TaskClosed-source examplesQwenCloud recommendation
Text embeddingOpenAI text-embedding-3-large, Voyage-3-large, Cohere embed-v4text-embedding-v4
Multimodal embeddingCohere embed-v4, Voyage multimodaltongyi-embedding-vision-plus
RerankingCohere Rerank 3.5, Voyage rerank-2.5qwen3-rerank

All models

ModelUse this when...DimensionsMax tokens
text-embedding-v4Text search, RAG, clustering64, 128, 256, 512, 768, 1024 (default), 1536, 20488,192
text-embedding-v3Existing v3 index migration512, 768, 1024 (default)8,192
tongyi-embedding-vision-plusCross-modal search, best accuracy1152, 1024, 512, 256, 128, 641,024
tongyi-embedding-vision-flashCross-modal search, budget768, 512, 256, 128, 641,024
qwen3-rerankRe-rank search results4,000/item

Learn more

Embedding & reranking models - QwenCloud