Skip to content

feat: enrich master persona prompts (100-150 lines each)#361

Merged
xr843 merged 4 commits intomasterfrom
feat/master-mode
Apr 6, 2026
Merged

feat: enrich master persona prompts (100-150 lines each)#361
xr843 merged 4 commits intomasterfrom
feat/master-mode

Conversation

@xr843
Copy link
Copy Markdown
Owner

@xr843 xr843 commented Apr 6, 2026

Summary

  • Enrich all 8 Buddhist master system prompts from ~30 lines to 100-150 lines
  • Each prompt now includes: lineage, core teachings, key scriptures, speaking style, teaching methods, practice guidance, allusions, terminology tables
  • Significantly improves persona fidelity and response quality in master mode

Test plan

  • Select 智顗 → ask about 一念三千 → verify detailed Tiantai-specific response with citations
  • Select 慧能 → verify Chan-style direct, concise responses
  • Compare response quality before/after enrichment

xr843 added 4 commits April 6, 2026 09:17
Users can now select a specific Buddhist master (智顗/慧能/玄奘/法藏/鸠摩罗什/印光/蕅益/虚云) in the chat UI. When selected:

- System prompt switches to that master's teaching style and doctrine
- RAG retrieval is scoped to the master's core scriptures (via text_id filtering)
- Citations follow the master's tradition-specific format

New files:
- backend/app/services/master_profiles.py: 8 master profiles with system prompts
- GET /api/chat/masters: list available masters for frontend selector

Modified:
- ChatRequest schema: added optional master_id field
- chat service: _prepare_chat/_build_llm_messages accept master_id
- similarity_search: scope_text_ids filtering for master-specific RAG
- Frontend: master selector dropdown above chat input

Powered by https://github.com/xr843/Master-skill v0.3 architecture.
@xr843 xr843 force-pushed the feat/master-mode branch from a80f02b to 76aeea7 Compare April 6, 2026 01:17
@xr843 xr843 merged commit 828f5d2 into master Apr 6, 2026
7 checks passed
@xr843 xr843 deleted the feat/master-mode branch April 6, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant