Page MenuHomePhabricator

Implement new prompt source where a specific wiki page content serves as the system prompt
Closed, ResolvedPublic

Description

When there is a need for Wiki admins or people with a specific role to modify the system prompt, they should be able to edit the system prompt just by modifying the content of a wiki page.

Ideally, a config variable should be used to enable this:

$wgWandaCustomPrompt = 'Title_of_the_page';

When this variable is set, the LLM should use the system prompt from the wiki page. If not set, Wanda's instructions in the code should automatically be used.

Details

Event Timeline

Change #1196726 had a related patch set uploaded (by TechieNK; author: TechieNK):

[mediawiki/extensions/Wanda@master] Add custom prompt to LLM

https://gerrit.wikimedia.org/r/1196726

Change #1196726 merged by jenkins-bot:

[mediawiki/extensions/Wanda@master] Add custom prompt config variables for LLM

https://gerrit.wikimedia.org/r/1196726