diff --git a/public/js/clinicalAssistant.js b/public/js/clinicalAssistant.js index 9cbed0b..6da8a7e 100644 --- a/public/js/clinicalAssistant.js +++ b/public/js/clinicalAssistant.js @@ -115,8 +115,8 @@ import { escapeAttr, escapeHtml, renderAssistantMarkdown, stripSourcesSection } return; } - setBusy(true, 'Searching indexed resources...'); - var loading = appendLoadingMessage('Searching indexed resources', 'Retrieving and synthesizing cited references...'); + setBusy(true, 'Looking up sources...'); + var loading = appendLoadingMessage('Looking up sources', 'Retrieving and synthesizing references...'); streamAssistantResponse({ message: text, diff --git a/src/routes/clinicalAssistant.js b/src/routes/clinicalAssistant.js index 6c82719..c23003f 100644 --- a/src/routes/clinicalAssistant.js +++ b/src/routes/clinicalAssistant.js @@ -292,7 +292,7 @@ router.post('/clinical-assistant/chat/stream', async function(req, res) { res.setHeader('Connection', 'keep-alive'); if (typeof res.flushHeaders === 'function') res.flushHeaders(); streamOpen = true; - sendEvent('status', { message: 'Searching indexed resources...' }); + sendEvent('status', { message: 'Looking up sources...' }); var prepared = await prepareAssistantChat(req.body); if (prepared.direct) { @@ -370,7 +370,7 @@ async function prepareAssistantChat(body) { if (GREETING_RE.test(message)) { return { direct: { 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: [], model: null, search: { skipped: true, reason: 'low_information_input' } @@ -427,7 +427,7 @@ async function prepareAssistantChat(body) { if (sources.length === 0) { return { direct: { 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: [], model: null, search: { totalFound: 0 }