Skip to content

Commit 07cf9f9

Browse files
committed
tabbed
1 parent d0e5307 commit 07cf9f9

File tree

1 file changed

+6
-1
lines changed
  • content/en/llm_observability/instrumentation

1 file changed

+6
-1
lines changed

content/en/llm_observability/instrumentation/api.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ If the request is successful, the API responds with a 202 network code and an em
167167
| id | string | The id of this document. |
168168

169169
#### Prompt
170+
{{< tabs >}}
171+
{{% tab "Model" %}}
170172
| Field | Type | Description |
171173
|----------------------|--------|--------------------------|
172174
| id | string | Logical identifier for this prompt template. Should be unique per `ml_app`. |
@@ -178,8 +180,10 @@ If the request is successful, the API responds with a 202 network code and an em
178180
| context_variable_keys | [string] | Variable keys that contain ground-truth or context content. Used for hallucination detection. |
179181
| tags | Dict[key (string), string] | Tags to attach to the prompt run. |
180182

181-
**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 those dynamic parts into a variable.
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.
182184

185+
{{% /tab %}}
186+
{{% tab "Example" %}}
183187
{{< code-block lang="json" >}}
184188
{
185189
"id": "translation-prompt",
@@ -198,6 +202,7 @@ If the request is successful, the API responds with a 202 network code and an em
198202
}
199203
}
200204
{{< /code-block >}}
205+
{{% /tab %}}
201206

202207
#### Meta
203208
| Field | Type | Description |

0 commit comments

Comments
 (0)