Is there a way to bulk update the default system prompt for all chat assistants? · infiniflow · Discussion #14015 · GitHub
Skip to content
Discussion options

You must be logged in to vote

There's no built-in bulk update for system prompts currently, but here's a breakdown of your questions:

1. Official bulk update? — No, RAGFlow doesn't have a native bulk update endpoint for chat assistant prompts.

2. Global/default system prompt? — There is a default system prompt applied to newly created chats, but it's hardcoded in the source code (_DEFAULT_PROMPT_CONFIG) rather than exposed as a configurable setting [1]. There's no admin panel or config file to change it globally.

3. API-based workaround? — Yes, this is the recommended approach. You can use:

  • GET /api/v1/chats to list all chats [2]
  • PATCH /api/v1/chats/<chat_id> to update each one [3]

The PATCH endpoint does a merge, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zzming-tjufe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant