Skip to content

Kenforthewin/prompts setting#180

Merged
kenforthewin merged 3 commits intomainfrom
kenforthewin/prompts-setting
May 1, 2026
Merged

Kenforthewin/prompts setting#180
kenforthewin merged 3 commits intomainfrom
kenforthewin/prompts-setting

Conversation

@kenforthewin
Copy link
Copy Markdown
Owner

No description provided.

bk-ty and others added 3 commits April 30, 2026 10:44
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
@kenforthewin kenforthewin merged commit 850ac63 into main May 1, 2026
3 checks passed
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.

2 participants