Biblos is a tool for semantic search and multi-layered analysis of biblical texts, employing an enhanced RAG (Retrieval-Augmented Generation) architecture.
Purpose: Biblos is designed to help users find relevant passages in the Bible through semantic search and to provide multi-layered analysis, including original language study (Greek New Testament) and historical interpretation (patristic commentary).
Key capabilities:
- Semantic search across the entire biblical text, using the Chroma vector database and instructor-large embeddings.
- Summarization of search results using Anthropic's Claude large language model.
- Provision of full chapter views for broader context.
- Integration of the Greek New Testament text and the Dodson Greek Lexicon to provide original language insights.
- Integration of patristic commentary to provide historical theological perspectives.
- A web user interface built with Streamlit for easy exploration.
- Modular design that allows replacement of components such as the database, embedding model, and LLM.
How to use:
- Run Biblos locally:
- Install dependencies.
- Download the embedding model and preprocess the biblical text into the Chroma database (optional—if not recreated, you can use the default embedding database included with the application). Note: this process may take a long time (processing the biblical text takes about 18 minutes on an M1 Macbook Pro, and commentary requires additional time).
- Obtain an Anthropic API key and set it as the environment variable ANTHROPIC_API_KEY.
- Start the Streamlit application.
- Enter a search query in the text input box.
- Adjust search options: select the Old Testament and/or New Testament; toggle the full chapter view; enable patristic commentary; enable Greek New Testament and lexicon display; adjust the number of Bible results.
- View the search results and expand sections for more details.
- For New Testament results, view the Greek text and word definitions.
- If enabled, explore the patristic commentary.
- Use the "Summarize" button to generate a summary of the results.
Applicable scenarios:
- Biblical study: find relevant passages through semantic search and conduct multi-layered analysis.
- Original language learning: view the Greek New Testament text and word definitions.
- Historical theology research: consult patristic commentary to understand historical interpretation.
Limitations:
- An Anthropic API key is required to use the summarization feature.
- Preprocessing the biblical text and commentary may take a long time.
- The project useslicensed under the Creative Commons Attribution-NonCommercial 4.0 International License, for non-commercial use only.
- Other specific limitations (such as performance, data scope, etc.) are not yet provided.