ruby/resources/graders/subresources/grader_models/index.md +0 −1173 deleted
File Deleted View Diff
1# Grader Models
2
3## Domain Types
4
5### Eval Content Item
6
7- `GraderInputItem = String | ResponseInputText | OutputText{ text, type} | 2 more`
8
9 A single content item: input text, output text, input image, or input audio.
10
11 - `String = String`
12
13 A text input to the model.
14
15 - `class ResponseInputText`
16
17 A text input to the model.
18
19 - `text: String`
20
21 The text input to the model.
22
23 - `type: :input_text`
24
25 The type of the input item. Always `input_text`.
26
27 - `:input_text`
28
29 - `prompt_cache_breakpoint: PromptCacheBreakpoint{ mode}`
30
31 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
32
33 - `mode: :explicit`
34
35 The breakpoint mode. Always `explicit`.
36
37 - `:explicit`
38
39 - `class OutputText`
40
41 A text output from the model.
42
43 - `text: String`
44
45 The text output from the model.
46
47 - `type: :output_text`
48
49 The type of the output text. Always `output_text`.
50
51 - `:output_text`
52
53 - `class InputImage`
54
55 An image input block used within EvalItem content arrays.
56
57 - `image_url: String`
58
59 The URL of the image input.
60
61 - `type: :input_image`
62
63 The type of the image input. Always `input_image`.
64
65 - `:input_image`
66
67 - `detail: String`
68
69 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
70
71 - `class ResponseInputAudio`
72
73 An audio input to the model.
74
75 - `input_audio: InputAudio{ data, format_}`
76
77 - `data: String`
78
79 Base64-encoded audio data.
80
81 - `format_: :mp3 | :wav`
82
83 The format of the audio data. Currently supported formats are `mp3` and
84 `wav`.
85
86 - `:mp3`
87
88 - `:wav`
89
90 - `type: :input_audio`
91
92 The type of the input item. Always `input_audio`.
93
94 - `:input_audio`
95
96### Grader Inputs
97
98- `GraderInputs = Array[GraderInputItem]`
99
100 A list of inputs, each of which may be either an input text, output text, input
101 image, or input audio object.
102
103 - `String = String`
104
105 A text input to the model.
106
107 - `class ResponseInputText`
108
109 A text input to the model.
110
111 - `text: String`
112
113 The text input to the model.
114
115 - `type: :input_text`
116
117 The type of the input item. Always `input_text`.
118
119 - `:input_text`
120
121 - `prompt_cache_breakpoint: PromptCacheBreakpoint{ mode}`
122
123 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
124
125 - `mode: :explicit`
126
127 The breakpoint mode. Always `explicit`.
128
129 - `:explicit`
130
131 - `class OutputText`
132
133 A text output from the model.
134
135 - `text: String`
136
137 The text output from the model.
138
139 - `type: :output_text`
140
141 The type of the output text. Always `output_text`.
142
143 - `:output_text`
144
145 - `class InputImage`
146
147 An image input block used within EvalItem content arrays.
148
149 - `image_url: String`
150
151 The URL of the image input.
152
153 - `type: :input_image`
154
155 The type of the image input. Always `input_image`.
156
157 - `:input_image`
158
159 - `detail: String`
160
161 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
162
163 - `class ResponseInputAudio`
164
165 An audio input to the model.
166
167 - `input_audio: InputAudio{ data, format_}`
168
169 - `data: String`
170
171 Base64-encoded audio data.
172
173 - `format_: :mp3 | :wav`
174
175 The format of the audio data. Currently supported formats are `mp3` and
176 `wav`.
177
178 - `:mp3`
179
180 - `:wav`
181
182 - `type: :input_audio`
183
184 The type of the input item. Always `input_audio`.
185
186 - `:input_audio`
187
188### Label Model Grader
189
190- `class LabelModelGrader`
191
192 A LabelModelGrader object which uses a model to assign labels to each item
193 in the evaluation.
194
195 - `input: Array[Input{ content, role, type}]`
196
197 - `content: String | ResponseInputText | OutputText{ text, type} | 3 more`
198
199 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
200
201 - `String = String`
202
203 A text input to the model.
204
205 - `class ResponseInputText`
206
207 A text input to the model.
208
209 - `text: String`
210
211 The text input to the model.
212
213 - `type: :input_text`
214
215 The type of the input item. Always `input_text`.
216
217 - `:input_text`
218
219 - `prompt_cache_breakpoint: PromptCacheBreakpoint{ mode}`
220
221 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
222
223 - `mode: :explicit`
224
225 The breakpoint mode. Always `explicit`.
226
227 - `:explicit`
228
229 - `class OutputText`
230
231 A text output from the model.
232
233 - `text: String`
234
235 The text output from the model.
236
237 - `type: :output_text`
238
239 The type of the output text. Always `output_text`.
240
241 - `:output_text`
242
243 - `class InputImage`
244
245 An image input block used within EvalItem content arrays.
246
247 - `image_url: String`
248
249 The URL of the image input.
250
251 - `type: :input_image`
252
253 The type of the image input. Always `input_image`.
254
255 - `:input_image`
256
257 - `detail: String`
258
259 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
260
261 - `class ResponseInputAudio`
262
263 An audio input to the model.
264
265 - `input_audio: InputAudio{ data, format_}`
266
267 - `data: String`
268
269 Base64-encoded audio data.
270
271 - `format_: :mp3 | :wav`
272
273 The format of the audio data. Currently supported formats are `mp3` and
274 `wav`.
275
276 - `:mp3`
277
278 - `:wav`
279
280 - `type: :input_audio`
281
282 The type of the input item. Always `input_audio`.
283
284 - `:input_audio`
285
286 - `GraderInputs = Array[GraderInputItem]`
287
288 A list of inputs, each of which may be either an input text, output text, input
289 image, or input audio object.
290
291 - `String = String`
292
293 A text input to the model.
294
295 - `class ResponseInputText`
296
297 A text input to the model.
298
299 - `class OutputText`
300
301 A text output from the model.
302
303 - `text: String`
304
305 The text output from the model.
306
307 - `type: :output_text`
308
309 The type of the output text. Always `output_text`.
310
311 - `:output_text`
312
313 - `class InputImage`
314
315 An image input block used within EvalItem content arrays.
316
317 - `image_url: String`
318
319 The URL of the image input.
320
321 - `type: :input_image`
322
323 The type of the image input. Always `input_image`.
324
325 - `:input_image`
326
327 - `detail: String`
328
329 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
330
331 - `class ResponseInputAudio`
332
333 An audio input to the model.
334
335 - `role: :user | :assistant | :system | :developer`
336
337 The role of the message input. One of `user`, `assistant`, `system`, or
338 `developer`.
339
340 - `:user`
341
342 - `:assistant`
343
344 - `:system`
345
346 - `:developer`
347
348 - `type: :message`
349
350 The type of the message input. Always `message`.
351
352 - `:message`
353
354 - `labels: Array[String]`
355
356 The labels to assign to each item in the evaluation.
357
358 - `model: String`
359
360 The model to use for the evaluation. Must support structured outputs.
361
362 - `name: String`
363
364 The name of the grader.
365
366 - `passing_labels: Array[String]`
367
368 The labels that indicate a passing result. Must be a subset of labels.
369
370 - `type: :label_model`
371
372 The object type, which is always `label_model`.
373
374 - `:label_model`
375
376### Multi Grader
377
378- `class MultiGrader`
379
380 A MultiGrader object combines the output of multiple graders to produce a single score.
381
382 - `calculate_output: String`
383
384 A formula to calculate the output based on grader results.
385
386 - `graders: StringCheckGrader | TextSimilarityGrader | PythonGrader | 2 more`
387
388 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
389
390 - `class StringCheckGrader`
391
392 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
393
394 - `input: String`
395
396 The input text. This may include template strings.
397
398 - `name: String`
399
400 The name of the grader.
401
402 - `operation: :eq | :ne | :like | :ilike`
403
404 The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
405
406 - `:eq`
407
408 - `:ne`
409
410 - `:like`
411
412 - `:ilike`
413
414 - `reference: String`
415
416 The reference text. This may include template strings.
417
418 - `type: :string_check`
419
420 The object type, which is always `string_check`.
421
422 - `:string_check`
423
424 - `class TextSimilarityGrader`
425
426 A TextSimilarityGrader object which grades text based on similarity metrics.
427
428 - `evaluation_metric: :cosine | :fuzzy_match | :bleu | 8 more`
429
430 The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`,
431 `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`,
432 or `rouge_l`.
433
434 - `:cosine`
435
436 - `:fuzzy_match`
437
438 - `:bleu`
439
440 - `:gleu`
441
442 - `:meteor`
443
444 - `:rouge_1`
445
446 - `:rouge_2`
447
448 - `:rouge_3`
449
450 - `:rouge_4`
451
452 - `:rouge_5`
453
454 - `:rouge_l`
455
456 - `input: String`
457
458 The text being graded.
459
460 - `name: String`
461
462 The name of the grader.
463
464 - `reference: String`
465
466 The text being graded against.
467
468 - `type: :text_similarity`
469
470 The type of grader.
471
472 - `:text_similarity`
473
474 - `class PythonGrader`
475
476 A PythonGrader object that runs a python script on the input.
477
478 - `name: String`
479
480 The name of the grader.
481
482 - `source: String`
483
484 The source code of the python script.
485
486 - `type: :python`
487
488 The object type, which is always `python`.
489
490 - `:python`
491
492 - `image_tag: String`
493
494 The image tag to use for the python script.
495
496 - `class ScoreModelGrader`
497
498 A ScoreModelGrader object that uses a model to assign a score to the input.
499
500 - `input: Array[Input{ content, role, type}]`
501
502 The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.
503
504 - `content: String | ResponseInputText | OutputText{ text, type} | 3 more`
505
506 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
507
508 - `String = String`
509
510 A text input to the model.
511
512 - `class ResponseInputText`
513
514 A text input to the model.
515
516 - `text: String`
517
518 The text input to the model.
519
520 - `type: :input_text`
521
522 The type of the input item. Always `input_text`.
523
524 - `:input_text`
525
526 - `prompt_cache_breakpoint: PromptCacheBreakpoint{ mode}`
527
528 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
529
530 - `mode: :explicit`
531
532 The breakpoint mode. Always `explicit`.
533
534 - `:explicit`
535
536 - `class OutputText`
537
538 A text output from the model.
539
540 - `text: String`
541
542 The text output from the model.
543
544 - `type: :output_text`
545
546 The type of the output text. Always `output_text`.
547
548 - `:output_text`
549
550 - `class InputImage`
551
552 An image input block used within EvalItem content arrays.
553
554 - `image_url: String`
555
556 The URL of the image input.
557
558 - `type: :input_image`
559
560 The type of the image input. Always `input_image`.
561
562 - `:input_image`
563
564 - `detail: String`
565
566 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
567
568 - `class ResponseInputAudio`
569
570 An audio input to the model.
571
572 - `input_audio: InputAudio{ data, format_}`
573
574 - `data: String`
575
576 Base64-encoded audio data.
577
578 - `format_: :mp3 | :wav`
579
580 The format of the audio data. Currently supported formats are `mp3` and
581 `wav`.
582
583 - `:mp3`
584
585 - `:wav`
586
587 - `type: :input_audio`
588
589 The type of the input item. Always `input_audio`.
590
591 - `:input_audio`
592
593 - `GraderInputs = Array[GraderInputItem]`
594
595 A list of inputs, each of which may be either an input text, output text, input
596 image, or input audio object.
597
598 - `String = String`
599
600 A text input to the model.
601
602 - `class ResponseInputText`
603
604 A text input to the model.
605
606 - `class OutputText`
607
608 A text output from the model.
609
610 - `text: String`
611
612 The text output from the model.
613
614 - `type: :output_text`
615
616 The type of the output text. Always `output_text`.
617
618 - `:output_text`
619
620 - `class InputImage`
621
622 An image input block used within EvalItem content arrays.
623
624 - `image_url: String`
625
626 The URL of the image input.
627
628 - `type: :input_image`
629
630 The type of the image input. Always `input_image`.
631
632 - `:input_image`
633
634 - `detail: String`
635
636 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
637
638 - `class ResponseInputAudio`
639
640 An audio input to the model.
641
642 - `role: :user | :assistant | :system | :developer`
643
644 The role of the message input. One of `user`, `assistant`, `system`, or
645 `developer`.
646
647 - `:user`
648
649 - `:assistant`
650
651 - `:system`
652
653 - `:developer`
654
655 - `type: :message`
656
657 The type of the message input. Always `message`.
658
659 - `:message`
660
661 - `model: String`
662
663 The model to use for the evaluation.
664
665 - `name: String`
666
667 The name of the grader.
668
669 - `type: :score_model`
670
671 The object type, which is always `score_model`.
672
673 - `:score_model`
674
675 - `range: Array[Float]`
676
677 The range of the score. Defaults to `[0, 1]`.
678
679 - `sampling_params: SamplingParams{ max_completions_tokens, reasoning_effort, seed, 2 more}`
680
681 The sampling parameters for the model.
682
683 - `max_completions_tokens: Integer`
684
685 The maximum number of tokens the grader model may generate in its response.
686
687 - `reasoning_effort: ReasoningEffort`
688
689 Constrains effort on reasoning for reasoning models. Currently supported
690 values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`.
691 Reducing reasoning effort can result in faster responses and fewer tokens
692 used on reasoning in a response. Not all reasoning models support every
693 value. See the
694 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)
695 for model-specific support.
696
697 - `:none`
698
699 - `:minimal`
700
701 - `:low`
702
703 - `:medium`
704
705 - `:high`
706
707 - `:xhigh`
708
709 - `:max`
710
711 - `seed: Integer`
712
713 A seed value to initialize the randomness, during sampling.
714
715 - `temperature: Float`
716
717 A higher temperature increases randomness in the outputs.
718
719 - `top_p: Float`
720
721 An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
722
723 - `class LabelModelGrader`
724
725 A LabelModelGrader object which uses a model to assign labels to each item
726 in the evaluation.
727
728 - `input: Array[Input{ content, role, type}]`
729
730 - `content: String | ResponseInputText | OutputText{ text, type} | 3 more`
731
732 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
733
734 - `String = String`
735
736 A text input to the model.
737
738 - `class ResponseInputText`
739
740 A text input to the model.
741
742 - `class OutputText`
743
744 A text output from the model.
745
746 - `text: String`
747
748 The text output from the model.
749
750 - `type: :output_text`
751
752 The type of the output text. Always `output_text`.
753
754 - `:output_text`
755
756 - `class InputImage`
757
758 An image input block used within EvalItem content arrays.
759
760 - `image_url: String`
761
762 The URL of the image input.
763
764 - `type: :input_image`
765
766 The type of the image input. Always `input_image`.
767
768 - `:input_image`
769
770 - `detail: String`
771
772 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
773
774 - `class ResponseInputAudio`
775
776 An audio input to the model.
777
778 - `GraderInputs = Array[GraderInputItem]`
779
780 A list of inputs, each of which may be either an input text, output text, input
781 image, or input audio object.
782
783 - `role: :user | :assistant | :system | :developer`
784
785 The role of the message input. One of `user`, `assistant`, `system`, or
786 `developer`.
787
788 - `:user`
789
790 - `:assistant`
791
792 - `:system`
793
794 - `:developer`
795
796 - `type: :message`
797
798 The type of the message input. Always `message`.
799
800 - `:message`
801
802 - `labels: Array[String]`
803
804 The labels to assign to each item in the evaluation.
805
806 - `model: String`
807
808 The model to use for the evaluation. Must support structured outputs.
809
810 - `name: String`
811
812 The name of the grader.
813
814 - `passing_labels: Array[String]`
815
816 The labels that indicate a passing result. Must be a subset of labels.
817
818 - `type: :label_model`
819
820 The object type, which is always `label_model`.
821
822 - `:label_model`
823
824 - `name: String`
825
826 The name of the grader.
827
828 - `type: :multi`
829
830 The object type, which is always `multi`.
831
832 - `:multi`
833
834### Python Grader
835
836- `class PythonGrader`
837
838 A PythonGrader object that runs a python script on the input.
839
840 - `name: String`
841
842 The name of the grader.
843
844 - `source: String`
845
846 The source code of the python script.
847
848 - `type: :python`
849
850 The object type, which is always `python`.
851
852 - `:python`
853
854 - `image_tag: String`
855
856 The image tag to use for the python script.
857
858### Score Model Grader
859
860- `class ScoreModelGrader`
861
862 A ScoreModelGrader object that uses a model to assign a score to the input.
863
864 - `input: Array[Input{ content, role, type}]`
865
866 The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.
867
868 - `content: String | ResponseInputText | OutputText{ text, type} | 3 more`
869
870 Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.
871
872 - `String = String`
873
874 A text input to the model.
875
876 - `class ResponseInputText`
877
878 A text input to the model.
879
880 - `text: String`
881
882 The text input to the model.
883
884 - `type: :input_text`
885
886 The type of the input item. Always `input_text`.
887
888 - `:input_text`
889
890 - `prompt_cache_breakpoint: PromptCacheBreakpoint{ mode}`
891
892 Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a token block.
893
894 - `mode: :explicit`
895
896 The breakpoint mode. Always `explicit`.
897
898 - `:explicit`
899
900 - `class OutputText`
901
902 A text output from the model.
903
904 - `text: String`
905
906 The text output from the model.
907
908 - `type: :output_text`
909
910 The type of the output text. Always `output_text`.
911
912 - `:output_text`
913
914 - `class InputImage`
915
916 An image input block used within EvalItem content arrays.
917
918 - `image_url: String`
919
920 The URL of the image input.
921
922 - `type: :input_image`
923
924 The type of the image input. Always `input_image`.
925
926 - `:input_image`
927
928 - `detail: String`
929
930 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
931
932 - `class ResponseInputAudio`
933
934 An audio input to the model.
935
936 - `input_audio: InputAudio{ data, format_}`
937
938 - `data: String`
939
940 Base64-encoded audio data.
941
942 - `format_: :mp3 | :wav`
943
944 The format of the audio data. Currently supported formats are `mp3` and
945 `wav`.
946
947 - `:mp3`
948
949 - `:wav`
950
951 - `type: :input_audio`
952
953 The type of the input item. Always `input_audio`.
954
955 - `:input_audio`
956
957 - `GraderInputs = Array[GraderInputItem]`
958
959 A list of inputs, each of which may be either an input text, output text, input
960 image, or input audio object.
961
962 - `String = String`
963
964 A text input to the model.
965
966 - `class ResponseInputText`
967
968 A text input to the model.
969
970 - `class OutputText`
971
972 A text output from the model.
973
974 - `text: String`
975
976 The text output from the model.
977
978 - `type: :output_text`
979
980 The type of the output text. Always `output_text`.
981
982 - `:output_text`
983
984 - `class InputImage`
985
986 An image input block used within EvalItem content arrays.
987
988 - `image_url: String`
989
990 The URL of the image input.
991
992 - `type: :input_image`
993
994 The type of the image input. Always `input_image`.
995
996 - `:input_image`
997
998 - `detail: String`
999
1000 The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
1001
1002 - `class ResponseInputAudio`
1003
1004 An audio input to the model.
1005
1006 - `role: :user | :assistant | :system | :developer`
1007
1008 The role of the message input. One of `user`, `assistant`, `system`, or
1009 `developer`.
1010
1011 - `:user`
1012
1013 - `:assistant`
1014
1015 - `:system`
1016
1017 - `:developer`
1018
1019 - `type: :message`
1020
1021 The type of the message input. Always `message`.
1022
1023 - `:message`
1024
1025 - `model: String`
1026
1027 The model to use for the evaluation.
1028
1029 - `name: String`
1030
1031 The name of the grader.
1032
1033 - `type: :score_model`
1034
1035 The object type, which is always `score_model`.
1036
1037 - `:score_model`
1038
1039 - `range: Array[Float]`
1040
1041 The range of the score. Defaults to `[0, 1]`.
1042
1043 - `sampling_params: SamplingParams{ max_completions_tokens, reasoning_effort, seed, 2 more}`
1044
1045 The sampling parameters for the model.
1046
1047 - `max_completions_tokens: Integer`
1048
1049 The maximum number of tokens the grader model may generate in its response.
1050
1051 - `reasoning_effort: ReasoningEffort`
1052
1053 Constrains effort on reasoning for reasoning models. Currently supported
1054 values are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`.
1055 Reducing reasoning effort can result in faster responses and fewer tokens
1056 used on reasoning in a response. Not all reasoning models support every
1057 value. See the
1058 [reasoning guide](https://platform.openai.com/docs/guides/reasoning)
1059 for model-specific support.
1060
1061 - `:none`
1062
1063 - `:minimal`
1064
1065 - `:low`
1066
1067 - `:medium`
1068
1069 - `:high`
1070
1071 - `:xhigh`
1072
1073 - `:max`
1074
1075 - `seed: Integer`
1076
1077 A seed value to initialize the randomness, during sampling.
1078
1079 - `temperature: Float`
1080
1081 A higher temperature increases randomness in the outputs.
1082
1083 - `top_p: Float`
1084
1085 An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
1086
1087### String Check Grader
1088
1089- `class StringCheckGrader`
1090
1091 A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
1092
1093 - `input: String`
1094
1095 The input text. This may include template strings.
1096
1097 - `name: String`
1098
1099 The name of the grader.
1100
1101 - `operation: :eq | :ne | :like | :ilike`
1102
1103 The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
1104
1105 - `:eq`
1106
1107 - `:ne`
1108
1109 - `:like`
1110
1111 - `:ilike`
1112
1113 - `reference: String`
1114
1115 The reference text. This may include template strings.
1116
1117 - `type: :string_check`
1118
1119 The object type, which is always `string_check`.
1120
1121 - `:string_check`
1122
1123### Text Similarity Grader
1124
1125- `class TextSimilarityGrader`
1126
1127 A TextSimilarityGrader object which grades text based on similarity metrics.
1128
1129 - `evaluation_metric: :cosine | :fuzzy_match | :bleu | 8 more`
1130
1131 The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`,
1132 `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`,
1133 or `rouge_l`.
1134
1135 - `:cosine`
1136
1137 - `:fuzzy_match`
1138
1139 - `:bleu`
1140
1141 - `:gleu`
1142
1143 - `:meteor`
1144
1145 - `:rouge_1`
1146
1147 - `:rouge_2`
1148
1149 - `:rouge_3`
1150
1151 - `:rouge_4`
1152
1153 - `:rouge_5`
1154
1155 - `:rouge_l`
1156
1157 - `input: String`
1158
1159 The text being graded.
1160
1161 - `name: String`
1162
1163 The name of the grader.
1164
1165 - `reference: String`
1166
1167 The text being graded against.
1168
1169 - `type: :text_similarity`
1170
1171 The type of grader.
1172
1173 - `:text_similarity`