当前OpenAI不同向量大模型的对比: 从上表可以看出,为了权衡生成速度和准确性,OpenAI提供的新的向量大模型text-embedding-3支持dimensions参数,可以选择生成不同长度的向量。而更长的向量效果更好,但是成本更高,速度更慢。从价格上来说,text-embedding-3-small和前一代的向量大模型维度一致,效果略强,不过价格下降5倍!
And ask for 1536 dimensions for this modelsView details spolu merged commit 823826a into main May 24, 2024 3 checks passed spolu deleted the spolu-core_embedders_openai branch May 24, 2024 15:52 flvndvd pushed a commit that referenced this pull request May 26, 2024 Add support for text...
body["dimensions"] = json!(1536); } _ => (), } } None => (), }// let mut req_builder = Request::builder() // .method(Method::POST) // .uri(uri) // .header("Content-Type", "application/json") // // This one is for `openai`. ...