Replies: 1 comment
-
|
Shipped |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Statement
The playground currently treats prompts as plain text with simple variable substitution. Users cannot use conditional logic that is common in production prompt engineering workflows.
Proposed Solution
We are adding Jinja2 template support to the playground. This will allow users to:
Prompt Type Configuration
The type of prompt (plain text or Jinja2) will become part of the prompt schema. When you save a prompt with Jinja2 templates, the schema will store this information.
SDK Support
The SDK will provide helper functions to format prompts according to their type. For Jinja2 prompts, the SDK will handle template rendering before sending to the LLM.
Beta Was this translation helpful? Give feedback.
All reactions