Companion

Companion object with constants, static methods, and builder entry point.

Properties

Link copied to clipboard

The prefix to add before relevant context.

Link copied to clipboard

Placeholder in prompt templates for insertion of relevant context.

Functions

Link copied to clipboard

Returns a builder that lets you choose a default PromptAugmenter implementation.

Link copied to clipboard
fun formatContext(relevantContext: List<SearchResult>, contextPrefix: String = DEFAULT_CONTEXT_PREFIX): String

Formats a list of search results into a numbered text block with the given prefix.

Link copied to clipboard
fun formatTemplate(template: String, relevantContextText: String): String

Formats the template by replacing placeholders with actual content.