r/zen [non-sectarian consensus] 19d ago

AI Zen Master

Since it's so easy to drop a Zen text or even multiple Zen texts into an llm and ask questions that the llm will answer from the standpoint of the text?

* www.reddit.com/r/Zen/wiki/getstarted

Doesn't it make sense that there would be a lot less confusion and a lot more interesting conversations??

Plus, if you have an llm answer questions about the texts then who better to explain why Zazen Shinto-Buddhism and Alan Epstein Watts are not part of the tradition?

Serious question.

Where are all my AI Zen Masters at?

0 Upvotes

157 comments sorted by

View all comments

-1

u/LegeApps New Account 18d ago edited 17d ago

Word must be getting around

https://github.com/LegeApp/SinoRAG

I made this program for this purpose, structured tools for Zen/Buddhist/Chinese classic corpus. RAG stands for retrieval augmented generation, which is basically a means of allowing LLM agents to access information more efficiently when constructing responses. The program itself creates databases from inputs, and offers 20+ research tools to parse those databases.

Quickstart, get the windows release, or build from source if not on Windows; copy the exe to its own folder.

download the full cbeta corpus here - https://github.com/cbeta-org/xml-p5/archive/refs/heads/master.zip

extract that to a folder named "data" in the folder you created for sinorag. since you might want to add other corpora later.

open a command prompt. type "sinorag ingest cbeta {file path of above cbeta extract}". It will now convert the cbeta corpus to Arrow parquet format and then create a few basic indexes to search from. Then you can run "sinorag indexes lexical" and generate two additional more sophisticated indexes that take about 5 minutes each to build.

Then you're ready. Use the LLM of your choice (OpenCode is free and has free models to use) and come up with a question to ask it, and tell it to figure out the tools in sinorag, which are designed to be figured out quickly by an LLM agent. Tell it to generate a research report and/or a diagram and see how it does.

The agent is strongly cautioned by the tools to only make a claim if it can be supported by cited evidence, and any evidence it does output will be cited with the tools. This nearly prevents it from making anything up, or telling you what you want to hear.

Example output from the Wansong meditation question from this thread -

Research Report: Does Wansong Say Anywhere Whether to Meditate or Not to Meditate in a Zen Context?

Question: Does Wansong (萬松行秀, 1166–1246) say anywhere in the Book of Serenity (從容庵錄, T48n2004), or in any other document preserved in the corpus, whether to meditate or not to meditate in a Zen context?

Answer: No. Across the full range of texts authored by or attributed to Wansong in this corpus, he gives no explicit instruction to meditate or not to meditate. His teaching method is koan commentary and intellectual-spiritual inquiry. The nearest he comes is a rejection of both extremes — neither motion (activity) nor stillness (sitting) is the answer.


1. Corpus Searches — Method

All searches were run against the SinoRAG corpus (CBETA + supplemental canons) using the sinorag.exe tool-call search tool with exact-phrase matching.

Search terms applied to T48n2004 (萬松老人評唱天童覺和尚頌古從容庵錄 = Book of Serenity):

Term Hits in T48n2004 Source Citation
坐禪 1 T48n2004 Case 41 — Wansong quotes 杭州五雲和尚坐禪箴, not his own teaching
默照 0
禪定 0
打坐 0
宴坐 1 T48n2004 Case 23 — appears only in the story of 空生宴坐天帝雨花; Wansong then says 萬松不曾面壁
參禪 3 Cases 10, 20, 78 — used in passing koan commentary, not meditation instruction
坐禪箴 0 (as author) The only 坐禪箴引用 is attributed to 杭州五雲和尚, not Wansong

Broader search for 萬松老人 / 萬松行秀 across entire corpus:

Work ID Heading Key Finding
B16n0088 (續藏) 行秀 Biography — Wansong awakened through 參究 (investigation), not sitting meditation
B24n0137 (續藏) 洞宗世次備考 全曹洞之血脉,具雲門之善巧,備臨濟之機鋒
J27nB189 (嘉興藏) 拈古 示眾:機輪轉處,智眼猶迷;寶鏡開時,纖塵不度
J35nB336 (嘉興藏) 源流拈頌 示眾:動則埋身千尺,不動則當處生苗,直須兩頭撒開、中間放下
X13n0287 (卍續藏) 末五錄 若是萬松咄了便休,真妄向上有事在
X66n1296 (卍續藏) 宗鑑法林 Same 示眾 content
X77n1524 (卍續藏) 萬松老人傳 Biography — details life and works
X82n1571 (卍續藏) 燕京報恩寺萬松行秀禪師 Fullest collection of Wansong's 示眾 and问答

2. Detailed Findings

2a. The Book of Serenity (從容庵錄, T48n2004)

