feat: enrich master persona prompts (100-150 lines each)#361
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan