Skip to content

Add domain in default run_id#156

Open
JosephMarinier wants to merge 1 commit into
mainfrom
joseph/add-domain-in-default-run-id
Open

Add domain in default run_id#156
JosephMarinier wants to merge 1 commit into
mainfrom
joseph/add-domain-in-default-run-id

Conversation

@JosephMarinier

Copy link
Copy Markdown
Collaborator

Add the domain name in the default run_id.

My only concern is that the domain name `medical_hr` contains an underscore, which is the separator we use between the bits of id here. A `run_id` like `<date>_medical_hr_en_<models>` is slightly confusing. Furthermore, `hr` is the language code for Croatian.

A couple of solutions:
1. Write `medical-hr` instead of `medical_hr`. There are often dashes within language codes and within model names. But then, it doesn't match the domain name exactly.
2. Change our separator for something that risks fewer collisions, like a tilde `~`.
3. Live with it.

@katstankiewicz katstankiewicz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!!

Comment thread src/eva/models/config.py
suffix = "_".join(v for v in self.model.pipeline_parts.values() if v)
lang = self.language.value
self.run_id = f"{datetime.now(UTC):%Y-%m-%d_%H-%M-%S.%f}_{lang}_{suffix}"
self.run_id = f"{datetime.now(UTC):%Y-%m-%d_%H-%M-%S.%f}_{self.domain}_{lang}_{suffix}"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only concern is that the domain name medical_hr contains an underscore, which is the separator we use between the bits of run_id here. A run_id like <date>_medical_hr_en_<models> is slightly confusing. Furthermore, hr is the language code for Croatian.

A couple of solutions:

  1. Write medical-hr instead of medical_hr. There are often dashes within language codes and within model names. But then, it doesn't match the domain name exactly.
  2. Change our separator for something that risks fewer collisions, like a tilde ~.
  3. Live with it.
  4. Not add the domain name (close this PR).

What do you think?

@katstankiewicz katstankiewicz Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I really like the addition of domain. what about using medicalhr? it won't match domain exactly but reduces the confusion with language codes and needed a new separator. I'm ok with medical-hr as well though

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea too!

What I like about medical-hr is that it's a reversible transformation; we're not losing any info.

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.

2 participants