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 / 6 unlocked
Mandatory → Needs setup

### Bind an inference engine

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

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.

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.

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.

Wire RAG prompts Test in Chat
Set the search-query and qapairs columns to connect retrieval to your chat flow.
Optional → Needs setup

### Enable/Disable Tools

Superpowers for the YaCy Chat

Open tools configuration
Tune descriptions and set maxCallsPerTurn per tool (0 disables a tool).
Optional → Needs setup

### Define a shield

Add guardrails: access rates, grant or deny non-localhost access. Activate the front page link for chat to complete this quest.

Open shield settings
Store your shield directives (system prompts, stop words) as properties, then exercise them in chat.
#%env/templates/footer.template%#