-
Notifications
You must be signed in to change notification settings - Fork 9
Add score trace URL to evaluation run #558
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
Changes from all commits
87c8e40
01ce874
8736311
62d0673
0ac775e
6e3d12e
afc0d70
788f3ae
a9a55ac
5d91433
87a64ff
d662916
941d02a
cc0ca16
61c9082
dccf470
8c0fe52
a43cdf0
be7111d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| """Add score_trace_url to evaluation_run | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Revision ID: 044 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Revises: 043 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create Date: 2026-01-24 19:34:46.763908 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from alembic import op | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import sqlalchemy as sa | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import sqlmodel.sql.sqltypes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| revision = "044" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| down_revision = "043" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| branch_labels = None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| depends_on = None | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| def upgrade(): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| op.add_column( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "evaluation_run", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sa.Column( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "score_trace_url", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sqlmodel.sql.sqltypes.AutoString(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nullable=True, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| comment="S3 URL where per-trace evaluation scores are stored", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| def downgrade(): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| op.drop_column("evaluation_run", "score_trace_url") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+19
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add return type hints to migration functions. Both ✍️ Suggested update-def upgrade():
+def upgrade() -> None:
op.add_column(
"evaluation_run",
sa.Column(
"score_trace_url",
sqlmodel.sql.sqltypes.AutoString(),
nullable=True,
comment="S3 URL where per-trace evaluation scores are stored",
),
)
-def downgrade():
+def downgrade() -> None:
op.drop_column("evaluation_run", "score_trace_url")As per coding guidelines, **/*.py: Always add type hints to all function parameters and return values in Python code. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.