Qwen Text Embedding v3 是阿里巴巴通義實驗室的多語言嵌入模型,可產生 1024 維向量,在 100 多種語言的 MTEB 上表現強勁。它支援高達 8K 的輸入 token,非常適合長文件檢索和跨語言 RAG,尤其擅長處理西方模型在亞洲語言上表現不佳的情況。
可直接取代 OpenAI。只需變更 base_url 和 model。
# Python - pip install openai from openai import OpenAI client = OpenAI( base_url="https://meshtok.com/v1", api_key="sk-your-MeshTok-key", ) resp = client.chat.completions.create( model="ali/text-embedding-v3", messages=[{"role":"user","content":"Hello!"}], ) print(resp.choices[0].message.content)
# cURL curl https://meshtok.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-MeshTok-key" \ -H "Content-Type: application/json" \ -d '{"model":"ali/text-embedding-v3","messages":[{"role":"user","content":"Hello!"}]}'
其他您可能考慮的模型。
Alibaba’s top-tier multimodal flagship.
Strong value mid-tier Qwen.
Code-specialized Qwen for developers.
Multimodal vision model.