model equals gpt-4 and user_tier equals premium), the evaluate API returns that context’s content alongside the match, ready to inject into your prompt or pipeline.
What you get
Manage Contexts
Create, edit, and delete contexts - name, description, markdown content, status, tags, and meta properties
Link Rules
Connect a context to one or more Rule Engine rules, from either the context or the rule side
Retrieve Context
Call the evaluate API at runtime to fetch matching context content for your application
Why Context
Most prompt-management tools stop at versioning and deploying prompts. OpenLIT’s Context goes a step further: paired with the Rule Engine, it lets you store reusable knowledge snippets or system-prompt fragments once, and have your application fetch the right one automatically based on runtime conditions - like the model in use or a user’s plan tier - rather than writing that branching logic yourself. This combination of a reusable content store plus a conditional rule engine has no direct equivalent in comparable open-source LLM observability tools.Frequently asked questions
What is Context used for?
What is Context used for?
Context stores reusable markdown content - system prompts, knowledge snippets, policy text, or any other text your AI application needs - so you can write it once and reuse it across rules instead of duplicating it in code.
How is a context different from a prompt in Prompt Hub?
How is a context different from a prompt in Prompt Hub?
Prompt Hub is for versioning and deploying structured prompts with variables. Context is a simpler, freeform markdown store meant to be paired with the Rule Engine so the right content is returned automatically based on runtime conditions, rather than fetched by name.
Do I need a rule to use a context?
Do I need a rule to use a context?
A context can be created and edited on its own, but it only becomes retrievable at runtime once it’s linked to at least one Active rule in the Rule Engine.
Can I delete a context from its detail page?
Can I delete a context from its detail page?
No. There is no delete control on the context detail page. Contexts are deleted from the list page, using the delete icon on that context’s row.
Can I unlink a rule from the context detail page?
Can I unlink a rule from the context detail page?
Not from that side. Once a rule is linked to a context, removing the link is done from the rule’s own detail page, in its Associated Entities panel. See Link Rules for details.
Rule Engine
Create conditional rules to match inputs and retrieve linked contexts, prompts, and other resources
Prompt Hub
Version, deploy, and collaborate on prompts with centralized management and tracking
SDK Rule Engine
Use evaluate_rule() from Python, TypeScript, or Go with full parameter reference
API Reference: Evaluate
Full reference for the Rule Engine evaluate endpoint with request and response schemas

