Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FannyGaudin
Copy link
Contributor

…ation level

@FannyGaudin FannyGaudin force-pushed the feature/lab-3244-aau-on-llm-dynamic-projects-i-export-annotations-at branch 2 times, most recently from a39328b to 272a072 Compare November 8, 2024 09:52
@@ -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]:
Copy link
Collaborator

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 ?

Copy link
Contributor Author

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"]
Copy link
Collaborator

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"
                }
            }
        }

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Contributor Author

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 ?

@FannyGaudin FannyGaudin force-pushed the feature/lab-3244-aau-on-llm-dynamic-projects-i-export-annotations-at branch from 272a072 to 5411753 Compare November 13, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants