Principle:AIPexStudio AIPex Context Augmentation
| Knowledge Sources | |
|---|---|
| Domains | NLP, Context_Management |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
A technique that enriches LLM prompts with externally-sourced context data (page content, files, bookmarks) before model inference.
Description
Context Augmentation solves the problem that LLMs only know what is in their training data and the current prompt. By attaching structured context from external sources—such as the current browser page content, open tabs, bookmarks, or user-selected files—the agent gains situational awareness without fine-tuning. The context is resolved from provider IDs, formatted into human-readable text, and prepended to the user's input before it reaches the model. This approach is a form of Retrieval-Augmented Generation (RAG) where retrieval is driven by explicit user or system selection rather than semantic search.
Usage
Use this principle when an agent needs awareness of external state (browser tabs, files, database records) that cannot be passed as a tool call result. It is appropriate when the context should influence the model's reasoning from the start of the turn rather than being discovered mid-execution.
Theoretical Basis
The context is injected as structured text in the user message:
[<type>: <label>]
<value>
<user input>
Context resolution accepts either object references or string IDs. IDs are resolved through a provider registry. Context objects are validated structurally (must have `id`, `type`, `providerId`, `label`, `value`) and formatted into the prompt prefix.