Kenforthewin/prompts setting#180
Merged
kenforthewin merged 3 commits intomainfrom May 1, 2026
Merged
Conversation
Adds three new per-database settings that let users override the default system prompts used by AI features: - chat_prompt: prepended to the chat agent system prompt - briefing_prompt: replaces the briefing generation system prompt - tagging_prompt: replaces the tag extraction system prompt The wiki generation prompt override already existed; this moves it to a dedicated Prompts tab in Settings alongside the three new prompt fields. Backend changes: - settings.rs: register chat_prompt, briefing_prompt, tagging_prompt as default (empty) settings - agent.rs: read chat_prompt and prepend to base system prompt when set - briefing/agentic.rs: read briefing_prompt and use as system prompt when set (falls back to built-in SYSTEM_PROMPT) - extraction.rs: accept optional custom_system_prompt param and apply when non-empty - embedding.rs: read tagging_prompt from settings and pass through to run_tagging_strategy -> extract_tags_from_content Frontend changes: - SettingsModal.tsx: add Prompts tab; move wiki generation prompt from AI tab to Prompts tab; add briefing, chat, and tagging prompt fields
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.
No description provided.