fix: simplify assistant lookup wording
This commit is contained in:
parent
cd862192b2
commit
dca22d417b
2 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Reference in a new issue