mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #18348] issue: v0.6.33 RAG 'Focused Retrieval' mode is ignored, always sending the entire document context when searching collections #105563
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 @dcastell1 on GitHub (Oct 15, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18348
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.33
Ollama Version (if applicable)
No response
Operating System
Debian GNU/Linux 12 (bookworm)
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When a knowledge base collection is selected using the # command and the retrieval mode is set to "Using Focused Retrieval", the system is expected to perform a targeted, relevance-based search against the collection's content and retrieve only the top-k most relevant chunks, where k is the value configured in the Admin Settings.
It must inject only these selected chunks—not the entire file content—into the context sent to the model for generating a response.
Actual Behavior
Currently, the retrieval mode toggle is non-functional. Regardless of whether "Using Focused Retrieval" or "Using Entire Document" is selected, the system defaults to the "Entire Document" behavior.
The application consistently sends the full content of all files within the selected knowledge base collection to the model's context. This happens even when "Focused Retrieval" is explicitly enabled.
As a result:
This issue was non-existent in previous version v0.6.32
Steps to Reproduce
Logs & Screenshots
aks_openwebui_logs.txt
Additional Information
No response
@silentoplayz commented on GitHub (Oct 15, 2025):
Already solved on the
devbranch with https://github.com/open-webui/open-webui/issues/18133.