Embedding Model Comparison: OpenAI vs Cohere vs Open Source

๐Ÿ”ง AI Tools 2026-07-19 1 min read

Embedding Model Comparison: OpenAI vs Cohere vs Open Source

💡 What You Will Learn

Embedding Model Comparison: OpenAI vs Cohere vs Open Source

from sentence_transformers import SentenceTransformer
import numpy as np

query = ""
docs = ["30", "iPhone15", "200"]

model = SentenceTransformer("BAAI/bge-large-zh-v1.5")
query_vec = model.encode(query)
doc_vecs = model.encode(docs)

scores = np.dot(doc_vecs, query_vec) / (
    np.linalg.norm(doc_vecs, axis=1) * np.linalg.norm(query_vec)
)
for doc, score in zip(docs, scores):
    print(f"{score:.3f} -> {doc}")
# 0.892 -> ...
# 0.451 -> 
# 0.523 -> 

|:----|:---:|:----:|:-------:| | text-embedding-3-small | 1536 || 62.1 | | text-embedding-3-large | 3072 || 64.5 | | BAAI/bge-large-zh-v1.5 | 1024 || 65.8 | | shibing624/text2vec | 768 || 63.2 | | Cohere embed-multilingual-v3 | 1024 || 63.9 |

Recommendations

Related Articles
2026-08-18
Best AI Customer Support Chatbot in Frankfurt 2026: 7 Tools for Fintech and Mittelstand
2026-07-24
AI for Small Business 2026 15 Practical Ways
2026-08-15
Best AI Video Editor in Barcelona 2026: 7 Tools for Creators and Agencies
2026-08-25
Best AI Review Reply Generator in New Orleans 2026: 6 Tools for Hospitality
2026-07-13
Local LLM Hardware Guide 2026: What Specs You Really Need
2026-08-16
Best AI Resume Builder in Dublin 2026: 6 Tools for the Tech Hub of Europe

Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only โ€” no paid placements.

๐Ÿ’ฌ Comments (0)

No comments yet. Be the first!

Login to comment