Endpoints
Resolve prompt
Fetch compressed, context-rich prompts from multiple contexts combined together
POST
Overview
The prompt resolve endpoint fetches compressed, data-rich content from all contexts within a specified prompt. This combines multiple contexts in their defined order to create comprehensive prompts that give your LLM contextual awareness across different data sources without context rot.Path Parameters
Name of the prompt to resolve (e.g., “chatbot-assistant”)
Request Body
Scoping parameters to personalize the context. These filter contexts 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 prompt content from all contexts combined in order, optimized for prompting your LLM with comprehensive contextual awareness.
Additional metadata about the resolved prompt.
Example Request
Example Response
Use Cases
- Multi-Context AI Applications: Combine user data, knowledge bases, and system information in a single prompt
- Comprehensive AI Agents: Give AI agents awareness across multiple data sources and contexts
- Structured Prompt Building: Create prompts with ordered contexts for specific use cases
- Enterprise AI Systems: Build complex prompts that include user context, company knowledge, and real-time data
How Prompt Resolution Works
- Context Retrieval: All contexts within the prompt are fetched in their defined order
- Individual Resolution: Each context is resolved with the provided scopes and query
- Content Combination: Context contents are combined in the order specified in the prompt
- Agentic Compression: If agentic mode is enabled, an LLM further compresses the combined content to be relevant to the query
- Token Limiting: Result is trimmed to respect the prompt’s token limit
- Structured Output: Final compressed prompt ready for your LLM with metadata
Difference from Context Resolve
- Context Resolve: Returns content from a single context
- Prompt Resolve: Returns combined content from multiple contexts in a specific order
- Use Prompts: When you need to combine different types of context (user data + knowledge base + system info)
- Use Contexts: When you only need content from a single source or context type
