Bible as RAG Database

(crosscanon.com)

46 points | by jacksonastone 1 hour ago

9 comments

  • jacksonastone 1 hour ago
    Made this in a free evening. Index an permissive license translation of the Bible (WEB) into a RAG database to allow returning passages of similar semantic meaning. Lots of fun. For example, "more money more problems" returns Ecclesiastes 5:9-13 which, I'll just say, is spot on..

    "Moreover the profit of the earth is for all. The king profits from the field. He who loves silver shall not be satisfied with silver, nor he who loves abundance, with increase. This also is vanity. When goods increase, those who eat them are increased; and what advantage is there to its owner, except to feast on them with his eyes? The sleep of a laboring man is sweet, whether he eats little or much; but the abundance of the rich will not allow him to sleep. There is a grievous evil which I have seen under the sun: wealth kept by its owner to his harm."

    Anyway - thought it was fun enough to share. It's slow and I vibe coded it so I haven't sorted out how to make it not take 15 seconds to vector search against the full 4GB index.

    • mcswell 1 hour ago
      Slow, but interesting. I used the query "government" and got back passages in Romans 13 (as I expected), but also passages in Daniel and Ezra describing decrees by government officials, which made sense.
    • jnamaya 1 hour ago
      The site is not loading for me! Interesting project
      • mcswell 1 hour ago
        You have to wait awhile. It came up for me after 30 seconds or so.
    • anamnesis 58 minutes ago
      [dead]
  • dredmorbius 12 minutes ago
    RAG, for those unfamiliar, retrievel-augmented generation:

    <https://en.wikipedia.org/wiki/Retrieval-augmented_generation>

  • gaiagraphia 46 minutes ago
    First result for "Jesus":

    >Jacob kissed Rachel, and lifted up his voice, and wept. Jacob told Rachel that he was her father’s relative, and that he was Rebekah’s son. She ran and told her father. When Laban heard the news of Jacob, his sister’s son, he ran to meet Jacob, and embraced him, and kissed him, and brought him to his house. Jacob told Laban all these things. Laban said to him, “Surely you are my bone and my flesh.” Jacob stayed with him for a month. Laban said to Jacob, “Because you are my relative, should you therefore serve me for nothing? Tell me, what will your wages be?”

    • jact 6 minutes ago
      Hypothesis:

      This passage lists a lot of names repeatedly, and Jacob is in the genealogy of Jesus. Genealogies also list a lot of names. So perhaps somehow it’s jumping from Jesus to Jacob?

  • andrethegiant 23 minutes ago
    I vibed up something similar, comparing the verses of the big 3 religions. Cloudflare vectorize for embeddings db. https://crazy.church
  • regus 57 minutes ago
    Did you include the Deuterocanonical books?
    • zoogeny 1 minute ago
      It would be nice if there was a listing of exactly what was included somewhere.
  • sputknick 1 hour ago
    Would love to use if you can get it back up! Sounds like an awesome idea for a way to converse with the Bible
    • jnamaya 53 minutes ago
      I built a Bible scholar agent using RAG grounded in the Berean Standard Bible. Is the same concept but an LLM discern the text for you.

      Here is the link to the demo: https://safi.selfalignmentframework.com/

      Choose the Bible Scholar agent and use deepseek or Gemini 3.5 for the LLM.

    • sputknick 1 hour ago
      Nevermind, it eventually loaded
  • NDlurker 18 minutes ago
    This is really cool. Thank you for sharing.
  • bloaf 44 minutes ago
    My search returned what might as well have been a random assortment of bible verses. It made me wonder what Terry Davis would have thought of modern AI. Would it be the natural evolution of his shortcut for random bible verses that he built into TempleOS, or would it be the opposite and a voice of evil?
  • LarsDu88 34 minutes ago
    Pretty effective. You can even type in "child murder" and "genocide" and get relevant passages
    • LarsDu88 32 minutes ago
      Fun exercise. Type in pokemon or japanese. You can really see the nearest neighbor text in embedding space. Pokemon gives passafes referencing animals and japanese passages referencing foreigners