-
[OPIK-5649] [BE] fix: only include trace input when adding to evaluation suite (#6068)
发布于
2026-04-06 13:26:29 +00:00 - [OPIK-5649] [BE] fix: only include trace input when adding to evaluation suite
When adding a trace to an evaluation suite dataset, all enriched trace
data (input, output, spans, metadata, etc.) was being added to the
dataset item. For evaluation suites, only the trace's input fields
should be unwrapped as top-level data in the dataset item.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
- [OPIK-5649] [BE] test: add parameterized unit test for filterDataForDatasetType
Covers EVALUATION_SUITE unwrapping input, DATASET preserving data,
missing input, and non-object input edge cases.Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
- [OPIK-5649] [BE] test: add integration tests for evaluation suite data filtering
Add integration tests verifying that createFromTraces and createFromSpans
correctly filter data for EVALUATION_SUITE datasets (unwrapping input only)
vs regular datasets (preserving all enriched fields).Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Co-authored-by: Claude Opus 4.6 noreply@anthropic.com
下载附件