Skip to main content

TNH Scholar is an AI-driven project designed to explore, query, and translate the teachings of Thich Nhat Hanh and Plum Village community.

Project description

TNH Scholar README

TNH Scholar is an AI-driven project designed to explore, query, process and translate the teachings of Thich Nhat Hanh and the Plum Village community. The project provides tools for practitioners and scholars to engage with mindfulness and spiritual wisdom through natural language processing and machine learning models.

Vision & Goals

TNH Scholar aims to make the teachings of Thich Nhat Hanh and the Plum Village tradition more accessible and discoverable through modern AI techniques. By combining natural language processing, machine learning, semantic search, and careful curation, we create pathways for practitioners and scholars to translate, search, organize, process and otherwise find meaningful connections among the body of teachings.

Features

TNH Scholar is currently in active prototyping. Key capabilities:

  • Audio and transcript processing: audio-transcribe with diarization and YouTube support
  • Text formatting and translation: tnh-gen CLI (rename in flight; see ADR-VSC01 and ADR-VSC02) for punctuation, translation, sectioning, and prompt-driven processing
  • Acquisition utilities: ytt-fetch for transcripts; token-count and nfmt for prep and planning
  • Setup and configuration: tnh-setup plus guided config in Getting Started
  • Prompt system: See ADRs under docs/architecture/prompt-system/index.md for decisions and roadmap

Quick Start

Installation (PyPI)

pip install tnh-scholar
tnh-setup

Prerequisites: Python 3.12.4+, OpenAI API key (CLI tools), Google Vision (optional OCR), pip or Poetry.

Development setup (from source)

Follow DEV_SETUP.md for the full workflow. Short version:

pyenv install 3.12.4
poetry config virtualenvs.in-project true
make setup        # runtime deps
make setup-dev    # runtime + dev deps (recommended)

Set OpenAI credentials

export OPENAI_API_KEY="your-api-key"

Example usage

Transcribe Audio from YouTube:

audio-transcribe --yt_url "https://youtube.com/watch?v=example" --split --transcribe

Process Text with TNH-GEN (was previously tnh-fab: CLI refactor and rename in progress; see ADR-VSC01/VSC02):

Download Video Transcripts:

ytt-fetch "https://youtube.com/watch?v=example" -l en -o transcript.txt

Getting Started

  • Practitioners: Install, configure credentials, and follow the Quick Start Guide; workflows live in the User Guide.
  • Developers: Set up via DEV_SETUP.md and Contributing; review System Design and the CLI docs; run make docs to view locally.
    • Project Philosophy & Vision: Developers and researchers should review the conceptual foundations in docs/project/vision.md, docs/project/philosophy.md, docs/project/principles.md, and docs/project/conceptual-architecture.md to understand the system’s long-term direction and design intent.
  • Researchers: Explore Research for experiments and direction; see Architecture for pipelines/ADRs (e.g., ADR-K01).

Documentation Overview

Comprehensive documentation is available in multiple formats:

Documentation Structure

Architecture Overview

Development

  • Common commands: make test, make lint, make format, make docs, poetry run mypy src/
  • Optional dependency groups (development only): tnh-scholar[ocr], tnh-scholar[gui], tnh-scholar[query], tnh-scholar[dev]
  • Troubleshooting and workflows: DEV_SETUP.md

Contributing

See CONTRIBUTING.md for coding standards, testing expectations, and PR workflow. We welcome contributions from practitioners, developers, and scholars.

Project Status

TNH Scholar is currently in alpha stage (v0.1.3). Expect ongoing API and workflow changes during active development.

Support & Community

Documentation Map

For an auto-generated list of every document (titles and metadata), see the Documentation Index.

License

This project is licensed under the GPL-3.0 License.


For more information, visit the full documentation or explore the source code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tnh_scholar-0.2.1.tar.gz (234.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tnh_scholar-0.2.1-py3-none-any.whl (320.3 kB view details)

Uploaded Python 3

File details

Details for the file tnh_scholar-0.2.1.tar.gz.

File metadata

  • Download URL: tnh_scholar-0.2.1.tar.gz
  • Upload date:
  • Size: 234.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.4 Darwin/24.6.0

File hashes

Hashes for tnh_scholar-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f91b53a9213e9528204f84d622e9520cb0a5f90ab7b4e3562ad4f19a093dc74c
MD5 ff0f1a3eabb5a35aaf1b870c8ee036a4
BLAKE2b-256 e3b7e1b668423742371cad477a642069d8d769253b1388dbb5e99038ba523d4e

See more details on using hashes here.

File details

Details for the file tnh_scholar-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: tnh_scholar-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 320.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.4 Darwin/24.6.0

File hashes

Hashes for tnh_scholar-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bde4a4e4325e0a230749b2b48dcde8015d4bdee1af6e5795453c096993a8275
MD5 b03c2e415114d5062cf2de5297c928b5
BLAKE2b-256 55460f0c29c9f4b2b7047390d9c2273d757b80152d9653a0b85f42afccbd31c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page