You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| id | string | Logical identifier for this prompt template. Should be unique per `ml_app`. |
@@ -178,6 +180,30 @@ If the request is successful, the API responds with a 202 network code and an em
178
180
| context_variable_keys |[string]| Variable keys that contain ground-truth or context content. Used for hallucination detection. |
179
181
| tags | Dict[key (string), string]| Tags to attach to the prompt run. |
180
182
183
+
**Note**: LLM Observability registers new versions of templates when the `template` or `chat_template` value is updated. If the input is expected to change between invocations, extract the dynamic parts into a variable.
184
+
185
+
{{% /tab %}}
186
+
{{% tab "Example" %}}
187
+
{{< code-block lang="json" >}}
188
+
{
189
+
"id": "translation-prompt",
190
+
"chat_template": [
191
+
{
192
+
"role": "system",
193
+
"content": "You are a translation service. You translate to {{language}}."
0 commit comments