This is Wansong's major work: a评唱 (critical commentary) on Hongzhi Zhengjue's (天童正覺)一百頌古. It contains 100 cases, each with Hongzhi's verse and Wansong's commentary.

Only one meditation-related passage exists:

杭州五雲和尚坐禪箴云。沿流劍閣無滯木鵞。 — T48n2004, Case 41 (洛浦臨終), passage T/T48/T48n2004.xml#pT48p0254b0401

Wansong here is quoting Master Wuyun's Sitting Meditation Admonition (坐禪箴), not delivering his own teaching. The original 坐禪箴 is found in T51n2076 (景德傳燈錄) and attributed to 杭州五雲和尚, not Wansong.

On the topic of wall-gazing/meditation posture, Wansong says explicitly:

萬松不曾面壁。爾這一隊來覓什麼節文。 — T48n2004, Case 23 (魯祖面壁), passage T/T48/T48n2004.xml#pT48p0242c0301

Translation: "I, Wansong, have never faced the wall. What text are you lot coming to look for?" This is a deliberate distancing from the practice of wall-gazing meditation (面壁).

2b. Wansong's Recorded Sayings (語錄)

The most complete collection of Wansong's teaching statements is in X82n1571:

示眾:動則埋身千丈,不動則當處生苗。直須兩頭撒開,中間放下,更買草鞋行脚始得。 — X82n1571, passage X/X82/X82n1571.xml#pX82p0255c0612

Translation: "If you move, you bury yourself a thousand丈 deep. If you don't move, sprouts grow right where you are. You must let go of both ends, drop the middle, buy straw sandals, and start traveling."

This is as close as Wansong comes to addressing the meditation question, and it rejects both alternatives: neither sitting still (不動) nor active practice (動) is the path. Both extremes are traps.

示眾:去即留住,住即遣去。不去不住,渠無國土。何處逢渠,在在處處。 — X82n1571, same passage

Translation: "If you go, you're held back. If you stay, you're sent away. Neither going nor staying — he has no country. Where do you meet him? Everywhere, in every place."

Asked about stopping deluded thoughts (a meditation goal):

全真問:弟子三十餘年打疊妄心不下,乞師方便。 師曰:汝妄心有來多少時也?未審本來有妄心否?祇如妄心作麼生斷?只者妄心,斷即是?不斷即是? 真聞廓然,禮拜而去。 — X82n1571, same passage

Translation: "Disciple Quanzhen asked: 'For over thirty years I've been unable to suppress my deluded mind. Please, Master, give me a means.' The Master said: 'How long has your deluded mind existed? Was there originally a deluded mind or not? As for this deluded mind — is cutting it off the answer? Or is not cutting it off the answer?' Quanzhen heard this, was greatly enlightened, bowed, and left."

Wansong's approach here is inquiry-based, not practice-based. He does not prescribe sitting meditation, mantras, or any technique. Instead he questions the very framework of "deluded mind" that needs to be "suppressed."

2c. Wansong's Own Enlightenment Story

The biography in B16n0088 and X82n1571 records:

參勝默老人教看長沙轉自己歸山河大地話,半載全無由入。默曰:我只願你遲會。一日有省。復看元沙未徹語,請益雪巗於磁之大明。才二十七日,不覺伎倆已盡。留入記室,語言相契,徑付衣偈。 — B16n0088, passage B/B16/B16n0088.xml#pB16p0575a0601

His awakening came through intensive investigation of koans (看話), not through sitting meditation. Another version records:

偶見雞飛鳴,乃大悟。 — J36nB369

His enlightenment was triggered by a chicken flying and calling — a spontaneous event, not a meditation practice.

2d. Works Wansong Authored That Are Not in the Corpus

The biography lists these works, none of which are available in this corpus for direct searching:

有祖燈錄、釋氏新聞、鳴道集、辨宗說、心經風、鳴禪悅、法喜集、四會語錄行世。 — X82n1571

The 請益錄 exists in the corpus (X67n1307) but only as a table of contents; the actual text is not loaded.


3. Conclusion

Finding Evidence
Wansong does not tell practitioners to meditate (sitting) The term 坐禪 appears only once in the Book of Serenity, in a quote from another master.
Wansong does not tell practitioners not to meditate He does not criticize sitting meditation explicitly.
Wansong's teaching method is koan commentary (評唱) His entire Book of Serenity and 請益錄 are structured as case-by-case commentary.
Wansong's closest statement on the issue 動則埋身千丈,不動則當處生苗。直須兩頭撒開、中間放下 (X82n1571) — reject both extremes.
Wansong explicitly distances himself from wall-gazing 萬松不曾面壁 (T48n2004 Case 23).
Wansong's own awakening path Intensive 參話頭 (koan investigation), not sitting meditation.
Wansong's approach to deluded thoughts Question the nature of mind, do not suppress thoughts. (X82n1571, 全真問)

