Package-level declarations

Types

Link copied to clipboard
fun interface PromptAugmenter

Interface for augmenting prompts with relevant context retrieved from memory.

Link copied to clipboard

Intermediate builder that lets callers select a PromptAugmenter implementation.

Link copied to clipboard
class SystemPromptAugmenter(template: String = DEFAULT_SYSTEM_PROMPT_TEMPLATE, contextPrefix: String = PromptAugmenter.DEFAULT_CONTEXT_PREFIX) : PromptAugmenter

A PromptAugmenter that inserts retrieved context as a system message at the beginning of the prompt.

Link copied to clipboard
class UserPromptAugmenter(template: String = DEFAULT_USER_PROMPT_TEMPLATE, contextPrefix: String = PromptAugmenter.DEFAULT_CONTEXT_PREFIX) : PromptAugmenter

A PromptAugmenter that inserts retrieved context as a user message before the last user message.