FabConnect Assist: alarm and fleet assistant
Answers drafted by your own model from FabConnect’s records, with every record cited.
FabConnect Assist: drafted by an AI model from FabConnect’s records; check the cited records. Tested with Qwen3-8B against FabConnect’s simulated tools. It is off until it is enabled on the gateway.
The assistant answers questions in the operator console: Explain this alarm on an alarm’s details, Ask your fleet on the FabConnect Assist page, and Draft handover on Shift Handover. The gateway sends the question to a model your site runs, offers it FabConnect Assist’s 15 read-only tools (the same list as MCP), runs the tool calls itself with the signed-in user’s organisation and read permissions, and returns the answer with the tool calls it made and the records it cited. It never sends anything to a tool.
FabConnect ships no model. You run an OpenAI-compatible model server inside your network, or use the one we set up on site.
Turning it on
assist:
assistant:
enabled: true # default false
max_rounds: 6
max_tool_calls: 8
max_tokens: 12000
timeout: 300s
max_concurrent: 2 # match llama-server --parallel
model:
endpoint: http://127.0.0.1:8081/v1
name: qwen3-8b
timeout: 180s
disable_thinking: true # default false; true is the tested setting
allow_external: falseOr set FABCONNECT_ASSIST_ASSISTANT_ENABLED=true, FABCONNECT_ASSIST_MODEL_ENDPOINT and FABCONNECT_ASSIST_MODEL_NAME, and restart the gateway. assist.assistant.enabled is separate from assist.mcp.enabled. An optional assist.model.api_key (or FABCONNECT_ASSIST_MODEL_API_KEY_FILE) is sent as a bearer token and never logged. The gateway posts to <endpoint>/chat/completions with tools. The endpoint may not carry a query string, a fragment or credentials.
Where data may go
In release mode, assist.model.endpoint must be a loopback or private-network address, checked at start (every address a host name resolves to) and on every connection; anything else stops the gateway from starting. assist.model.allow_external: true allows an outside endpoint and logs a warning at start that names its host. This is how you bring your own model: point the endpoint at a server inside your network.
Who may ask
Asking needs assist:ask. The built-in operator and engineer roles have it, admin through *; viewers do not. Each tool call still checks the user’s own read permission (equipment:read, alarms:read, events:read or messages:read). GET /api/v1/assist/assistant answers any signed-in user: whether the assistant is enabled and running and whether that user may ask, with the label when it is enabled, and the model and limits only to someone who may ask. The console shows the assistant only when it is enabled and you may ask.
One question at a time
The gateway sends the model at most assist.assistant.max_concurrent questions at once (default 2, 1 to 64), across the whole gateway (match llama-server --parallel), and one question at a time per user. A question that finds every slot taken waits up to 10 seconds, inside its own timeout, and then gets 429 ASSIST_BUSY with Retry-After; the console says “FabConnect Assist is answering other questions; try again in a minute.”
Citations, limits and audit
- A cited id the tools never returned is marked not found in the records read. The console links each cited record to its page where it has one
- Every answer cites record ids. An id counts as read only when a tool’s sources block or a record’s own id field returned it, with the same record type
- One question is bounded by
max_rounds,max_tool_calls(at least 3),max_tokensandtimeout, and the answer says which limit it reached. The gateway’s own first reads count towardmax_tool_calls: Ask your fleet reads the equipment list (1), Explain this alarm the alarm’s context and its tool’s events (2), Draft handover the shift summary and the window’s alarms (2) max_tokens(default 12000) has a floor worked out at start: the tool definitions, 1024 tokens kept for the answer, and 3000 more, about 6000 with the 15 tools. A lower value is raised to it, with a warning- When the model server is down or slow, the routes answer 503
ASSIST_MODEL_UNAVAILABLEor 504ASSIST_MODEL_TIMEOUTand the console says so. An error never shows the person asking the model endpoint’s address; the gateway logs it on the server only - Explain this alarm answers 404
NOT_FOUNDfor an alarm that does not exist or that you may not read (alarms:read), 503ASSIST_RECORDS_UNAVAILABLEwhen the records could not be read, and 500ASSIST_TOO_LARGEwhen the alarm’s context would not fit inmax_tokens - Each question is one audit record,
assist.ask: the user, the feature (explain, ask or handover), the tool calls with their arguments and outcomes, and the cited ids. The question is kept to 500 characters; the answer is never stored. An answer that cannot be audited is withheld, and a question the browser abandons is recorded as cancelled by the client - A handover draft is a draft: the shift lead edits it and saves it through the usual handover note. Nothing is saved automatically
The routes
GET /api/v1/assist/assistant, POST /api/v1/assist/ask, POST /api/v1/assist/alarms/{id}/explain and POST /api/v1/assist/handover/draft, all needing assist:ask.
A tested model setup
What was tested, against FabConnect’s simulated tools: llama.cpp’s llama-server running the Qwen3-8B Q4_K_M GGUF on one Intel Arc laptop GPU (Vulkan), with these settings:
llama-server --model Qwen3-8B-Q4_K_M.gguf --jinja --ctx-size 16384 --n-gpu-layers 99--jinja is what tool calls need. On the gateway: assist.model.disable_thinking: true, assist.model.timeout: 180s, assist.assistant.timeout: 300s, assist.assistant.max_concurrent: 2, and the other limits at their defaults. On that hardware the tested answers took about 20 s to 2 minutes each; explanations took about 2 minutes.