Currently the AI Search Block builds a single combined prompt that includes both instructions and content. When feeding large volumes of content (e.g. dozens of articles), many smaller LLMs tend to drift from the initial instructions. Splitting instructions into a dedicated “system” prompt ensures the model consistently follows its role definition.
system_prompt
– the role/instruction message.user_prompt
– content & question placeholder (e.g. “{{ articles }}\n\n{{ query }}”).system_prompt
as the system message and user_prompt
(with tokens substituted) as the user message.enable_system_user_split
under “Prompt settings”.system_prompt
(instruction role).user_prompt
(articles + query template).{{ articles }}
, {{ query }}
).AI_search_block\Form\SettingsForm
.Active
1.0
Code