From ed9ea238b1e7d4a89d77acea790b08b6f2b1ed49 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Sat, 6 Dec 2025 17:33:31 +0100 Subject: added build page for the AI lab --- htroot/AILab.html | 423 ++++++++++++++++++++++++++++++++ htroot/LLMSelection_p.html | 160 +++++++++--- htroot/env/grafics/AILab_Crawl.png | Bin 0 -> 245006 bytes htroot/env/grafics/AILab_Inference.png | Bin 0 -> 89298 bytes htroot/env/grafics/AILab_Matrix.png | Bin 0 -> 30390 bytes htroot/env/grafics/AILab_RAG.png | Bin 0 -> 39340 bytes htroot/env/grafics/AILab_shield.png | Bin 0 -> 62053 bytes htroot/env/templates/submenuAI.template | 1 + 8 files changed, 551 insertions(+), 33 deletions(-) create mode 100644 htroot/AILab.html create mode 100644 htroot/env/grafics/AILab_Crawl.png create mode 100644 htroot/env/grafics/AILab_Inference.png create mode 100644 htroot/env/grafics/AILab_Matrix.png create mode 100644 htroot/env/grafics/AILab_RAG.png create mode 100644 htroot/env/grafics/AILab_shield.png (limited to 'htroot') diff --git a/htroot/AILab.html b/htroot/AILab.html new file mode 100644 index 000000000..09f007ba4 --- /dev/null +++ b/htroot/AILab.html @@ -0,0 +1,423 @@ + + + + YaCy '#[clientname]#': AI Lab + #%env/templates/metas.template%# + + + + #%env/templates/header.template%# + #%env/templates/submenuAI.template%# + +
+
+
AI Lab Build System
+

Craft your AI toolkit

+

Complete the quests below to unlock YaCy's AI sidekick: bind an inference engine, load production models, feed it with your index, then wire RAG and shields.

+
+
+
0 / 5 unlocked
+
+
+
+ +
+
+
+ Mandatory + + Needs setup +
+

Bind an inference engine

+

Pick your host (Ollama, LM Studio, OpenAI-compatible) and give YaCy a place to send prompts.

+
+
+ Inference engine setup +
+
+ Open engine setup
+ Set hoststub, API keys, and defaults to unlock downloads. +
+
+
+ +
+
+ Mandatory + + Needs setup +
+

Populate the Production Models Matrix

+

Assign models for chat, search, translation, and more. This is your loadout bench.

+
+
+ Model assignment preview +
+
+ Go to Production Models Matrix
+ Deploy at least one model, then assign capabilities (chat, search-query, tooling, vision). +
+
+
+ +
+
+ Optional + + Needs setup +
+

Grow a search index

+

Create a local index for grounding: crawl a site or import a pack to give your AI facts to cite.

+
+
+ Index creation +
+
+ Start a crawl + Import an index pack
+ Indexed documents: #[ailab_index_count]# / #[ailab_index_needed]# required to unlock (need at least 1000 documents). +
+
+
+ +
+
+ Optional + + Needs setup +
+

Wire RAG retrieval

+

Map which production models answer search-query and Q/A pairs so the RAG proxy can mix search with chat.

+
+
+ RAG configuration +
+
+ Configure RAG roles + Test in Chat
+ Set the search-query and qapairs columns to connect retrieval to your chat flow. +
+
+
+ +
+
+ Optional + + Needs setup +
+

Define a shield

+

Add guardrails: moderation prompts, content filters, or safety rules that wrap every request.

+
+
+ Shield definition +
+
+ Open shield settings
+ Store your shield directives (system prompts, stop words) as properties, then exercise them in chat. +
+
+
+
+
+ + + + #%env/templates/footer.template%# + + diff --git a/htroot/LLMSelection_p.html b/htroot/LLMSelection_p.html index ae607fafa..0209aba8d 100644 --- a/htroot/LLMSelection_p.html +++ b/htroot/LLMSelection_p.html @@ -5,7 +5,7 @@ YaCy '#[clientname]#': LLM Selection #%env/templates/metas.template%# - + #%env/templates/header.template%# #%env/templates/submenuAI.template%# @@ -1087,7 +1181,7 @@

Here you can pick models from a LLM model service to select them as production model. - In the "Production Models" - Matrix you can then assign each selected model a function inside YaCy + In the "Production Models Matrix" you can then assign each selected model a function inside YaCy

Install your local LLM service! You need either a local ollama or LM Studio instance running on your local host or inside the intranet. @@ -1138,9 +1232,9 @@ Model Downloads

- + -
Production Models +
Production Models Matrix diff --git a/htroot/env/grafics/AILab_Crawl.png b/htroot/env/grafics/AILab_Crawl.png new file mode 100644 index 000000000..330918bd5 Binary files /dev/null and b/htroot/env/grafics/AILab_Crawl.png differ diff --git a/htroot/env/grafics/AILab_Inference.png b/htroot/env/grafics/AILab_Inference.png new file mode 100644 index 000000000..0f4004b54 Binary files /dev/null and b/htroot/env/grafics/AILab_Inference.png differ diff --git a/htroot/env/grafics/AILab_Matrix.png b/htroot/env/grafics/AILab_Matrix.png new file mode 100644 index 000000000..c1cf0efba Binary files /dev/null and b/htroot/env/grafics/AILab_Matrix.png differ diff --git a/htroot/env/grafics/AILab_RAG.png b/htroot/env/grafics/AILab_RAG.png new file mode 100644 index 000000000..6e14804ef Binary files /dev/null and b/htroot/env/grafics/AILab_RAG.png differ diff --git a/htroot/env/grafics/AILab_shield.png b/htroot/env/grafics/AILab_shield.png new file mode 100644 index 000000000..72b4cf0c9 Binary files /dev/null and b/htroot/env/grafics/AILab_shield.png differ diff --git a/htroot/env/templates/submenuAI.template b/htroot/env/templates/submenuAI.template index c9c933661..a5badb975 100644 --- a/htroot/env/templates/submenuAI.template +++ b/htroot/env/templates/submenuAI.template @@ -1,6 +1,7 @@