发布

  • [OPIK-4607] Add JSONPath support and Numerical Similarity metric to Optimization Studio (#5418)

    frostbyte_neo 发布于 2026-02-26 16:11:23 +00:00

    • [OPIK-4607] Add JSONPath support and Numerical Similarity metric to Optimization Studio
    • Support JSONPath expressions in metric reference_key fields, allowing
      extraction of values from nested JSON structures (e.g., feedback scores)
    • Add Numerical Similarity metric for numeric comparison with auto-inferred
      scale normalization from dataset reference values
    • Pass dataset_items to MetricFactory.build so metrics can inspect the
      dataset at build time
    • Fix FE lint errors and use lazy dataset_items_provider to avoid eager materialization
    • Fix prettier formatting in schema.ts, explainers.ts, optimizations.ts
    • Change MetricFactory.build to accept a dataset_items_provider callable
      instead of a materialized list, so only metrics that need dataset
      inspection (numerical_similarity) actually load the items
    • Add docstring to numerical_similarity metric builder

    • Replace jsonpath-ng with python-jsonpath (actively maintained)

    下载附件