Views
No views yet
| Metric | v1 (L6-v2) | v2 (L12-v2) | Change |
|---|---|---|---|
| NDCG@10 | 0.1676 | 0.1831 | +9.3% |
| Accuracy@10 | 0.2882 | 0.3188 | +10.6% |
| MRR@10 | 0.1305 | 0.1415 | +8.4% |
| MAP@10 | 0.1305 | 0.1415 | +8.4% |
| Epoch | NDCG@10 | Accuracy@10 |
|---|---|---|
| 1 | 0.1514 | 0.257 |
| 2 | 0.1654 | 0.286 |
| 3 | 0.1749 | 0.302 |
| 4 | 0.1795 | 0.313 |
| 5 | 0.1831 | 0.319 |
1from sentence_transformers import SentenceTransformer
2import numpy as np
3
4model = SentenceTransformer("LoveJesus/biblical-topical-search-chirho")
5
6query = "What does the Bible say about forgiveness?"
7verses = [
8 "For if ye forgive men their trespasses, your heavenly Father will also forgive you. - Matthew 6:14",
9 "In the beginning God created the heaven and the earth. - Genesis 1:1",
10 "As far as the east is from the west, so far hath he removed our transgressions from us. - Psalm 103:12",
11]
12
13query_emb = model.encode([query])
14verse_embs = model.encode(verses)
15
16scores = np.dot(verse_embs, query_emb.T).flatten()
17ranked = sorted(zip(scores, verses), reverse=True)
18for score, verse in ranked:
19 print(f" {score:.3f}: {verse}")