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: docs/openapi.json
+65-1Lines changed: 65 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -935,6 +935,37 @@
935
935
"title": "DataCollectorConfiguration",
936
936
"description": "Data collector configuration for sending data to ingress server."
937
937
},
938
+
"FeedbackCategory": {
939
+
"type": "string",
940
+
"enum": [
941
+
"incorrect",
942
+
"hallucinated_content",
943
+
"not_relevant",
944
+
"missing_context",
945
+
"outdated_information",
946
+
"incomplete",
947
+
"too_brief",
948
+
"too_verbose",
949
+
"unclear",
950
+
"unsafe",
951
+
"biased"
952
+
],
953
+
"x-enum-varnames": [
954
+
"INCORRECT",
955
+
"HALLUCINATED_CONTENT",
956
+
"NOT_RELEVANT",
957
+
"MISSING_CONTEXT",
958
+
"OUTDATED_INFORMATION",
959
+
"INCOMPLETE",
960
+
"TOO_BRIEF",
961
+
"TOO_VERBOSE",
962
+
"UNCLEAR",
963
+
"UNSAFE",
964
+
"BIASED"
965
+
],
966
+
"title": "FeedbackCategory",
967
+
"description": "Enum representing predefined feedback categories for AI responses.\n\nThese categories help provide structured feedback about AI inference quality.\nMultiple categories can be selected to provide comprehensive feedback."
968
+
},
938
969
"FeedbackRequest": {
939
970
"properties": {
940
971
"conversation_id": {
@@ -975,6 +1006,27 @@
975
1006
"examples": [
976
1007
"I'm not satisfied with the response because it is too vague."
977
1008
]
1009
+
},
1010
+
"categories": {
1011
+
"anyOf": [
1012
+
{
1013
+
"items": {
1014
+
"$ref": "#/components/schemas/FeedbackCategory"
1015
+
},
1016
+
"type": "array"
1017
+
},
1018
+
{
1019
+
"type": "null"
1020
+
}
1021
+
],
1022
+
"title": "Categories",
1023
+
"description": "List of feedback categories that apply to the LLM response.",
1024
+
"examples": [
1025
+
[
1026
+
"too_brief",
1027
+
"unclear"
1028
+
]
1029
+
]
978
1030
}
979
1031
},
980
1032
"type": "object",
@@ -984,14 +1036,26 @@
984
1036
"llm_response"
985
1037
],
986
1038
"title": "FeedbackRequest",
987
-
"description": "Model representing a feedback request.\n\nAttributes:\n conversation_id: The required conversation ID (UUID).\n user_question: The required user question.\n llm_response: The required LLM response.\n sentiment: The optional sentiment.\n user_feedback: The optional user feedback.\n\nExample:\n ```python\n feedback_request = FeedbackRequest(\n conversation_id=\"12345678-abcd-0000-0123-456789abcdef\",\n user_question=\"what are you doing?\",\n user_feedback=\"Great service!\",\n llm_response=\"I don't know\",\n sentiment=-1,\n )\n ```",
1039
+
"description": "Model representing a feedback request.\n\nAttributes:\n conversation_id: The required conversation ID (UUID).\n user_question: The required user question.\n llm_response: The required LLM response.\n sentiment: The optional sentiment.\n user_feedback: The optional user feedback.\n categories: The optional list of feedback categories (multi-select).\n\nExample:\n ```python\n feedback_request = FeedbackRequest(\n conversation_id=\"12345678-abcd-0000-0123-456789abcdef\",\n user_question=\"what are you doing?\",\n user_feedback=\"Great service!\",\n llm_response=\"I don't know\",\n sentiment=-1,\n categories=[FeedbackCategory.INCOMPLETE, FeedbackCategory.UNSAFE]\n )\n ```",
0 commit comments