Skip to content

Commit 463d916

Browse files
authored
Merge pull request #138 from mlcommons/metadata-bug
Read metadata as json
2 parents e40af55 + 18f577b commit 463d916

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dev = [
4040
test = [
4141
"pytest>=8,<10",
4242
"pytest-cov>=6,<8",
43+
"pytest-mock>=3,<4",
4344
]
4445
mlflow = [
4546
"psycopg2-binary>=2.9.10,<3",

src/modelplane/evaluator/dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _run_row(row: Any) -> DAGOutput:
231231
ctx = EvalContext(
232232
prompt=str(row[prompt_col]),
233233
response=str(row[response_col]),
234-
metadata=row[metadata_col] if metadata_col else None,
234+
metadata=json.loads(row[metadata_col]) if metadata_col else None,
235235
)
236236
return self.run(ctx)
237237

uv.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)