The question remains open because Wansong's lost works (祖燈錄, 鳴道集, 辨宗說, etc.) are not available in this corpus. A definitive answer would require locating those texts.


4. Key Source References

Passage ID Work Content
T/T48/T48n2004.xml#pT48p0254b0401 從容庵錄 (T48n2004) 坐禪箴引用 (quote, not own teaching)
T/T48/T48n2004.xml#pT48p0242c0301 從容庵錄 (T48n2004) 萬松不曾面壁
T/T48/T48n2004.xml#pT48p0233c0301 從容庵錄 (T48n2004) 參禪謂之金屎法
T/T48/T48n2004.xml#pT48p0240a1201 從容庵錄 (T48n2004) 參禪 usage in case context
T/T48/T48n2004.xml#pT48p0277b0701 從容庵錄 (T48n2004) 參禪 usage in case context
B/B16/B16n0088.xml#pB16p0575a0601 續藏 B16n0088 Wansong biography and enlightenment story
X/X82/X82n1571.xml#pX82p0255c0612 卍續藏 X82n1571 Fullest collection: 示眾, 问答, biography
X/X13/X13n0287.xml#pX13p0912b0901 卍續藏 X13n0287 若是萬松咄了便休
J/J27/J27nB189.xml#pJ27p0041a2201 嘉興藏 J27nB189 示眾:機輪轉處
J/J35/J35nB336.xml#pJ35p0677c1701 嘉興藏 J35nB336 示眾:動則埋身千丈
X/X77/X77n1524.xml#pX77p0494b1801 卍續藏 X77n1524 萬松老人傳 (biography)

1

u/ewk [non-sectarian consensus] 18d ago

Wow.

1

u/origin_unknown 18d ago

Ewk says:

Wow.

Now you're falling for an llm guru.

Dude.

Get un hoodwinked.

It's a glass hammer.

1

u/LegeApps New Account 18d ago

Its either this or actually learning classical chinese and getting immersed in chinese culture and we all know most of us arent actually interested in that. So LLMs it is. And RAGs smooth out most of the rough spots of LLM hallucination, as I tried to explain before. An LLM is just a tool when you dont make it rely on its own trained dataset. I hope you understand somewhat what is going on here on a technical level

2

u/origin_unknown 18d ago

Peddler of cheap knowledge, be gone from the zen forum.

2

u/dota2nub 18d ago edited 18d ago

Dude you're pasting stuff into ChatGPT, running out of context and try to make an argument about how that means AI is unreliable.

You have no understanding of the tools you are talking about.

2

u/origin_unknown 18d ago

I can understand why it makes your life easier to believe that, but the only thing I used chargpt for was pasted directly in this post as comments.

You're making claims about me that you can't back up, did you wake up today to make unsupported accusations on the internet?

1

u/dota2nub 18d ago

That's funny, so you're saying you know even less than what you made it sound like, and you're making sweeping statements about it. That is such a crashout.

2

u/origin_unknown 18d ago

I'm not the one lending my own confusion to the chatbot, treating it as an oracle that offers clarity on zen, and calling it an artificial intelligence.

If you are truly concerned about me, precept taker, then I thank you, but it's not your concern.

You have plenty of your own to tend to without trying to makeing unsupproted claims about me?

-1

u/dota2nub 18d ago

The fuck are you talking about?

3

u/origin_unknown 18d ago

Ok, let's do it another way.

You're defending a post about AI zen masters.

Don't you have something more honest or more appropriate to be doing, or is defending AI zen masters why you're here, now, and cursing about it?

0

u/dota2nub 18d ago

Can you read? Is this about some goddamn windmill fight of yours? What?

Fucking telling me I'm imagining things.

Fuck.

2

u/origin_unknown 18d ago

Yes.
No.
I dunno.
I didn't tell you that.
If you say so, but I'm top.

→ More replies (0)

1

u/LegeApps New Account 18d ago

I dont care what you think since you havent taken the first step towards learning classical chinese and teaching the forum how to learn in general. Hypocrite

2

u/origin_unknown 18d ago

As if it were locked away by words, much less foreign words made less foreign.

-1

u/LegeApps New Account 18d ago

Motte and bailey argument.

4

u/origin_unknown 18d ago

It wasn't an argument at all. Don't be a clown.

2

u/LegeApps New Account 18d ago

We were talking about zen as a cultural institution and how to learn about it as english speakers, and you said "but what about the truuuuth man, youre a clown if youre not talking about the truuuuuth". Blocking you now

1

u/[deleted] 18d ago

[removed] — view removed comment

0

u/zen-ModTeam 18d ago

Your post was removed because it was low effort in the opinion of the /r/zen moderators. If you would like to discuss with them or appeal this decision, feel free to. Thanks for your understanding.https://old.reddit.com/message/compose/?to=/r/zen

→ More replies (0)