feat(UI): Show the search query that was used for sources.

Tweaked the search retriever prompt to give better responses.
This commit is contained in:
Willie Zutz 2025-05-07 01:15:33 -06:00
parent 756d926246
commit 0fa4fc7f7a
5 changed files with 61 additions and 6 deletions

View file

@ -278,6 +278,12 @@ const MessageBox = ({
Sources
</h3>
</div>
{message.searchQuery && (
<div className="mb-2 text-sm bg-light-secondary dark:bg-dark-secondary rounded-lg p-3">
<span className="font-medium text-black/70 dark:text-white/70">Search query:</span>{' '}
<span className="text-black dark:text-white">{message.searchQuery}</span>
</div>
)}
<MessageSources sources={message.sources} />
</div>
)}