Downloads · 30 days
160
12% of all-time downloads
manveertamber/cadet-embed-base-v1
cadet-embed-base-v1 is a sentence similarity model from manveertamber. Use it when you need a score for how close two texts are. The card lists the license as apache-2.0.
cadet-embed-base-v1 is a BERT-base embedding model fine-tuned from intfloat/e5-base-unsupervised with
Downloads · 30 days
160
12% of all-time downloads
All-time downloads
1.4K
Public
Parameters
109M
438 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
cadet-embed-base-v1 is a BERT-base embedding model fine-tuned from intfloat/e5-base-unsupervised with
RankT5-3B and BAAI/bge-reranker-v2.5-gemma2-lightweight)The result: highly effective BERT-base retrieval.
We provide our training code and scripts to generate synthetic queries at https://github.com/manveertamber/cadet-dense-retrieval.
from sentence_transformers import SentenceTransformer
import numpy as np
model = SentenceTransformer("manveertamber/cadet-embed-base-v1")
query = "query: capital of France"
passages = [
"passage: Paris is the capital and largest city of France.",
"passage: Berlin is known for its vibrant art scene.",
"passage: The Eiffel Tower is located in Paris, France."
]
# Encode
q_emb = model.encode(query, normalize_embeddings=True)
p_embs = model.encode(passages, normalize_embeddings=True) # shape (n_passages, dim)
scores = np.dot(p_embs, q_emb) # shape (n_passages,)
# Rank passages by score
for passage, score in sorted(zip(passages, scores), key=lambda x: x[1], reverse=True):
print(f"{score:.3f}\t{passage}")
If you use this model, please cite:
@article{tamber2025conventionalcontrastivelearningfalls,
title={Conventional Contrastive Learning Often Falls Short: Improving Dense Retrieval with Cross-Encoder Listwise Distillation and Synthetic Data},
author={Manveer Singh Tamber and Suleman Kazi and Vivek Sourabh and Jimmy Lin},
journal={arXiv:2505.19274},
year={2025}
}