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
Copy file name to clipboardExpand all lines: content/en/llm_observability/setup/sdk/java.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -484,6 +484,62 @@ public class MyJavaClass {
484
484
}
485
485
```
486
486
487
+
## Evaluations
488
+
489
+
The LLM Observability SDK provides the methods `LLMObs.SubmitEvaluation()` to help your traced LLM application submit evaluations to LLM Observability.
490
+
491
+
### Submit evaluations
492
+
493
+
`LLMObs.SubmitEvaluation()` can be used to submit your custom evaluation associated with a given span.
494
+
495
+
#### Arguments
496
+
497
+
The `LLMObs.SubmitEvaluation()` method accepts the following arguments:
498
+
499
+
`llmObsSpan`
500
+
: required - _LLMObsSpan_
501
+
<br />The span context to associate the evaluation with.
502
+
503
+
`label`
504
+
: required - _string_
505
+
<br />The name of the evaluation.
506
+
507
+
`categoricalValue` or `scoreValue`
508
+
: required - _string or double_
509
+
<br />The value of the evaluation. Must be a string (for categorical evaluations) or a double (for score evaluations).
510
+
511
+
`tags`
512
+
: optional - _dictionary_
513
+
<br />A dictionary of string key-value pairs that users can add as tags regarding the evaluation. For more information about tags, see [Getting Started with Tags][3].
0 commit comments