-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(LAB-3244): on LLM dynamic projects export annotations at convers… #1812
base: main
Are you sure you want to change the base?
feat(LAB-3244): on LLM dynamic projects export annotations at convers… #1812
Conversation
a39328b
to
272a072
Compare
@@ -192,8 +195,8 @@ def _format_comparison_annotation(annotation, completions, job, obfuscated_model | |||
|
|||
def _format_json_response( | |||
jobs_config: Dict, annotations: List[Dict], completions: List[Dict], obfuscated_models: Dict | |||
) -> Dict[str, Union[str, List[str]]]: | |||
result = {} | |||
) -> Dict[str, Dict]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you loose some of the typing here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I will update the type
"label": formatted_response["label"], | ||
} | ||
if step == total_rounds - 1 and formatted_response["conversation_label"]: | ||
label_data["conversation_label"] = formatted_response["conversation_label"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discussed with Stéphanie about that, if we want to differentiate the type of the annotation at the label level, we need to do it for every levels ; for example :
...
"label": {
"completion": {
"RANKING": [
"B_2"
]
},
"conversation": {
"TRANSCRIPTION_1": "some transcription at asset level"
},
"chat_item": {
"012399314932R4": {
"TRANSCRIPTION_2": "some transcription at chat item level"
}
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really ok with this format, as we duplicate some information already present in the json_interface. We can discuss it with the team if you want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And doing this change mean applying it also on static export for consistency, creating a breaking change in our export format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem but could you tell me what format you have in mind ?
272a072
to
5411753
Compare
…ation level