From 9f540de0674378ce610594da568925050b6139ec Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 4 Jul 2026 13:52:47 +0200 Subject: Enhanced Log Reports --- defaults/yacy.init | 33 +++--- htroot/LogReports_p.html | 173 +++++++++++++++++++++++++++---- htroot/js/yacy-markdown.js | 85 +++++++++++++++ htroot/yacychat.html | 94 ++--------------- source/net/yacy/ai/LogReportService.java | 57 +++++----- source/net/yacy/htroot/LogReports_p.java | 47 ++++++--- 6 files changed, 326 insertions(+), 163 deletions(-) create mode 100644 htroot/js/yacy-markdown.js diff --git a/defaults/yacy.init b/defaults/yacy.init index 9afd2c82c..874d7ffa2 100644 --- a/defaults/yacy.init +++ b/defaults/yacy.init @@ -1437,23 +1437,22 @@ decoration.grafics.linkstructure = true decoration.hostanalysis = false decoration.simpleheadernavbar = navbar-default -# ai settings -ai.production_models = [] -ai.system-prompt = You are a smart and helpful chatbot. If possible, use friendly emojies. -ai.llm-system-prefix = \n\nYou may receive additional expert knowledge in the user prompt after a 'Additional Information' headline to enhance your knowledge. Use it only if applicable. -ai.llm-user-prefix = \n\nAdditional Information:\n\nbelow you find a collection of texts that might be useful to generate a response. Do not discuss these documents, just use them to answer the question above.\n\n -ai.llm-query-generator-prefix = Make a list of search words with low document frequency for the following prompt; use a JSON Array: -ai.logreport.enabled = true -ai.logreport.dir = DATA/REPORTS/log -ai.logreport.initial_delay_minutes = 5 -ai.logreport.period_minutes = 60 -ai.logreport.max_bucket_lines = 100000 -ai.logreport.max_tokens = 4096 -ai.logreport.daily_compression.enabled = true -ai.logreport.daily_compression.delete_hourly = false -ai.logreport.feed.max_entries = 100 -ai.shield.allow-nonlocalhost = false -ai.shield.show-chat-link = false +# ai settings +ai.production_models = [] +ai.system-prompt = You are a smart and helpful chatbot. If possible, use friendly emojies. +ai.llm-system-prefix = \n\nYou may receive additional expert knowledge in the user prompt after a 'Additional Information' headline to enhance your knowledge. Use it only if applicable. +ai.llm-user-prefix = \n\nAdditional Information:\n\nbelow you find a collection of texts that might be useful to generate a response. Do not discuss these documents, just use them to answer the question above.\n\n +ai.llm-query-generator-prefix = Make a list of search words with low document frequency for the following prompt; use a JSON Array: +ai.logreport.enabled = true +ai.logreport.dir = DATA/REPORTS/log +ai.logreport.initial_delay_minutes = 5 +ai.logreport.period_minutes = 60 +ai.logreport.max_bucket_lines = 100000 +ai.logreport.max_tokens = 4096 +ai.logreport.daily_compression.enabled = true +ai.logreport.feed.max_entries = 100 +ai.shield.allow-nonlocalhost = false +ai.shield.show-chat-link = false ai.shield.rate.per-minute = 4 ai.shield.rate.per-hour = 60 ai.shield.rate.per-day = 120 diff --git a/htroot/LogReports_p.html b/htroot/LogReports_p.html index a99a20eb4..45e86c16a 100644 --- a/htroot/LogReports_p.html +++ b/htroot/LogReports_p.html @@ -3,10 +3,59 @@ YaCy '#[clientname]#': Log Reports #%env/templates/metas.template%# + +