A declarative pipeline engine for AI-assisted biblical and linguistic scholarship
pip install scripture-pipelines==0.2.1.28 Copy PIP instructions
Scripture Pipelines is a declarative pipeline system for AI-assisted biblical and linguistic scholarship. Workflows are declared in YAML pipelines that specify information flow, prompt contracts, and output structure. The engine handles execution, validation, and persistence — every intermediate result is saved to disk, every LLM step can be required to account for its sources, and the same pipeline can be rerun with a revised prompt without re-querying earlier steps. A step can call an LLM, run a Python function, or load data from a wide range of sources: open biblical datasets from GitHub (CSV/TSV, XML, JSON, USFM), Paratext projects, XML databases (BaseX/XQuery), relational databases (DuckDB), and more. The plugin system makes any data source reachable.
Biblical and linguistic scholarship now has more open data than it can use: word-level morphological annotations for the entire Hebrew Bible and Greek New Testament, syntactic treebanks, discourse feature datasets, lexicographic databases, documentary papyri and inscriptions. The bottleneck is not data — it is the human capacity to bring rigorous scholarly attention to bear on that data at scale. Scripture Pipelines is designed for that problem.
Scripture Pipelines is not neutral about who is in charge. The framework is built on a specific conviction: the person is in charge. The AI follows direction, accepts correction, and does not assert its own judgment over the person's. This is harder to achieve than it sounds — AI systems tend to drift, pursuing their own interpretation of a task even when it diverges from what was asked. The pipeline architect must constantly watch out for this. The Human at the Helm methodology is the practical framework: the person commands, the AI executes.
This also means resources should be built with the communities that need them, shaped by local knowledge — not imposed from outside. Building a pipeline requires three kinds of skill: knowledge of the data sources, understanding of the need and the users, and the ability to build and maintain the pipeline code with AI tools. One person may bring more than one of these skills. We are working toward mentoring people globally in all three roles.
Scripture Pipelines operationalizes human authority through four interlocking disciplines:
Prompt contracts — every LLM step declares exactly what data it requires, verified before any LLM calls are made. The AI cannot substitute training knowledge for a required input.
Structured outputs — every LLM step produces JSON output that follows a defined schema. Output is inspectable, comparable, and testable in ways that prose is not.
Persistent intermediate artifacts — every step's output is saved to disk. If the final result is wrong, you can trace backward step by step to find exactly where the analysis went off.
Debug request and response files — every LLM step records what the model actually received and returned. These are the primary tool for detecting freelancing: output that sounds grounded in the text but was generated from training knowledge.
Scripture Pipelines is at the heart of the Kairos Project, a NIDA Institute initiative to build a global community of scholars — spanning the Western academy and far beyond it — who want to serve Bible translation and the global church.
Part of what that means is producing resources with the communities that need them, shaped by local knowledge and goals — not resources produced by Western scholars and sent outward. Most biblical texts were written by and for oral storytelling cultures. Today's oral storytelling communities do not need PhDs from Western academia to read them well. What they need is orientation to settings and cultures that are foreign to any world we live in now — and that orientation rarely looks like a journal article.
The Kairos Project takes a more inclusive approach: it trusts that readers in community can encounter the text directly and make genuine discoveries. Everything produced is freely licensed. Scripture Pipelines is currently in active use producing alpha-level resources — it works for us, and we are beginning to mentor our first outside teams. We expect to ramp up slowly and deliberately.
# macOS / Linux curl -fsSL https://raw.githubusercontent.com/nida-institute/LLMFlow/main/install.sh | bash # Windows (PowerShell) irm https://raw.githubusercontent.com/nida-institute/LLMFlow/main/install.ps1 | iex Then configure your API key:
sp setup # choose OpenAI, Anthropic, or Google Gemini sp models # see available models and which keys are configured See INSTALL.md for manual install steps and Gatekeeper/SmartScreen notes.
pip install scripture-pipelines Scripture Pipelines uses the llm package to call language models. By default it supports OpenAI. To use other providers, install the corresponding plugin:
pip install llm-anthropic # Anthropic Claude pip install llm-gemini # Google Gemini pip install llm-ollama # Local models via Ollama # Full plugin list: https://llm.datasette.io/en/stable/plugins/directory.html Set your API key for each provider:
llm keys set openai llm keys set anthropic llm keys set gemini Then use the model name directly in your pipeline YAML:
steps: - name: generate type: llm model: claude-3-5-sonnet-20241022 # Anthropic # model: gemini-2.0-flash # Gemini # model: ollama/llama3 # Local via Ollama Run sp models to see all available models and which keys you have configured.
Scripture Pipelines is designed to work across multiple independent projects. Install it once, use it everywhere.
# Clone the Scripture Pipelines repository git clone https://github.com/nida-institute/LLMFlow.git cd Scripture Pipelines # Install in editable mode pip install -e . # Verify installation sp --version sp --help Using Hatch (For Contributors) # Install hatch if you haven't already pip install hatch # Enter the development environment hatch shell # Scripture Pipelines is now available sp --version Working with Multiple Projects Once installed, sp works seamlessly across different project repositories:
# Lexicon project cd ~/github/biblical-lexicon sp run --pipeline pipelines/lexicon-generation.yaml # Exegetical guides project cd ~/github/exegetical-guides sp run --pipeline pipelines/storyflow.yaml # Translation notes project cd ~/github/translation-notes sp run --pipeline pipelines/note-generation.yaml Each project repository maintains its own:
This keeps each project's artifacts separate and independently versioned.
Each of your project repositories should follow this structure:
Prompt Organization Convention (~/.sp/conventions/)
Audit Prompts Skill (~/.sp/skills/audit-prompts/)
These are automatically installed when you run sp init. See Global Conventions & Skills for complete documentation.
# Initialize a project (installs global resources) sp init # Audit a prompt file (in VS Code with Copilot) @audit-prompts Check prompts/my-prompt.gpt Example Projects Here are some example project types and their typical structures:
~/github/exegetical-guides/ ├── pipelines/ │ └── storyflow.yaml ├── templates/ │ └── leadersguide_scene_template.md ├── prompts/ │ ├── step1_body.md │ ├── step2_heart.md │ └── step3_speak.md └── outputs/ └── leaders_guide/ └── 42001057-42001057_leaders_guide.md Biblical Lexicon Project ~/github/biblical-lexicon/ ├── pipelines/ │ └── lexicon-generation.yaml ├── templates/ │ └── lexicon_entry.md ├── prompts/ │ ├── define_word.md │ └── find_usage.md └── outputs/ └── lexicon/ └── greek_entries/ Translation Notes Project ~/github/translation-notes/ ├── pipelines/ │ └── note-generation.yaml ├── templates/ │ └── translation_note.md ├── prompts/ │ └── create_note.md └── outputs/ └── notes/ └── matthew/ Tips for Multi-Project Workflow Keep Scripture Pipelines Updated: Periodically update your Scripture Pipelines installation:
cd ~/github/scripture-pipelines git pull pip install -e . Version Control: Each project should have its own git repository:
git add pipelines/ templates/ prompts/ git commit -m "Add pipeline configuration" git push Ignore Outputs: Add outputs/ to .gitignore in each project to avoid committing generated files.
Share Configurations: If multiple projects use similar pipelines, consider:
Environment Variables: Use .env files in each project for project-specific API keys or settings.
Working across environments: For how to work on a Scripture Pipelines repo with any AI assistant — Claude Code, Codex, Gemini, Cursor, VS Code, or a browser agent, including non-command-line setups — see docs/ai-assistants.md.
Important: When asking for help with Scripture Pipelines pipelines, reference docs/GPT_CONTEXT.md
This file contains comprehensive documentation about:
VSCode Users: This project includes workspace settings that suggest referencing GPT_CONTEXT.md in Copilot Chat conversations.
# In pipeline YAML - use ${var} inputs: text: "${source_text}" # In prompt templates - use {{var}} Process this: {{text}} Prompt File Format (.gpt) Variables use {{variable}} double curly brace syntax:
Analyze {{passage}} using {{scene}}. Variable substitution is handled by the llm package.
Variables use {{variable}} or ${variable} syntax:
# {{passage}} Guide Context: ${context.background} Variable substitution is handled by render_markdown_template().
Licensed under the Apache License, Version 2.0. See LICENSE for details.
ai annotated-corpus anthropic bible biblical-studies corpus-linguistics digital-humanities exegesis gemini greek hebrew llm nlp openai paratext pipeline scripture treebank usfm usj versification workflow
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.




