Live data from Hacker News

Bible Semantic Search

share.streamlit.io

51–60 of 93 posts

Re: Bible Semantic Search

#51
A query "what is the purpose of life?" returns decent results with:

- Precision@2 = 50%

- Precision@5 = 20%

- Precision@10 = 33%

Relevant results:

2) Philippians 1:21 - For to me to live is Christ, and to die is gain.

6) Ecclesiastes 3:13 - And also that every man should eat and drink, and enjoy the good of all his labour, it is the gift of God.

10) Ecclesiastes 2:17 - Therefore I hated life; because the work that is wrought under the sun is grievous unto me: for all is vanity and vexation of spirit.

Re: Bible Semantic Search

#52

While serving a mission for my church, a fellow member bought me a copy of “Strongs Exhaustive Concordance of the Bible”. I found it really fascinating to flip through correlated terms and be able to draw conceptual lines between them. It was the first time I’d ever come across something like that. It strikes me as something that is relatively rare simply because what the Bible is, in terms of popularity and commonal…

I've got a copy and still use it sometimes -- being able to immediately see nearby words (like "glad", "gladly", "gladness") is quite useful, which you'd miss just searching for "glad". Being able to see all uses on a hardcopy in a fixed position that doesn't scroll is helpful too, I find it harder to rationalise big lists when they're scrollable.

(I also use it to explain type checking to friends, given the number of times I've looked up a Hebrew word in the Greek dictionary, or vice versa).

Re: Bible Semantic Search

#55
post #53

Is the source available? Curious if the streamlit app makes requests to an external service or if it’s self-contained.

It makes a request to the Pinecone API to search through vector embeddings. [1][2]

[1] https://github.com/chrislee973/bible-semantic-search/blob/ab...

[2] https://www.pinecone.io/

Re: Bible Semantic Search

#56

SBERT isn't trained on this type of archaic English and you can see it failing. It needs to be fine tuned or you should use a modern Bible translation. A clear example is the query: "homosexuality" This returns: > James 2:3 - And ye have respect to him that weareth the gay clothing, and say unto him, Sit thou here in a good place; and say to the poor, Stand thou there, or sit here under my footstool It's clearly seei…

Hey, creator of the Bible Semantic Search app here. I 100% agree with you. I hacked together this prototype for the purposes of learning the Pinecone API rather than fine-tuning a language model, but I'm still pleasantly surprised by the quality of the search results despite all the shortcomings you mentioned. The results aren't great, but they're decent. I'm surprised how well SBERT works out of the box considering…

No post body was provided.

Re: Bible Semantic Search

#57
post #46

Why with a 400 year-old translation though?

I figured it was the quintessential version of the Bible ¯\_(ツ)_/¯. I'm not religious so cut me some slack haha. Looking back, I should've used a version using modern English.

...another reason is that KJV is not currently under copyright, unlike (as far as I know) all modern English translations.

Re: Bible Semantic Search

#58

Earlier quoted context omitted.

Hey, creator of the Bible Semantic Search app here. I 100% agree with you. I hacked together this prototype for the purposes of learning the Pinecone API rather than fine-tuning a language model, but I'm still pleasantly surprised by the quality of the search results despite all the shortcomings you mentioned. The results aren't great, but they're decent. I'm surprised how well SBERT works out of the box considering…

Go with the ESV or NASB as these are word for word translations similar to the KJV. There's also the NKJV that uses modern english. Can use modern translations on the backend and still display the KJV verse.

Most of these newer translations have licensing restrictions that prevent you from simply using them.

Re: Bible Semantic Search

#59

While serving a mission for my church, a fellow member bought me a copy of “Strongs Exhaustive Concordance of the Bible”. I found it really fascinating to flip through correlated terms and be able to draw conceptual lines between them. It was the first time I’d ever come across something like that. It strikes me as something that is relatively rare simply because what the Bible is, in terms of popularity and commonal…

I'd like to think it's called "Strong's Concordance" because that's what you'd be if you carried it around all the time.

Re: Bible Semantic Search

#60
post #53

Is the source available? Curious if the streamlit app makes requests to an external service or if it’s self-contained.

It is. Click the hamburger menu to the top-right, followed by 'View app source': https://github.com/chrislee973/bible-semantic-search/blob/ma...

Thanks!
Post reply on HN