mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
[PR #5989] [MERGED] enh: citations show relevance score - compact citation view #8602
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/5989
Author: @jannikstdl
Created: 10/7/2024
Status: ✅ Merged
Merged: 10/17/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (10+)
86caca4enh: show source documents vector distance + cleaner source viewb105efaenh: append citations with distance scores9fc813cfix: only append if distances are available209948astyling73c2911fix: do not toggle collapsible if you click on a citation89c77f0chromadb switch to cosine similarity741230bfix9d4d964only show relevance pertentage score if distances are in cosinus silimarity range0bebc89finalizing fixes & additionsf47c9c6Merge branch 'upstream-dev' into dev📊 Changes
6 files changed (+289 additions, -70 deletions)
View changed files
📝
backend/open_webui/apps/retrieval/utils.py(+8 -7)📝
backend/open_webui/apps/retrieval/vector/dbs/chroma.py(+8 -2)📝
src/lib/components/chat/Messages/Citations.svelte(+201 -49)📝
src/lib/components/chat/Messages/CitationsModal.svelte(+66 -8)📝
src/lib/components/common/Collapsible.svelte(+3 -3)📝
src/lib/i18n/locales/de-DE/translation.json(+3 -1)📄 Description
Description
This PR includes the following key changes:
Sorted Citations: Citations under the message are now sorted by relevance (e.g., source 1, source 2...).-> Already implemented in the backendRelevance Score for Citations:

Compact Source Display:
https://github.com/user-attachments/assets/848300f3-edef-4074-b2d5-d5ba9c680714
Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.