augment

open override fun augment(originalPrompt: Prompt, relevantContext: List<SearchResult>): Prompt(source)

Augments the given prompt with relevant context.

Return

A new Prompt with the context inserted, or the original prompt if no augmentation is needed.

Parameters

originalPrompt

The original prompt to augment.

relevantContext

The list of search results containing relevant context.