Endpoints
Resolve context
Fetch compressed, context-rich content from a single context
POST
Overview
The context resolve endpoint fetches compressed, data-rich content from a single context. This is useful when you only need content from one specific context source, rather than combining multiple contexts together. For combining multiple contexts in a specific order, use the prompt resolve endpoint.Path Parameters
Name of the context to resolve (e.g., “user-interactions”, “knowledge-base”)
Request Body
Scoping parameters to personalize the context. These filter the context to include only data relevant to specific users, projects, or environments.
Optional query string for RAG contexts. This helps filter and rank relevant content, preventing context rot by including only information semantically similar to your query.
Response
The compressed context content, optimized for prompting your LLM with relevant contextual awareness from this specific context.
Additional metadata about the resolved context.
Example Request
Example Response
Use Cases
- Single-Source Context: Get context from one specific data source (user interactions, knowledge base, etc.)
- Focused AI Responses: Generate responses based on one type of context without mixing data sources
- Context Testing: Test individual contexts before combining them in prompts
- Lightweight Applications: Simple use cases that don’t need multiple context sources
How Context Resolution Works
- Data Collection: All published data within the context is gathered
- Scope Filtering: Only data matching your scopes is included (e.g., specific user’s data)
- RAG Filtering: If query provided, only semantically relevant content is selected
- Content Compression: The context content is compressed and optimized
- Token Limiting: Result is trimmed to respect context token limits
- Structured Output: Final compressed context ready for your LLM prompts
When to Use Context vs Prompt Resolve
- Use Context Resolve: When you need content from a single, specific context
- Use Prompt Resolve: When you need to combine multiple contexts in a specific order
- Single contexts: User interactions, knowledge base articles, system logs
- Multiple contexts: Complete AI prompts combining user data + knowledge + system info
