User manual, architecture, and installation reference for SE - AI chatbot
/admin/chat/settings
Configures the chat-completions backend powering Chat mode on the public search page, plus the system prompt, default agent, web-search behavior, and context-length budget every chat turn uses. This instance’s own crawled index can also be blended into those web-search results, by adding it as a SearXNG engine (see packaging/searxng-engine/README.md) rather than via any separate setting on this page. Found under Chat -> Settings in the admin sidebar.

Enabled turns the Chat mode toggle on the public search page on or off — leave it off and visitors never see a chat option, regardless of anything else here. Base URL is the OpenAI-compatible chat-completions API root, e.g. http://localhost:8000/v1 for a self-hosted vLLM instance; the server posts to
Injected as a system message ahead of every turn, regardless of which agent (if any) is selected. It never appears in the transcript, and it’s the one piece of context never dropped when history gets trimmed to fit the token budget below. Use it for instance-wide instructions that should always apply (tone, scope, disclaimers); leave agent-specific instructions to the Agents page so they only apply when that agent is picked.
Default agent picks one of the agents on Chat -> Agents to specialize every conversation by default; its prompt is injected after the instance-wide prompt above, and a visitor can override the choice per question. Leaving it at (none) means no specialization — only the global prompt applies. The list includes every agent, even ones not yet enabled, so you can line up a default ahead of turning one on.
Search the web is the site-wide default for whether chat turns can search the web; a visitor can flip it per question with the chat page’s own Web toggle. There’s no separate feature toggle beyond this: turning it on makes every MCP server marked “gated by web search” (Chat -> MCP servers) available for that turn — the model still decides whether to actually call web_search or web_fetch. SearXNG base URL points at your self-hosted instance, e.g. http://127.0.0.1:8888; it’s passed to every active MCP server process, so it must be reachable from wherever those run, not just your browser. Result count caps how many results web_search returns per call; 0 means no cap. Keep it generous (50 is the suggested starting point) — too small a cap can leave the model with only a couple of same-domain results, and nothing to fall back to if that domain blocks fetching; lower it only if you specifically need to keep context budget tight.
Max conversation length (tokens) bounds how much conversation — system prompt, active MCP servers’ prompts, and message history combined — gets sent per turn, estimated by character count rather than exact tokenization. When exceeded, older messages drop first, oldest to newest; the most recent message is always kept. Leave at 0 to auto-detect: on save, the server asks the model for its advertised max context and sets the budget to 75% of that. Type an explicit number only for a tighter cap. The donut chart below is a live client-side preview of how the system prompt and MCP prompts currently split the budget — not itself a saved value.
Save writes every field in one request — a full replace, not a per-field patch, except the API key placeholder handled specially above. After a successful save the page reloads its state, which is when a newly stored key’s field goes back to blank-with-placeholder. A negative max conversation length or result count is rejected before saving; any other failure shows an error message in place of “Saved.” rather than silently discarding your edits.
Worth knowing:
- Web search is a gate on MCP servers, not its own feature. If it does nothing, check that a server on Chat -> MCP servers is enabled and “gated by web search.”
- The API key field is always blank on load by design — don’t mistake that for the key being lost.
- Auto-detecting the budget needs Base URL and Model already filled in and reachable; if the probe fails, it falls back to 0 (no trimming) rather than blocking the save.
Configures what the mcp-vision MCP server’s two tools can do with an image attached to a chat turn, or an image URL pasted into one — its own “Save vision settings” button, a separate request from the rest of this page above. Deliberately independent of both the chat endpoint above and search’s own embedding endpoints (Embeddings -> HTTP endpoints), even where Similarity search ends up pointed at the same underlying model search itself uses. Distinct from GPU mode (Vision) below, which is image/video generation, not understanding.
Similarity search lets the vision_similarity tool embed an image and vector-search this instance’s own indexed documents with it — “reverse image search into your own index.” Embedding provider picks which configured HTTP embedding endpoint (Embeddings -> HTTP endpoints) to reuse for this: its own base URL/model/API key, so there’s nothing new to enter here, just a reference. Keep it pointed at the same model search itself uses (visible on the Embeddings page) — a mismatched model still runs without erroring, just produces meaningless results, since the two embedding spaces aren’t comparable. Enabling a provider here never changes whether it contributes to search’s own blended score, and vice versa.
Captioning lets the vision_caption tool describe an image (or answer a question about it) via a configured vision-language chat-completions endpoint — a different capability from Similarity (generation, not embedding/search), almost certainly a different model deployment (an embedding-only model, like the one commonly used for Similarity, cannot do this). Base URL/Model/API key work exactly like the chat endpoint’s own fields above — root URL only (posted to <base_url>/chat/completions), API key blank-means-unchanged with its own “Remove the stored API key” checkbox. A vision-capable hosted model (e.g. IONOS AI Model Hub) is a common choice here when self-hosting a second, vision-capable model alongside the main chat endpoint isn’t worth the GPU capacity.
Worth knowing (Image understanding):
- Both tools independently report themselves unavailable to the model (not an error, just a plain “not configured” message) when their own Enabled toggle is off or unconfigured — enabling one doesn’t require the other.
- The Image analyst agent (Chat -> Agents) is the suggested starting point for using either tool from the chat page.
- Either tool accepts an already-attached file or a plain image URL the model was given (e.g. one the user pasted in chat), never both at once. A pasted URL is fetched directly by mcp-vision, guarded against SSRF the same way crawling/web_fetch are — an internal/private-network URL is always rejected.
A separate capability from Image understanding above: lets the public chat page’s Chat/Vision/Search toggle switch the shared self-hosted GPU between its normal chat role and image/video generation (ComfyUI+LTX) — since both can’t run at once on one GPU’s worth of memory, switching to Vision stops the chat model until switched back. Its own “Save GPU mode settings” button, a separate request from the rest of this page.
Enabled is the master switch: while off, the Vision option is entirely absent from the public chat page’s toggle and every /vision/api/* route returns 404, regardless of anything else here. Control endpoint URL is the GPU-side control service’s (cmd/gpu-control) own base URL, reached over the private LAN only, e.g. http://10.7.226.11:8002 — never a public address. Control endpoint token is sent as an X-Internal-Token header authenticating to that service; blank-means-unchanged with its own “Remove the stored token” checkbox, same convention as every other API key/token field on this page. Switch timeout (seconds) bounds how long a single chat↔vision switch may take before it’s reported as failed — leave at 0 to use the built-in default.
An “Open ComfyUI ↗” link below the Save button opens ComfyUI’s own full web UI directly (proxied through this same control endpoint) — useful for inspecting or debugging a workflow by hand. Available to any signed-in account, not admin-only — running a workflow there bypasses the switch-timeout/dwell/rate-limit safety the public toggle enforces, so treat it as a maintenance tool, not a regular way to generate something. The same link also appears under the public chat page’s own Vision panel — see Search & Chat.
Worth knowing (GPU mode):
- This is intentionally separate from Image understanding above — that’s a chat model reading an image; this is generating one/a video, and the two can be configured (and enabled) completely independently.
- Enabling this has no effect until the GPU-side control service is deployed and reachable at Control endpoint URL — see
docs/architecture/README.mdfor howcmd/gpu-controlfits into the overall deployment.- Because the underlying GPU can only run one workload at a time, switching to Vision mode makes chat briefly unavailable for every user, not just the one who switched — the public chat page surfaces this plainly rather than showing a generic connection error.