Ken Powers
commited on
Commit
·
617e035
1
Parent(s):
2b5c443
Fix inf-retriever
Browse files- README.md +19 -19
- main.py +5 -0
- results/huggingface/infly-inf-retriever-v1.csv +0 -0
README.md
CHANGED
|
@@ -295,6 +295,25 @@ For high-level information about these models, see the [MTEB Leaderboard](https:
|
|
| 295 |
|
| 296 |
*... and 522 more queries*
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
### huggingface/Qwen-Qwen3-Embedding-8B (BSB)
|
| 299 |
|
| 300 |
**Accuracy: 82.8%** (1322/1596 points across 532 queries)
|
|
@@ -371,25 +390,6 @@ For high-level information about these models, see the [MTEB Leaderboard](https:
|
|
| 371 |
|
| 372 |
*... and 522 more queries*
|
| 373 |
|
| 374 |
-
### huggingface/infly-inf-retriever-v1 (BSB)
|
| 375 |
-
|
| 376 |
-
**Accuracy: 76.7%** (1224/1596 points across 532 queries)
|
| 377 |
-
|
| 378 |
-
| Query | Expected | Top Result | Score | ✓ |
|
| 379 |
-
|-------|----------|------------|-------|---|
|
| 380 |
-
| isn't there a verse about god is love? | ['1 John 4:8', '1 John 4:16'] | 1 John 4:8 | 0.8655 | ✅ |
|
| 381 |
-
| god is love | ['1 John 4:8', '1 John 4:16'] | 1 John 4:8 | 0.9140 | ✅ |
|
| 382 |
-
| verse about they meant bad but god meant good (rou... | ['Genesis 50:20'] | Genesis 50:20 | 0.8936 | ✅ |
|
| 383 |
-
| they meant bad but god meant good | ['Genesis 50:20'] | Genesis 50:20 | 0.9071 | ✅ |
|
| 384 |
-
| isn't there a verse about god loves the world? | ['John 3:16'] | Romans 3:6 | 0.8693 | ❌ |
|
| 385 |
-
| god loves the world | ['John 3:16'] | 1 John 2:15 | 0.8919 | ⚠️ |
|
| 386 |
-
| isn't there a verse about god loved the whole worl... | ['John 3:16'] | John 3:16 | 0.8678 | ✅ |
|
| 387 |
-
| god loved the whole world | ['John 3:16'] | John 3:16 | 0.9053 | ✅ |
|
| 388 |
-
| isn't there a verse about in the beginning god cre... | ['Genesis 1:1'] | Genesis 1:1 | 0.8934 | ✅ |
|
| 389 |
-
| in the beginning god created | ['Genesis 1:1'] | Genesis 1:1 | 0.9496 | ✅ |
|
| 390 |
-
|
| 391 |
-
*... and 522 more queries*
|
| 392 |
-
|
| 393 |
### huggingface/Qwen-Qwen3-Embedding-0.6B (BSB)
|
| 394 |
|
| 395 |
**Accuracy: 73.9%** (1179/1596 points across 532 queries)
|
|
|
|
| 295 |
|
| 296 |
*... and 522 more queries*
|
| 297 |
|
| 298 |
+
### huggingface/infly-inf-retriever-v1 (BSB)
|
| 299 |
+
|
| 300 |
+
**Accuracy: 84.2%** (1344/1596 points across 532 queries)
|
| 301 |
+
|
| 302 |
+
| Query | Expected | Top Result | Score | ✓ |
|
| 303 |
+
|-------|----------|------------|-------|---|
|
| 304 |
+
| isn't there a verse about god is love? | ['1 John 4:8', '1 John 4:16'] | 1 John 4:8 | 0.6382 | ✅ |
|
| 305 |
+
| god is love | ['1 John 4:8', '1 John 4:16'] | 1 John 4:8 | 0.7273 | ✅ |
|
| 306 |
+
| verse about they meant bad but god meant good (rou... | ['Genesis 50:20'] | Genesis 50:20 | 0.5889 | ✅ |
|
| 307 |
+
| they meant bad but god meant good | ['Genesis 50:20'] | Genesis 50:20 | 0.6316 | ✅ |
|
| 308 |
+
| isn't there a verse about god loves the world? | ['John 3:16'] | 1 John 2:15 | 0.6489 | ❌ |
|
| 309 |
+
| god loves the world | ['John 3:16'] | John 3:16 | 0.6032 | ✅ |
|
| 310 |
+
| isn't there a verse about god loved the whole worl... | ['John 3:16'] | John 3:16 | 0.6330 | ✅ |
|
| 311 |
+
| god loved the whole world | ['John 3:16'] | John 3:16 | 0.6363 | ✅ |
|
| 312 |
+
| isn't there a verse about in the beginning god cre... | ['Genesis 1:1'] | Genesis 1:1 | 0.6488 | ✅ |
|
| 313 |
+
| in the beginning god created | ['Genesis 1:1'] | Genesis 1:1 | 0.7496 | ✅ |
|
| 314 |
+
|
| 315 |
+
*... and 522 more queries*
|
| 316 |
+
|
| 317 |
### huggingface/Qwen-Qwen3-Embedding-8B (BSB)
|
| 318 |
|
| 319 |
**Accuracy: 82.8%** (1322/1596 points across 532 queries)
|
|
|
|
| 390 |
|
| 391 |
*... and 522 more queries*
|
| 392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 393 |
### huggingface/Qwen-Qwen3-Embedding-0.6B (BSB)
|
| 394 |
|
| 395 |
**Accuracy: 73.9%** (1179/1596 points across 532 queries)
|
main.py
CHANGED
|
@@ -265,6 +265,11 @@ class HuggingFaceProvider(EmbeddingProvider):
|
|
| 265 |
"prompt_name": "query",
|
| 266 |
"instruction_template": "Instruct: Given a biblical passage, retrieve verses that are semantically related or answer the query\nQuery: {query}"
|
| 267 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 268 |
elif "e5-" in self.model_name.lower():
|
| 269 |
# E5 models use "query: " and "passage: " prefixes for retrieval tasks
|
| 270 |
return {
|
|
|
|
| 265 |
"prompt_name": "query",
|
| 266 |
"instruction_template": "Instruct: Given a biblical passage, retrieve verses that are semantically related or answer the query\nQuery: {query}"
|
| 267 |
}
|
| 268 |
+
elif "inf-retriever-v1" in self.model_name:
|
| 269 |
+
return {
|
| 270 |
+
"enabled": True,
|
| 271 |
+
"prompt_name": "query"
|
| 272 |
+
}
|
| 273 |
elif "e5-" in self.model_name.lower():
|
| 274 |
# E5 models use "query: " and "passage: " prefixes for retrieval tasks
|
| 275 |
return {
|
results/huggingface/infly-inf-retriever-v1.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|