@Override
    public Result search(Query query, Execution execution) {
        Result result = execution.search(query);
        execution.fill(result);
        return complete(query, buildPrompt(query, result), result, execution);
    }
An LLM searcher that uses the RAG (Retrieval-Augmented Generation) model to generate completions.
Prompts are generated based on the search result context.
By default, the context is a concatenation of the fields of the search result hits.

@author lesters
container-search/src/main/java/ai/vespa/search/llm/RAGSearcher.java