-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add optional association for prompt in Leva::Experiment
This commit adds an optional association for the `prompt` attribute in the `Leva::Experiment` model. The `belongs_to :prompt` association now has the `optional: true` option, allowing the `prompt` attribute to be nil. This change ensures that an experiment can be created without a prompt, if needed. This commit also adds a `has_many :evaluation_results` association to the `Leva::Experiment` model, with the `dependent: :destroy` option. This association allows evaluation results to be associated with an experiment and ensures that they are destroyed when the experiment is destroyed. These changes improve the flexibility and data integrity of the `Leva::Experiment` model. Related to recent user commits that added the `SentimentF1Eval` class for evaluating sentiment predictions and updated the Leva gem to the latest version. Also aligns with recent repository commits that removed an outdated file and refactored authentication logic.
- Loading branch information
1 parent
33e5c14
commit 58997f2
Showing
4 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters