LLARS Chat¶
As of: 2026-10-15 · T-76, T-87–T-93, LLARS links, web search
In the LLARS chat you talk to LLARS, the platform's scientific assistant, and to other chatbots shared with you. You can hand in documents and images, for example a paper you are reviewing, and choose the model that answers. Whenever LLARS says something about an uploaded file, it names the location, for example “(paper.pdf, S. 3)”.
Open the chat from the “Chatbot” tile on the home page or directly at
/chat. /chat?chatbot=standard_admin opens LLARS right away. Without parameters,
/chat opens your last available bot, falling back to LLARS and then the first
active bot. If that bot is still writing an answer, that conversation opens;
otherwise the conversation you last had open (also in another tab of the same
browser), and an empty chat the first time. ?conversation=<id> opens exactly that conversation. A single click
in the history opens a conversation, including one belonging to a different bot.
The empty chat¶
As long as a conversation has no message yet, the LLARS polar bear sits in the middle with the chatbot's name and greeting. The input box is right below it. As soon as you send the first message, it moves to the bottom and the history appears above it. On phones the input box always stays at the bottom so it is within thumb reach and above the on-screen keyboard.
The input box¶
The input box is a card with three areas:
| Area | Meaning |
|---|---|
| Top | The attached files as small cards, below them notes on files that were not accepted. |
| Middle | Your text. Enter sends the message, Shift+Enter or Ctrl+J starts a new line. |
| Bottom | On the left “+” to choose files and next to it the “Web search” toggle (see below), on the right the model choice and the green send button with the arrow pointing up. |
Below the card a line lists the possible files and reminds you that you can also drag them in or paste them with ⌘V or Ctrl+V. The send button stays pale while there is nothing to send or a file is still uploading.
Choosing the model¶
Next to the send button you see the model of the next answer, for example “Mistral Medium 3.5 (128B)”. A click opens the list of all models available to you in the chat:
- A check mark shows your choice, “Default” the chatbot's model.
- “Images” means the model can read images you send along.
- “Reasoning” means the model thinks longer before answering; LLARS does not show the reasoning itself.
The chat only offers models run by the AI centre (KIZ), so your documents are not sent to external providers. The default for LLARS is Mistral Medium 3.5 (128B), which also reads images. Your browser remembers the choice per chatbot; after a reload it is still set. If an answer comes from a model other than the default, its name appears in small print next to the answer's time.
Attaching files¶
Allowed are PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx) and images (PNG, JPEG, WebP, GIF). Three ways lead to the same result:
- “+” in the input box opens the file picker,
- Drag and drop: drag a file anywhere onto the chat area. A green dashed frame “Drop file here” shows that LLARS accepts it.
- Paste with ⌘V (Mac) or Ctrl+V (Windows, Linux), for example a screenshot from the clipboard. Copied text stays text: if you copy a paragraph from Word, you paste the paragraph and not a picture of it.
Each file uploads immediately and appears as a small card: images with a preview, documents with a coloured badge (PDF, DOCX, XLSX, PPTX) and their length, such as “12 pp.”, “8 slides” or “3 sheets”. The × on the card removes the file again. If the card says “truncated”, the document is longer than the chosen model can read at once; LLARS then reads the beginning and tells you when a location you ask about is not included. Several files in one message share the space fairly: each gets about the same amount, a short file fits in completely, and the longer ones share the rest.
Even before sending, a yellow note above the input box warns you when the files together (including those uploaded earlier in this conversation) do not fully fit into the window of the chosen model, for example: “The documents (≈ 25 pages) do not fully fit into the window of Qwen3.8 Flash Next (FP8) …”. It names the largest model they fit into, with a button to switch (“Choose Mistral Medium 3.5 (128B)”). You can still send; LLARS then shortens every file evenly.
Limits: at most 10 MB per file, 10 files per message and 20 per conversation. Files that do not fit are rejected with a note in the input box:
| Note | What to do |
|---|---|
| “… is larger than 10 MB.” | Shrink or split the file. |
| “… is a legacy Office format (.doc, .xls, .ppt).” | Save it as .docx, .xlsx or .pptx in Word, Excel or PowerPoint. |
| “… this file type is not supported.” | Save it as a PDF or an image. |
| “… is damaged or cannot be read.” | Export the file again. |
| “… was not attached: at most 10 files per message …” | Spread the files over several messages. |
Scanned PDFs without a text layer yield no text because LLARS has no text recognition yet. In that case, send the pages as images.
Figures in PDFs¶
If a PDF contains figures stored as images (photos, embedded charts, screenshots), the card shows how many, for example “12 pp. · 2 fig.”. With a model marked “Images”, up to two figures per PDF are sent along as images, together with uploaded images at most four per message; uploaded images come first. If your question names a page or figure (“What does Figure 2 show?”, “the chart on p. 5”), LLARS takes exactly that one, otherwise the first ones in the document. The model can then read values off the figure and cites it as “(paper.pdf, S. 5, Abbildung)”.
Limits: only images of at least 150 pixels per side that cover at least 5 % of the page count as figures (logos and icons do not), at most 12 per PDF. Drawn charts (vector graphics, as LaTeX, Matplotlib or Excel often write into a PDF) are not images: of those, the model only knows the text inside them. Each figure takes about as much room in the model’s window as four pages of text; the document is cut correspondingly earlier. Models without “Images” get the text only, plus a note that figures exist. PDFs uploaded before 2026-11-02 have no figure directory.
Files stay stored in the conversation so that follow-up questions still know the document. Deleting the conversation deletes its files as well.
Web search¶
For questions that need current information, such as a conference's submission deadline, LLARS can look things up on the web. The “Web search” toggle with the globe sits in the input box between “+” and the model choice; on phones only the globe is shown. It only appears when web search is enabled on your LLARS instance.
- One click turns web search on for the next message. The toggle turns green and shows a check mark, and the line below the input box says what leaves LLARS. After sending it is off again, so every further search is a new, deliberate decision. Switching the chat or the chatbot also turns it off, and “Continue writing” never searches the web.
- While searching, the answer bubble shows what is happening: “Searching the web …”, “Reading 3 pages …” and “Web pages read, answer coming …”. The search takes about 25 seconds at most.
- Evidence: LLARS backs statements from the web with [W1], [W2] and so on. A click opens the page in a new tab. Below the answer, the cited web sources are listed with title and domain; these entries open the page in a new tab as well.
- No result: If the search finds nothing useful, LLARS answers without web sources, and below the answer it says “Web search found nothing – this answer does not rely on web sources.”
What leaves LLARS and what does not. LLARS builds a short search query from your question and sends only that query to a search engine; for a follow-up question your last messages may feed into the query. The LLARS server then fetches at most three of the pages found. Your files and their content never leave LLARS, not even in excerpts. The pages are read by the AI centre's model. Still, only turn on web search when your question contains nothing confidential, because the query itself goes to an external service. LLARS treats whatever is written on a fetched page as information, never as an instruction.
Which links are clickable. In the answer text, external links stay
clickable only if they point to a web source of this answer or to the AI centre
(ki-zentrum.bayern) or TH Nürnberg (th-nuernberg.de). Other addresses appear
as text. This way neither a manipulated web page nor an invented link can lead
you to a foreign site.
Locations and sources¶
LLARS distinguishes three kinds of evidence:
- Locations in your files appear in round brackets, for example “(paper.pdf, S. 3)”, “(folien.pptx, Folie 4)” or “(daten.xlsx, Blatt „Ergebnisse“, Zeile 12)”. Click a citation, or focus it and press Enter/Space, to open the document on the right; on phones it opens full screen. “Text” jumps to the page, slide, sheet row or section. If the citation includes a short quotation, that passage is highlighted regardless of case or whitespace differences. Without a quotation or match, the whole segment is highlighted.
- Sources from the LLARS documentation appear as a number in square brackets, for example [1]. A click opens the source in the side panel; below the answer LLARS lists the cited sources.
- Web sources from the web search appear as [W1], [W2] … in a turquoise badge and open the page in a new tab (see “Web search”).
Sources only when cited. Below an answer you only see the sources that the answer actually cites in its text. An e-mail, a code example or an answer without evidence therefore has no source list, even if LLARS searched the documentation. A number inside code, a formula or a link text does not count as a citation. This also applies to older conversations in the history that still stored every source found.
The “Original” tab displays PDFs at the cited page and images directly. “Open in new tab” opens the original separately; Office files can be downloaded through this link. Older attachments without a saved original still offer their extracted text, and the Original tab is hidden. A note explains if the cited location is missing. Files sharing the same name are not silently confused when they cannot be uniquely identified. Use “Close document” or Escape to return to the chat. Documents and sources share the right panel; drag the divider to resize it on desktop.
Links in LLARS¶
LLARS takes you straight to the right place in the platform. Ask, for example, “Where can I evaluate?” and LLARS answers with a link to Evaluation and offers your scenarios, so you can continue rating in the right scenario right away. These LLARS links appear as a green-outlined badge with a small arrow. A click opens the page in LLARS without reloading. Hold ⌘ or Ctrl, or use the middle mouse button, to open the link in a new tab as usual; with the keyboard, reach it with Tab and open it with Enter.
LLARS only links pages and scenarios you are allowed to see and use. The list comes from the server when you open the chatbot and follows your permissions and your scenarios. A link to a page or scenario outside this list appears as plain text only, in older answers in the history as well. If a scenario is added after you opened the chat, the chat refreshes the list after the next answer and re-renders the answers on screen. The link itself grants no rights: the page checks your access when it opens, as always.
Links to the LLARS documentation (/mkdocs/…) open in a new tab. Links to other
websites are only clickable if they point to a web source of the answer, the AI
centre or TH Nürnberg (see “Web search”); they then open in a new tab as well.
Tables and formulas¶
Tables in answers have visible cell borders and a shaded header. Wide tables scroll horizontally within the answer. Consecutive separators appear as a single stronger line with side margins.
LaTeX formulas are typeset: $x^2$ and \(x^2\) inline, $$x^2$$ and
\[x^2\] as separate blocks. Code retains the literal characters. Currency
amounts such as “5 $ and 10 $” remain text.
Continuing truncated answers¶
When an answer reaches its length limit, “The response has reached the length limit.” appears below it. “Continue writing” sends this message in the same conversation: “Please continue your last response exactly where it cuts off, without repeating anything.” The notice remains after reloading. Your own draft and unsent attachments stay in the input box and are not included in this request.
The answer keeps running when you leave the page¶
You do not have to wait on the chat page until LLARS is done. Send your question and feel free to switch to another page: the model keeps working. In the sidebar, a pulsing dot with “replying …” sits next to the conversation while the answer is being written.
When you come back, the conversation is selected again, your question is there, and the answer keeps running visibly or is already finished. This also holds when you reload the page or open the chat in a second tab: both join mid-text. If the answer is already finished, a second tab shows the same conversation as the first, because LLARS remembers the last opened conversation per chatbot in your browser (only its number, no content). Signing out clears this memory; a conversation that has been deleted in the meantime drops out silently and the chat opens empty.
While an answer is still being written in a conversation, sending is locked there; below the input box it says “A reply is still running in this conversation.” You can keep asking in another conversation meanwhile. If an answer breaks off, for example because the server restarts, the text so far is kept and “The reply was interrupted.” appears below it.
For developers¶
API (contract §2)¶
| Method & path | Purpose |
|---|---|
GET /api/chatbots/<id>/capabilities |
vision, default_model_id, models[] (model_id, display_name, supports_vision, supports_reasoning, context_window), attachments (limits, accepted) and web_search (bool; the input box shows the toggle only for true). The frontend also reads the old shape under capabilities. |
POST /api/chatbots/<id>/attachments |
multipart files (≤ 10), optional session_id/conversation_id → 201 {attachments[], rejected[{filename, reason}]}. The frontend uploads each file on its own. |
DELETE /api/chatbots/<id>/attachments/<aid> |
Remove a card before sending. |
GET /api/chatbots/conversations/<cid>/attachments |
Attachments of a conversation, in case the history does not carry them on the messages. |
GET /api/chatbots/attachments/<aid>/text |
{success, id, filename, kind, doc_type, pages, slides, sheets, segments: [{marker, label, page, slide, sheet, row, text}]} for the text view. |
GET /api/chatbots/attachments/<aid>/file |
Fetch an authenticated blob; 404 with code: ORIGINAL_UNAVAILABLE leaves only text available. Revoke object URLs on switching/closing. |
Socket chatbot:stream |
additionally model_id?, attachment_ids? and web_search? (only true, otherwise the field is absent); chatbot:complete returns model_id, web_sources and web_search, errors arrive as chatbot:error {code, message} (MODEL_FORBIDDEN, ATTACHMENT_NOT_FOUND, MODEL_NO_VISION). |
GET /api/chatbots/<id>/navigation |
{success, pages: [{path, title}], scenarios: [{id, name, evaluate_path, manage_path}]} — the allowlist of LLARS links, the same list as the navigation block in the prompt (contract tickets-2026-10-15.md §6 E10). |
chatbot:complete and REST /chat return finish_reason and truncated.
finish_reason: 'length' identifies a truncated answer; from history, the frontend
reads stream_metadata.truncated.
Reason codes for rejected files: too_large, type_not_allowed,
legacy_office, corrupt, too_many, empty; plus, in the client,
upload_failed and unavailable (route missing, HTTP 404). Every code has a
message under chat.attachments.reasons.<code>.
A message with files but no text sends the visible default text
chat.attachments.defaultPrompt, because the socket requires a non-empty
message. Without a socket the same request goes as JSON to
POST /api/chatbots/<id>/chat.
Web search and sources (E12/E13, §7.1)¶
| Field / event | Meaning |
|---|---|
web_search: true |
In chatbot:stream and REST /chat (JSON true, multipart 'true'), only while the toggle is on. ChatWithBots.vue resets the toggle after every send and on chat or bot changes; “Continue writing” never sends web_search. |
chatbot:status |
{code, count?} with web_searching, web_reading, web_done, web_failed; stored as webStatus on the running answer and shown in the bubble until the first text arrives (chat.webSearch.status.*). Unknown codes and events after completion are ignored. |
web_sources |
[{id: "W1", title, url}] in chatbot:complete, in the REST response and in the history under stream_metadata.web_sources; they become [Wn] and the web source list. |
web_search |
{used, ok} in the same payloads (history: stream_metadata.web_search); used && ok === false shows chat.webSearch.failedNote. |
chatbot:sources |
Now arrives after the streaming with the cited sources and replaces the sources of the last answer (an empty list as well). |
utils/chatSources.js checks the web sources (normalizeWebSources: id
W<n>, http(s) only, no credentials in the URL, title on one line and
shortened) and, after DOMPurify, links and locations, marks the evidence: [n]
becomes span.footnote-ref, [Wn] an a.web-ref with target="_blank" and
rel="noopener noreferrer", the title only as an attribute. The same function
reports which numbers are cited; only those appear as chips or in
messages/ChatWebSources.vue. A [n] inside code, pre, a, button or
.katex does not count, and elements from model HTML with the classes
footnote-ref/web-ref lose them. ChatMessageList.vue caches the rendering per
message (content, sources, web sources, allowlist and locale as the key), so a
streaming chunk only rebuilds the message that changed.
LLARS links (E11)¶
After DOMPurify, utils/chatLinks.js post-processes the answer:
| Link | Rendering |
|---|---|
| Internal path on the allowlist | Chip a.llars-link with an arrow icon and an aria-label from chat.links.openInApp; a plain left click emits app-link, and ChatWithBots.vue calls router.push. Modifier and middle clicks stay with the browser. |
Internal path not on the allowlist, /api/… |
Anchor removed, the text stays. |
/mkdocs/… |
Link with target="_blank" and rel="noopener noreferrer" (nginx, not an SPA route). |
Other websites whose URL is in the message's web_sources or whose host is on TRUSTED_LINK_HOSTS (ki-zentrum.bayern, th-nuernberg.de, each with subdomains) |
Link with target="_blank" and rel="noopener noreferrer"; compared without scheme, www., trailing slash and hash (externalUrlKey). |
All other external links, URLs with credentials, tel: and other schemes |
Anchor removed, the text stays (§7.1). |
mailto: |
Only if every address has a domain on the fixed list, then without a new tab; otherwise text. |
Internal means: the path starts with / but not with // or /\ (like
_safeRedirectPath in router.js), and is neither /api nor /mkdocs.
Relative links and absolute links to the own origin are resolved first and
checked the same way. The comparison is exact on path plus query; a trailing
slash and the hash do not count. Model HTML carrying the llars-link class
loses it.
composables/useChatNavigation.js loads the list on every bot switch together
with /capabilities and caches it per bot for the page visit (a bot switch
reloads after 5 minutes, a completed answer after one minute). 404 (route
missing), 403 and network errors silently yield an empty list; all internal
links are then text. The list is reactive, so rendered messages are re-evaluated
after a reload. The allowlist is UX; router guard and server remain the
permission boundary.
Frontend files¶
llars-frontend/src/components/ChatWithBots.vue # flow, drop zone, sending
llars-frontend/src/components/ChatWithBots/composables/useChatAttachments.js # upload, checks, drag, paste
llars-frontend/src/components/ChatWithBots/composables/useChatModel.js # model list, choice per bot, capabilities
llars-frontend/src/components/ChatWithBots/composables/useChatNavigation.js # allowlist of LLARS links per bot
llars-frontend/src/components/ChatWithBots/composables/chatSessionStore.js # reply state per conversation, listeners on the shared socket (T-154)
llars-frontend/src/components/ChatWithBots/sidebar/ChatSidebar.vue # history with the “replying …” mark (mobile: mobile/MobileChatDrawer.vue)
llars-frontend/src/components/ChatWithBots/utils/chatLinks.js # check and render links (chip, text, new tab, fixed host list)
llars-frontend/src/components/ChatWithBots/utils/chatSources.js # mark [n]/[Wn], find cited sources, check web sources
llars-frontend/src/components/ChatWithBots/input/ChatInput.vue # composer card with the “Web search” toggle
llars-frontend/src/components/ChatWithBots/input/ChatModelPicker.vue # model pill with menu
llars-frontend/src/components/ChatWithBots/input/ChatAttachmentChips.vue # cards
llars-frontend/src/components/ChatWithBots/input/ChatDropOverlay.vue # “Drop file here”
llars-frontend/src/components/ChatWithBots/messages/ChatEmptyState.vue # polar bear
llars-frontend/src/components/ChatWithBots/messages/ChatMessageList.vue # locations, footnotes, model name, LLARS links, web search status
llars-frontend/src/components/ChatWithBots/messages/ChatWebSources.vue # list of cited web sources
Reply rooms and resuming (T-154, 2026-11-02)¶
Since T-154 the chat uses the app's shared socket (services/socketService.js)
instead of its own connection, and nothing disconnects it when the page is left.
composables/chatSessionStore.js is a module singleton: it attaches its listeners
to the socket once, keeps messages, “is replying” and the timeout per conversation,
and survives the unmount of ChatWithBots.vue. useChatSocket.js is only a thin
wrapper around it; disconnectSocket() deliberately does nothing.
| Event / field | Frontend behaviour |
|---|---|
chatbot:response {conversation_id, content, offset} |
offset counts the visible characters before the chunk in UTF-16 units (like JavaScript String.length). A chunk behind the current state is a duplicate and is dropped; a gap fetches a snapshot via chatbot:resume. |
chatbot:complete {final_text, message_id} |
final_text replaces the streamed text. |
chatbot:resume → chatbot:snapshot {status, text, offset} |
Sent when a conversation is opened, on every (re)connect and when the tab becomes visible again. running shows the text so far as a streaming bubble. none ends an answer whose end the tab missed and reloads the history. |
chatbot:join_overview · chatbot:reply_started/finished |
These events feed the sidebar mark for all of the user's conversations. reply_finished with status interrupted or error sets interrupted on the answer. |
REST replying (list) · pending_reply (history) |
The list sets the mark after a reload. The history shows the running answer (status: running), followed by live chunks from offset. A stale run (status: interrupted) appears as an interrupted answer. stream_metadata.interrupted marks stored partial answers. |
chatbot:error {code: REPLY_IN_PROGRESS} |
Shown as chat.errors.replyInProgress. FORBIDDEN on resume stays silent and is not retried. |
The 120 s timeout applies per conversation, and every event resets it. When it
expires, the store asks via resume whether the answer is still alive (the server
keeps the heartbeat). Only without running within 15 s does the answer end with a
timeout. Logout and auth redirects clear the store (resetChatSessionStore, called
in composables/useAuth.js). Because access tokens only last 10 minutes,
chatbot:stream, chatbot:resume and chatbot:join_overview send the current token
along. The server uses the connection's token first and falls back to this field only
without a valid connection token. The title of a new conversation only arrives after
reply_finished, with chatbot:title_complete.
The store also keeps the last opened conversation per bot in localStorage under
llars.chat.lastConversation.<username> (JSON {botId: conversationId}, digit ids
only, T-154b of 02.11.2026). When the storage is readable it wins over the tab's RAM;
a 404 while loading the remembered conversation silently removes the entry, and
resetChatSessionStore removes every llars.chat.lastConversation.* key on logout.
Markdown helpers live in utils/chatMarkdown.js, citation logic in
utils/attachmentCitations.js, and the panel in panels/DocumentPanel.vue with
composables/useDocumentPanel.js (all under ChatWithBots/).
Tests: tests/App.routerViewKey.spec.js (CHAT_NAV_) and
tests/components/ChatWithBots/ (CHAT_NAV_, CHAT_MD_, CHAT_TRUNC_, CHAT_DOCPANEL_ alongside CHAT_ATT_, CHAT_MDL_, CHAT_INP_,
CHAT_EMPTY_, CHAT_MSG_, CHAT_DLG_, CHAT_LINK_, CHAT_WEB_ in webSearch.spec.js and
ChatWithBots.websearch.spec.js, CHAT_SRC_ in chatSources.spec.js, since T-154 CHAT_STORE_ in
chatSessionStore.spec.js, CHAT_RESUME_ in ChatWithBots.resume.spec.js, CHAT_SIDEBAR_REPLY_ in
ChatSidebar.replying.spec.js) and tests/locales/chatKeys.spec.js (CHAT_I18N_).