Multiple UI elements deciding on full context vs. chunks #1294
|
I've tried to find this in the documentation and also searched the discussions in docs and in the code repo but could not get a clear answer there. As this is not about a request for a functionality change/addition but about how things currently work, I am posting here. There are three user interface elements regarding which part of an uploaded document is used in the context.
Question 1What is the difference between enabling "Bypass Embedding and Retrieval" and enabling "Full Context Mode" in the admin settings? I don't understand what use it is to have chunking and embedding configured when "Full Context" mode forces the whole document content into the context anyway. Question 2When I enable "Full Context Mode" in the admin settings, I still see the "Use Entire Document"/"Use Focused Retrieval" toggle in the document panel of the chat window. Does this toggle then do nothing? Question 3If I disable "Full Context Mode" in the admin settings, will the uploaded document then always be chunked right after digesting? Even when I select "Use Entire Document" in the document panel of the chat window? Or does the chunking only happen after I submit the first prompt, depending on whether I chose "Use Entire Document" or "Use Focused Retrieval"? Question 4Is there a way to disable "Full Context Mode" in the admin settings, but still choose "Use Entire Document" as the default, so users do not need to enter the documents panel in the chat windows for each uploaded document to switch to it? ("Use Entire Document" is the most common case on our server, but I don't want to rob the users of the RAG option) If anyone would spend the time to shed some light on these questions I would be enormously grateful! |
Replies: 1 comment 7 replies
|
Good questions, the three controls overlap in a confusing way. Here is exactly how they behave in the current code. The three controls
Q1, Bypass vs Full Context Mode. Both inject the whole document at chat time. The difference is at upload:
So if your goal is "always use the whole document and don't waste embedding", Bypass is the one you want. Full Context Mode mainly makes sense if you still want documents embedded for other retrieval while defaulting chats to full content. Q2, does the toggle still do anything with Full Context Mode on? Effectively no. With Full Context Mode on, the query-time rule is forced to full for every file, so the toggle cannot switch a file back to focused retrieval. UI gotcha: a normally-uploaded file shows the toggle as "Use Focused Retrieval" by default, yet the system still uses full content because the global setting overrides it. Q3, when does chunking happen? At upload, right after the document is digested, inside Q4, default to "Use Entire Document" without forcing it globally? Not currently. For regular file uploads the default is "Use Focused Retrieval"; the per-file In short: for "whole document is the common case but keep RAG available", there is no single perfect switch today. Bypass gives whole-document-always with no embedding cost but removes RAG; leaving both off keeps RAG as the default and relies on the per-file toggle. |
Good questions, the three controls overlap in a confusing way. Here is exactly how they behave in the current code.
The three controls