YaCy '#[clientname]#': Wire RAG Retrieval

#%env/templates/metas.template%#
#%env/templates/header.template%# #%env/templates/submenuAI.template%#

## Wire RAG Retrieval

Tune how YaCy constructs prompts and search queries for Retrieval Augmented Generation.

### System Prompt

This is sent as the system message for chats. Keep it concise and friendly.

#[ai.system-prompt]#

### User Retrieval Prefix

Prepended before attached search snippets in RAG mode to tell the LLM how to use them.

#[ai.llm-user-prefix]#

### Query Generator Prefix

Prompt given to the model that generates search queries from user requests.

#[ai.llm-query-generator-prefix]#

### Search Document Max Length

Maximum character length of the virtual search document used as RAG attachment and as the `search` tool result. Content beyond this limit is cut off. Default: 30000.

#%env/templates/footer.template%#