LoveJesus/biblical-topical-dataset-chirho
Viewer • Updated • 170k • 6
How to use LoveJesus/topical-passage-classifier-chirho with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("LoveJesus/topical-passage-classifier-chirho")
sentences = [
"The weather is lovely today.",
"It's so sunny outside!",
"He drove to the stadium."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]Semantic search model for finding biblical passages by topic. Fine-tuned on Nave's Topical Bible (30,000+ entries) and Treasury of Scripture Knowledge cross-references to retrieve relevant KJV verses for any theological query.
| 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 |
from sentence_transformers import SentenceTransformer
import numpy as np
model = SentenceTransformer("LoveJesus/biblical-topical-search-chirho")
query = "What does the Bible say about forgiveness?"
verses = [
"For if ye forgive men their trespasses, your heavenly Father will also forgive you. - Matthew 6:14",
"In the beginning God created the heaven and the earth. - Genesis 1:1",
"As far as the east is from the west, so far hath he removed our transgressions from us. - Psalm 103:12",
]
query_emb = model.encode([query])
verse_embs = model.encode(verses)
scores = np.dot(verse_embs, query_emb.T).flatten()
ranked = sorted(zip(scores, verses), reverse=True)
for score, verse in ranked:
print(f" {score:.3f}: {verse}")
This model is part of the Bible.Systems AI models project — open-source machine learning for biblical scholarship.
Base model
microsoft/MiniLM-L12-H384-uncased