LiteGate ↗
VIRTUAL CONTEXT · VISUAL GUIDE

Your conversation stays available.

LG preserves the history it receives. The model sees part of it and can ask for information from the rest.

Follow one conversation

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.

01 / 03

LG receives 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.

LG prepares the call

Instructions + recent messages + relevant information that fits.

The entire conversation need not be sent again in every call.

02 / 03

The model receives a smaller window

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.

What the model receives

“Which hall will we finally use?”

Earlier history is available through retrieval tools.

The model’s request to LG

Search for the final event venue.

03 / 03

The information returns to the window

LG retrieves original excerpts and adds them to a new call that fits the context limit. The model can then answer.

Retrieved information
At the start

“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?”

Expected answer in this example

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.

Where do window sizes fit in?

These are different limits. You do not need to memorize numbers to understand the process.

LG context

128,000 tokens

The configured maximum LG accepts from the client.

Model window

16,000 tokens

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.

Using it day to day

Enable it in LiteGate
  1. Open Settings → Virtual context and enable the feature.
  2. Configure LG context and each model’s window. A window cannot exceed either LG context or the model’s native capacity.
  3. Use a model compatible with retrieval tools. External clients need a key authorized for virtual context.
  4. Save changes and wait for the shared local model to finish downloading and loading if needed. Try a larger window for tasks that compare many details.

User manual →

Local context selection model

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.

Recoverable document-tool results in RC15

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 →

Memory and caching are separate options

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.

Four important limits
  • LG cannot recover anything the client discarded before sending the request.
  • Recovering exact text does not guarantee that the model selects or interprets information correctly.
  • Extra queries can increase time and usage; call, size and duration limits apply.
  • Privacy and permissions apply to every call. This guide covers text and compatible passive tools, not every attachment or provider.