xr843/fojin

Buddhist Digital Text Platform — 10,500+ texts, 613 sources, trilingual cross-canon, AI Q&A (RAG), knowledge graph, full-text search

What it solves

FoJin provides a unified, verifiable platform for querying and studying Buddhist scriptures. It solves the problem of Buddhist texts being scattered across disparate databases (like CBETA, SuttaCentral, and 84000) with different interfaces and languages, making it difficult for users to find specific passages or compare versions across different canons (Chinese, Pali, and Tibetan).

How it works

FoJin uses Retrieval-Augmented Generation (RAG) over a corpus of 670K+ embedded passages from 612 data sources. The system, featuring an AI assistant named "XiaoJin," retrieves relevant texts using a combination of vector similarity (pgvector + HNSW), keyword reranking, and root-sutra recall. To ensure accuracy and prevent hallucinations, it employs a deterministic citation whitelist and verbatim-quote verification. It also features a trilingual cross-canon alignment system that uses LLMs to verify chunk-level parallels between different language versions of the same sutra.

Who it’s for

  • Researchers and Academics: Those needing citable, verifiable sources and cross-canon parallel reading for Buddhist studies.
  • Students of Buddhism: Individuals seeking grounded answers to scriptural questions without having to manually search multiple databases.
  • AI Developers: Those who want to integrate verified Buddhist knowledge into other AI assistants via the provided MCP server.

Highlights

  • Verifiable AI Q&A: Answers include clickable citations that link directly to the source text, with anti-hallucination guards.
  • Trilingual Parallel Reading: LLM-verified alignments between Chinese, Pali, and Tibetan canons, allowing side-by-side comparison of passages.
  • MCP Server Integration: A Model Context Protocol (MCP) server allows external AI assistants (like Claude or ChatGPT) to access FoJin's verified corpus.
  • KNOWLEDGE GRAPH: An interactive map and graph featuring 110K+ entities and 22K+ teacher-student lineage chains.
  • Extensive Dictionary Support: Integration of 39 authoritative Buddhist dictionaries with over 747K entries.

Related

  • Project
  • Dispatch
  • Project
  • Project
  • Project