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

Reset Migrations #20

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parley/management/commands/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def handle(self, *args, **opts):

# Lookup the model evaluations specified by the user in the database
model_evaluations = self.get_queryset(**opts)
n_model_evals = model_evaluations.count()
n_model_evals = model_evaluations.count() if model_evaluations is not None else 0
if n_model_evals == 0:
raise CommandError("no model evaluations found for criteria")

Expand Down
96 changes: 77 additions & 19 deletions parley/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.1.1 on 2024-10-07 05:47
# Generated by Django 5.1.1 on 2024-10-08 10:22

import django.db.models.deletion
import parley.models.llm
Expand Down Expand Up @@ -295,6 +295,13 @@ class Migration(migrations.Migration):
help_text="If the term is a regular expression to analyze the output on",
),
),
(
"is_name",
models.BooleanField(
default=False,
help_text="If the term is a proper name that may be extracted and fuzzy searched with NER",
),
),
(
"case_sensitive",
models.BooleanField(
Expand Down Expand Up @@ -346,35 +353,77 @@ class Migration(migrations.Migration):
("n_prompts", models.IntegerField(default=0, editable=False)),
("n_responses", models.IntegerField(default=0, editable=False)),
(
"similarity_processed",
models.BooleanField(default=False, editable=False),
"n_similar",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_not_similar",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_labeled_correctly",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_labeled_incorrectly",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_valid_output_type",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_invalid_output_type",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
(
"n_leaks_sensitive",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_similar", models.IntegerField(default=0, editable=False)),
(
"labels_processed",
models.BooleanField(default=False, editable=False),
"n_no_sensitive_leaks",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_labeled_correctly", models.IntegerField(default=0, editable=False)),
(
"output_type_processed",
models.BooleanField(default=False, editable=False),
"n_confabulations",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_valid_output_type", models.IntegerField(default=0, editable=False)),
(
"sensitive_processed",
models.BooleanField(default=False, editable=False),
"n_not_confabulation",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_leaks_sensitive", models.IntegerField(default=0, editable=False)),
(
"confabulations_processed",
models.BooleanField(default=False, editable=False),
"n_readable",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_confabulations", models.IntegerField(default=0, editable=False)),
(
"readable_processed",
models.BooleanField(default=False, editable=False),
"n_not_readable",
models.IntegerField(
blank=True, default=None, editable=False, null=True
),
),
("n_readable", models.IntegerField(default=0, editable=False)),
(
"evaluation",
models.ForeignKey(
Expand Down Expand Up @@ -441,6 +490,15 @@ class Migration(migrations.Migration):
help_text="The timestamp that the object was last modified",
),
),
(
"title",
models.CharField(
blank=True,
default=None,
help_text="A title to specify for identifying the prompt",
null=True,
),
),
(
"system",
models.TextField(
Expand Down
31 changes: 0 additions & 31 deletions parley/migrations/0002_prompt_title_sensitive_is_name.py

This file was deleted.

121 changes: 0 additions & 121 deletions parley/migrations/0003_modify_modelevaluation_metrics_storage.py

This file was deleted.