summaryrefslogtreecommitdiff
path: root/htroot
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2026-03-29 00:19:57 +0100
committerMichael Peter Christen <mc@yacy.net>2026-03-29 00:19:57 +0100
commitc79b7a19c8d6e9679219bc5f64bd34daa2ae2574 (patch)
treea9f1084ce8cd426bd70b1727dc53425c6ae9df7c /htroot
parenta9a365bc7503aeae921c9195304b54c9c78b85da (diff)
Add configurable maximum length for RAG search documents
Diffstat (limited to 'htroot')
-rw-r--r--htroot/RAGConfig_p.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/htroot/RAGConfig_p.html b/htroot/RAGConfig_p.html
index 51317e78d..c61b9641c 100644
--- a/htroot/RAGConfig_p.html
+++ b/htroot/RAGConfig_p.html
@@ -53,6 +53,12 @@
<textarea name="ai.llm-query-generator-prefix" class="rag-textarea form-control" rows="5">#[ai.llm-query-generator-prefix]#</textarea>
</div>
+ <div class="rag-card">
+ <h3>Search Document Max Length</h3>
+ <p>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.</p>
+ <input type="number" min="1" step="1" name="ai.rag.search-document-maxlength" value="#[ai.rag.search-document-maxlength]#" class="form-control" />
+ </div>
+
<button type="submit" class="btn btn-primary">Save RAG Settings</button>
</form>