SystemPromptAugmenter
class SystemPromptAugmenter(template: String = DEFAULT_SYSTEM_PROMPT_TEMPLATE, contextPrefix: String = PromptAugmenter.DEFAULT_CONTEXT_PREFIX) : PromptAugmenter(source)
A PromptAugmenter that inserts retrieved context as a system message at the beginning of the prompt.
If an existing system message is present, the new context system message is inserted before it, keeping each system message focused on a single concern. If there is no system message in the prompt, the prompt is returned unchanged.
Parameters
template
The template for the system message. Use PromptAugmenter.RELEVANT_CONTEXT_PLACEHOLDER placeholder.
contextPrefix
The prefix to add before relevant context.