Views
No views yet
⚠️ This is NOT a trained model. It is the chance-level floor reference for the MTEB-BR Brazilian-Portuguese embedding benchmark.
0.30 on a retrieval task good or
near-random? Only the floor answers that.mteb/baseline-random-encoder from the upstream MTEB leaderboard.t → rng = numpy.random.default_rng(sha256("42|" + t)) → v = rng.standard_normal(768) → v / ‖v‖.1import hashlib
2import numpy as np
3
4DIM, SEED = 768, 42
5
6def encode(texts: list[str]) -> np.ndarray:
7 """Deterministic per-text L2-normalized random vectors (chance-level floor)."""
8 out = np.empty((len(texts), DIM), dtype=np.float32)
9 for i, t in enumerate(texts):
10 h = int(hashlib.sha256((str(SEED) + "|" + (t or "")).encode()).hexdigest(), 16) % (2**32)
11 v = np.random.default_rng(h).standard_normal(DIM).astype(np.float32)
12 out[i] = v / (np.linalg.norm(v) + 1e-9)
13 return outrun_random_baseline.py, using the same pinned-revision MTEB(por)
tasks as the benchmarked models) is included in this repo.| Task | Floor |
|---|---|
| MedPTRetrieval | 0.0083 |
| FaQuADIR | 0.0235 |
| Quati | 0.0 |
| FaqBacenRetrieval | 0.0027 |
| JurisTCU | 0.0 |
| BRTaxQAR | 0.0129 |
| Task | Floor |
|---|---|
| QuatiReranking | 0.1804 |
| JurisTCUReranking | 0.1434 |
| PortuLexRRIP | 0.1415 |
| Task | Floor |
|---|---|
| AssinSTS | 0.005 |
| Assin2STS | -0.0288 |
| Task | Floor |
|---|---|
| AssinRTE | 0.2328 |
| InferBR | 0.3556 |
| Task | Floor |
|---|---|
| HateBR | 0.5016 |
| ToxSynPT | 0.495 |
| FactckBrClassification | 0.322 |
| OlidBrMultilabelClassification | 0.2035 |
| BrighterEmotionMultilabelClassification | 0.2027 |
| Task | Floor |
|---|---|
| MedPTClustering | 0.5289 |
| WikipediaPTCategoriesClusteringP2P | 0.3248 |
| JurisTCUClusteringP2P | 0.1225 |
| SciELOClusteringP2P | 0.0859 |
| StackoverflowPtClustering | 0.3353 |
| CamaraProposicoesClustering | 0.4912 |
| Task | Floor |
|---|---|
| BrighterEmotionIntensityRegression | 0.0223 |
| EnemEssayRegression | -0.0783 |
| NarrativeEssaysBRRegression | -0.0526 |