mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 00:45:12 -05:00
feat: allow negative values for the Relevance Threshold setting (#33330)
The Relevance Threshold field in the Documents settings refused negative values, so admins whose reranker returns raw scores (which can go below zero) could not set a useful threshold, and a negative RAG_RELEVANCE_THRESHOLD made the whole Documents settings page impossible to save while hybrid search was on. The server already stores and applies negative thresholds; only the field blocked them. The field now takes negative values in the same 0.01 steps as before, its help text says they are valid for rerankers that return raw scores outside the 0 to 1 range, and the hover hint asking for a value between 0 and 1 is gone. Nothing changes for 0 and above, and 0 still means no threshold. Closes #29888
This commit is contained in:
1 parent
e49ff5df64
commit
34ef99dbfb
2 files changed
+1
-3
No files matched your search
@@ -1431,8 +1431,6 @@
|
||||
placeholder={$i18n.t('Enter Score')}
|
||||
bind:value={RAGConfig.RELEVANCE_THRESHOLD}
|
||||
autocomplete="off"
|
||||
min="0.0"
|
||||
title={$i18n.t('The score should be a value between 0.0 (0%) and 1.0 (100%).')}
|
||||
/>
|
||||
</AdminSettingField>
|
||||
|
||||
|
||||
Reference in new issue
Block a user