|
911 | 911 | }, |
912 | 912 | "/v2/evaluators/execute/conversation-quality": { |
913 | 913 | "post": { |
914 | | - "description": "Evaluate conversation quality based on tone, clarity, flow, responsiveness, and transparency\n\n**Request Body:**\n- `input.prompts` (string, required): JSON array of prompts in the conversation\n- `input.completions` (string, required): JSON array of completions in the conversation\n- `config.model` (string, optional): Model to use for evaluation (default: gpt-4o)", |
| 914 | + "description": "Evaluate conversation quality based on tone, clarity, flow, responsiveness, and transparency\n\n**Request Body:**\n- `input.prompts` (string, required): JSON array of prompts in the conversation\n- `input.completions` (string, required): JSON array of completions in the conversation", |
915 | 915 | "requestBody": { |
916 | 916 | "content": { |
917 | 917 | "application/json": { |
|
1023 | 1023 | ] |
1024 | 1024 | } |
1025 | 1025 | }, |
| 1026 | + "/v2/evaluators/execute/html-comparison": { |
| 1027 | + "post": { |
| 1028 | + "description": "Compare two HTML documents for structural and content similarity\n\n**Request Body:**\n- `input.html1` (string, required): The first HTML document to compare\n- `input.html2` (string, required): The second HTML document to compare", |
| 1029 | + "requestBody": { |
| 1030 | + "content": { |
| 1031 | + "application/json": { |
| 1032 | + "schema": { |
| 1033 | + "$ref": "#/components/schemas/request.HtmlComparisonRequest" |
| 1034 | + } |
| 1035 | + } |
| 1036 | + }, |
| 1037 | + "description": "Request body", |
| 1038 | + "required": true |
| 1039 | + }, |
| 1040 | + "responses": { |
| 1041 | + "200": { |
| 1042 | + "description": "OK", |
| 1043 | + "content": { |
| 1044 | + "application/json": { |
| 1045 | + "schema": { |
| 1046 | + "$ref": "#/components/schemas/response.HtmlComparisonResponse" |
| 1047 | + } |
| 1048 | + } |
| 1049 | + } |
| 1050 | + }, |
| 1051 | + "400": { |
| 1052 | + "description": "Bad Request", |
| 1053 | + "content": { |
| 1054 | + "application/json": { |
| 1055 | + "schema": { |
| 1056 | + "$ref": "#/components/schemas/response.ErrorResponse" |
| 1057 | + } |
| 1058 | + } |
| 1059 | + } |
| 1060 | + }, |
| 1061 | + "500": { |
| 1062 | + "description": "Internal Server Error", |
| 1063 | + "content": { |
| 1064 | + "application/json": { |
| 1065 | + "schema": { |
| 1066 | + "$ref": "#/components/schemas/response.ErrorResponse" |
| 1067 | + } |
| 1068 | + } |
| 1069 | + } |
| 1070 | + } |
| 1071 | + }, |
| 1072 | + "security": [ |
| 1073 | + { |
| 1074 | + "BearerAuth": [] |
| 1075 | + } |
| 1076 | + ], |
| 1077 | + "summary": "Execute html-comparison evaluator", |
| 1078 | + "tags": [ |
| 1079 | + "evaluators" |
| 1080 | + ] |
| 1081 | + } |
| 1082 | + }, |
1026 | 1083 | "/v2/evaluators/execute/instruction-adherence": { |
1027 | 1084 | "post": { |
1028 | 1085 | "description": "Evaluate how well responses follow given instructions\n\n**Request Body:**\n- `input.instructions` (string, required): The instructions that should be followed\n- `input.response` (string, required): The response to evaluate for instruction adherence", |
|
1082 | 1139 | }, |
1083 | 1140 | "/v2/evaluators/execute/intent-change": { |
1084 | 1141 | "post": { |
1085 | | - "description": "Detect changes in user intent between prompts and completions\n\n**Request Body:**\n- `input.prompts` (string, required): JSON array of prompts in the conversation\n- `input.completions` (string, required): JSON array of completions in the conversation\n- `config.model` (string, optional): Model to use for evaluation (default: gpt-4o)", |
| 1142 | + "description": "Detect changes in user intent between prompts and completions\n\n**Request Body:**\n- `input.prompts` (string, required): JSON array of prompts in the conversation\n- `input.completions` (string, required): JSON array of completions in the conversation", |
1086 | 1143 | "requestBody": { |
1087 | 1144 | "content": { |
1088 | 1145 | "application/json": { |
|
2798 | 2855 | ], |
2799 | 2856 | "type": "object" |
2800 | 2857 | }, |
2801 | | - "request.ConversationQualityConfigRequest": { |
2802 | | - "properties": { |
2803 | | - "model": { |
2804 | | - "example": "gpt-4o", |
2805 | | - "type": "string" |
2806 | | - } |
2807 | | - }, |
2808 | | - "type": "object" |
2809 | | - }, |
2810 | 2858 | "request.ConversationQualityInput": { |
2811 | 2859 | "properties": { |
2812 | 2860 | "completions": { |
|
2826 | 2874 | }, |
2827 | 2875 | "request.ConversationQualityRequest": { |
2828 | 2876 | "properties": { |
2829 | | - "config": { |
2830 | | - "$ref": "#/components/schemas/request.ConversationQualityConfigRequest" |
2831 | | - }, |
2832 | 2877 | "input": { |
2833 | 2878 | "$ref": "#/components/schemas/request.ConversationQualityInput" |
2834 | 2879 | } |
|
2963 | 3008 | }, |
2964 | 3009 | "type": "object" |
2965 | 3010 | }, |
| 3011 | + "request.HtmlComparisonInput": { |
| 3012 | + "properties": { |
| 3013 | + "html1": { |
| 3014 | + "example": "<html><body><h1>Hello, world!</h1></body></html>", |
| 3015 | + "type": "string" |
| 3016 | + }, |
| 3017 | + "html2": { |
| 3018 | + "example": "<html><body><h1>Hello, world!</h1></body></html>", |
| 3019 | + "type": "string" |
| 3020 | + } |
| 3021 | + }, |
| 3022 | + "required": [ |
| 3023 | + "html1", |
| 3024 | + "html2" |
| 3025 | + ], |
| 3026 | + "type": "object" |
| 3027 | + }, |
| 3028 | + "request.HtmlComparisonRequest": { |
| 3029 | + "properties": { |
| 3030 | + "input": { |
| 3031 | + "$ref": "#/components/schemas/request.HtmlComparisonInput" |
| 3032 | + } |
| 3033 | + }, |
| 3034 | + "required": [ |
| 3035 | + "input" |
| 3036 | + ], |
| 3037 | + "type": "object" |
| 3038 | + }, |
2966 | 3039 | "request.InstructionAdherenceInput": { |
2967 | 3040 | "properties": { |
2968 | 3041 | "instructions": { |
|
2991 | 3064 | ], |
2992 | 3065 | "type": "object" |
2993 | 3066 | }, |
2994 | | - "request.IntentChangeConfigRequest": { |
2995 | | - "properties": { |
2996 | | - "model": { |
2997 | | - "example": "gpt-4o", |
2998 | | - "type": "string" |
2999 | | - } |
3000 | | - }, |
3001 | | - "type": "object" |
3002 | | - }, |
3003 | 3067 | "request.IntentChangeInput": { |
3004 | 3068 | "properties": { |
3005 | 3069 | "completions": { |
|
3019 | 3083 | }, |
3020 | 3084 | "request.IntentChangeRequest": { |
3021 | 3085 | "properties": { |
3022 | | - "config": { |
3023 | | - "$ref": "#/components/schemas/request.IntentChangeConfigRequest" |
3024 | | - }, |
3025 | 3086 | "input": { |
3026 | 3087 | "$ref": "#/components/schemas/request.IntentChangeInput" |
3027 | 3088 | } |
|
3881 | 3942 | }, |
3882 | 3943 | "type": "object" |
3883 | 3944 | }, |
| 3945 | + "response.HtmlComparisonResponse": { |
| 3946 | + "properties": { |
| 3947 | + "similarity_score": { |
| 3948 | + "example": 0.92, |
| 3949 | + "type": "number" |
| 3950 | + } |
| 3951 | + }, |
| 3952 | + "type": "object" |
| 3953 | + }, |
3884 | 3954 | "response.InstructionAdherenceResponse": { |
3885 | 3955 | "properties": { |
3886 | 3956 | "instruction_adherence_score": { |
|
0 commit comments