From eed704d23bc53e5d0359072e5e2134b469ae2eef Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 6 Dec 2025 19:21:57 +0100 Subject: added RAG configuration page --- htroot/AILab.html | 2 +- htroot/RAGConfig_p.html | 61 +++++++++++++++++++++++++++++++++ htroot/env/templates/submenuAI.template | 1 + htroot/yacychat.html | 2 +- 4 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 htroot/RAGConfig_p.html (limited to 'htroot') diff --git a/htroot/AILab.html b/htroot/AILab.html index 09f007ba4..cbf330393 100644 --- a/htroot/AILab.html +++ b/htroot/AILab.html @@ -299,7 +299,7 @@ RAG configuration
- Configure RAG roles + Wire RAG prompts Test in Chat
Set the search-query and qapairs columns to connect retrieval to your chat flow.
diff --git a/htroot/RAGConfig_p.html b/htroot/RAGConfig_p.html new file mode 100644 index 000000000..51317e78d --- /dev/null +++ b/htroot/RAGConfig_p.html @@ -0,0 +1,61 @@ + + + + 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.

+ +
+ +
+

User Retrieval Prefix

+

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

+ +
+ +
+

Query Generator Prefix

+

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

+ +
+ + +
+ + #%env/templates/footer.template%# + + diff --git a/htroot/env/templates/submenuAI.template b/htroot/env/templates/submenuAI.template index a5badb975..614dff4a1 100644 --- a/htroot/env/templates/submenuAI.template +++ b/htroot/env/templates/submenuAI.template @@ -3,6 +3,7 @@ diff --git a/htroot/yacychat.html b/htroot/yacychat.html index d8fc210dc..26ee71cd1 100644 --- a/htroot/yacychat.html +++ b/htroot/yacychat.html @@ -601,7 +601,7 @@