Files
open-webui/src/lib/components/chat
Classic298 323f8da202 fix: show relevance badge for single-source citations (#29647)
A response with exactly one citation never showed its relevance badge, even though the source carried a perfectly valid score. Adding a second citation made the badge appear for that same source, so the score looked like it came and went at random.

calculateShowRelevance hides relevance when a result set mixes distance metrics (cosine in -1..1 next to unbounded L2), since those numbers are not comparable. With a single distance that check degenerates: distances.length - 1 is 0, so the "all but one are out of range" clause matches whatever the value is, and the score is hidden. A lone distance cannot be a mix of two metrics, so it now returns before the outlier check runs.

Sets of two or more distances behave exactly as before, mixed-metric sets are still suppressed.

Fixes #29646
2026-09-04 17:17:14 -04:00
..
2026-09-03 20:22:32 -04:00
2026-08-10 18:52:18 -06:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-08-13 21:51:04 -06:00
2026-08-30 23:56:01 -04:00
2026-08-24 06:25:09 -04:00
2026-09-03 20:22:32 -04:00
2026-08-11 01:25:20 -06:00
2026-08-11 01:25:20 -06:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-09-03 20:22:32 -04:00
2026-06-28 22:35:59 -05:00
2026-09-03 20:22:32 -04:00
2026-07-27 19:39:36 -04:00
2026-07-15 04:52:06 -04:00
2026-07-15 04:25:51 -04:00
2026-07-27 19:24:03 -04:00
2024-10-23 20:18:51 -07:00
2026-07-14 01:39:40 -04:00
2026-08-25 15:15:18 -04:00
2026-08-08 15:47:10 -06:00