LG context
128,000 tokensThe configured maximum LG accepts from the client.
LG preserves the history it receives. The model sees part of it and can ask for information from the rest.
You have been planning an event for a while. Now you ask for the final venue, but that decision is far back in the conversation.
LG preserves the history sent by the client and prepares what to send to the model. Instructions and the current question take priority.
Instructions + recent messages + relevant information that fits.
The entire conversation need not be sent again in every call.
In this example, the old decision was not in the initial selection. The model receives the question and a notice that it can consult omitted history.
“Which hall will we finally use?”
Earlier history is available through retrieval tools.
Search for the final event venue.
LG retrieves original excerpts and adds them to a new call that fits the context limit. The model can then answer.
“The event will be in Oak Hall.”
Later: confirmed change“Cedar Hall replaces Oak Hall.”
The correction appears alongside the original decision to help interpret it.
Your current question“Which hall will we finally use?”
The event will be in Cedar Hall.
The model only uses content received in each call. It does not see all the history kept by LG at once.
Illustrative example. This walkthrough shows one possible retrieval. Models do not always consult history or correctly interpret every correction.
These are different limits. You do not need to memorize numbers to understand the process.
The configured maximum LG accepts from the client.
The configured space for each call, within the model’s native capacity.
A 96,000-token conversation can fit in that LG context and need selection and retrieval to work with 16,000-token windows. Instructions, tools, output and margins also consume budget. This is a configuration example, not a quality or savings guarantee.
Tokens are text units; they are not the same as words.
LiteGate uses a small local language model running on your computer to find the conversation excerpts most relevant to your question. This makes better use of the answering model’s context window without sending your history to an external service for selection.
It is integrated into LG and downloads automatically when you enable the feature. It selects original text; it does not write a summary. It can include excerpts before the first call, so sometimes the model already receives the detail without asking for it. History tools remain available if the local selector is unavailable.
Imagine an earlier document lookup returned a long event brief. For a later question about the venue, optional dynamic compaction can send useful original passages instead of the entire old result. The shared small local language model selects the passages before LG builds the active window; the complete original stays available through request-scoped search and read tools.
This applies only to older, completed plain-text results from read_document, web_search and search_documents. The current question, latest exchange and tool calls stay intact. Errors, structured results, privacy-transformed text and sources needed by declared dependencies retain their originals. Selection is accepted only when the complete request, including recovery overhead, is sufficiently smaller and fits the model window.
In Settings → Virtual context, enable virtual context and Dynamic context compaction (experimental), then choose Save changes. The option defaults to off and uses the existing shared local model. Accepted compaction buffers final streaming while retrieval runs. Selection may miss details, and extra retrieval consumes time and tokens. Setup, opt-out and limits →
Virtual context works with history received in this request. Permanent memory retrieves saved conversations from other occasions. Caching reuses earlier answers when they meet its policy. Enabling virtual context does not enable permanent recording.