mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
RAG relevance percentage is misleading (inverse score) - High percentage scores for irrelevant chunks and vice-versa #2632
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?
Originally created by @clang88 on GitHub (Nov 13, 2024).
Bug Report
Installation Method
Docker via ghcr.io/open-webui/open-webui:main
Environment
Open WebUI Version: 0.3.35
Operating System: Ubuntu 22.04
Browser (if applicable): Chrome 130
Confirmation:
Expected Behavior:
Percentage score for relevance should be high, if semantic distance is low (score is close to 1). Percentage score for relevance is low, if semantic distance is high (score is close to 0).
Actual Behavior:
Highly relevant chunks are marked as "low relevance" with a low percentage score (also colored in red), wheras irelvant chunks are marked with a high percentage score (green).
Description
Bug Summary:
Relevance percentage score is misleading, because irrelevant chunks have high percentage and highly relevant scores have low percentage.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):


Highly relevant chunk (answers exactly the question "How to create an entry in Kalcium Quickterm":
Irrelevant chunk (just a table of contents):
Additional Information
The issue is likely in this piece of code:
src/lib/components/chat/Messages/CitationsModal.svelte
It should be like this: