[GH-ISSUE #22298] feat: Conflict between Rerank Score Threshold and Direct File Uploads in Chat #74295

Closed
opened 2026-05-13 07:00:36 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @inoue583 on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22298

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

Description:
I am using Open WebUI v0.8.5 and noticed that the Score Threshold in RAG settings globally affects direct file uploads in the chat interface.

The Issue:
When I set the Score Threshold to a high value (e.g., 0.7) to maintain high precision for Knowledge Base retrieval, direct file uploads (even small .txt files) often fail to be recognized by the LLM.

Specifically:

  • Prompt tokens remain very low (around 12 tokens).
  • The system returns "No source found".
  • This happens because the "Summarize this file" prompt doesn't always have a high semantic similarity score with the file content, causing the Reranker to filter out the entire document.

Current Workaround:
Enabling Full Context Mode or lowering the Score Threshold to 0.0 fixes the issue, but this compromises the retrieval quality for larger Knowledge Bases.

Desired Solution you'd like

Would it be possible to bypass the Rerank Score Threshold for files directly attached to the prompt? Or perhaps treat direct uploads as "Full Context" by default while keeping the Rerank settings for Knowledge Base queries?

Alternatives Considered

No response

Additional Context

No response

Originally created by @inoue583 on GitHub (Mar 6, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22298 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description **Description:** I am using Open WebUI v0.8.5 and noticed that the Score Threshold in RAG settings globally affects direct file uploads in the chat interface. **The Issue:** When I set the Score Threshold to a high value (e.g., 0.7) to maintain high precision for Knowledge Base retrieval, direct file uploads (even small .txt files) often fail to be recognized by the LLM. **Specifically:** - Prompt tokens remain very low (around 12 tokens). - The system returns "No source found". - This happens because the "Summarize this file" prompt doesn't always have a high semantic similarity score with the file content, causing the Reranker to filter out the entire document. **Current Workaround:** Enabling Full Context Mode or lowering the Score Threshold to 0.0 fixes the issue, but this compromises the retrieval quality for larger Knowledge Bases. ### Desired Solution you'd like Would it be possible to bypass the Rerank Score Threshold for files directly attached to the prompt? Or perhaps treat direct uploads as "Full Context" by default while keeping the Rerank settings for Knowledge Base queries? ### Alternatives Considered _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#74295