fix: simplify assistant lookup wording

This commit is contained in:
Daniel 2026-05-07 17:44:04 +02:00
parent afd6f45b85
commit c3e58cd5c5
2 changed files with 5 additions and 5 deletions

View file

@ -115,8 +115,8 @@ import { escapeAttr, escapeHtml, renderAssistantMarkdown, stripSourcesSection }
return; return;
} }
setBusy(true, 'Searching indexed resources...'); setBusy(true, 'Looking up sources...');
var loading = appendLoadingMessage('Searching indexed resources', 'Retrieving and synthesizing cited references...'); var loading = appendLoadingMessage('Looking up sources', 'Retrieving and synthesizing references...');
streamAssistantResponse({ streamAssistantResponse({
message: text, message: text,

View file

@ -292,7 +292,7 @@ router.post('/clinical-assistant/chat/stream', async function(req, res) {
res.setHeader('Connection', 'keep-alive'); res.setHeader('Connection', 'keep-alive');
if (typeof res.flushHeaders === 'function') res.flushHeaders(); if (typeof res.flushHeaders === 'function') res.flushHeaders();
streamOpen = true; streamOpen = true;
sendEvent('status', { message: 'Searching indexed resources...' }); sendEvent('status', { message: 'Looking up sources...' });
var prepared = await prepareAssistantChat(req.body); var prepared = await prepareAssistantChat(req.body);
if (prepared.direct) { if (prepared.direct) {
@ -370,7 +370,7 @@ async function prepareAssistantChat(body) {
if (GREETING_RE.test(message)) { if (GREETING_RE.test(message)) {
return { direct: { return { direct: {
success: true, success: true,
answer: 'What clinical question would you like me to look up in the indexed pediatric resources?', answer: 'What clinical question would you like me to look up?',
sources: [], sources: [],
model: null, model: null,
search: { skipped: true, reason: 'low_information_input' } search: { skipped: true, reason: 'low_information_input' }
@ -427,7 +427,7 @@ async function prepareAssistantChat(body) {
if (sources.length === 0) { if (sources.length === 0) {
return { direct: { return { direct: {
success: true, success: true,
answer: 'I could not find relevant indexed Nextcloud resources for that question. Try a more specific clinical term, diagnosis, medication, age group, or textbook topic.', answer: 'I could not find relevant sources for that question. Try a more specific clinical term, diagnosis, medication, age group, or textbook topic.',
sources: [], sources: [],
model: null, model: null,
search: { totalFound: 0 } search: { totalFound: 0 }