rakam-eval-sdk 0.2.4rc1__tar.gz → 0.2.4rc3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rakam-eval-sdk
3
- Version: 0.2.4rc1
3
+ Version: 0.2.4rc3
4
4
  Summary: Evaluation Framework SDK
5
5
  Author: Mohamed Bachar Touil
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "rakam-eval-sdk"
7
- version = "0.2.4rc1"
7
+ version = "0.2.4rc3"
8
8
  description = "Evaluation Framework SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -199,7 +199,8 @@ def list_runs(
199
199
  shown = offset + len(items)
200
200
  if shown < total:
201
201
  typer.echo()
202
- typer.echo(f"Showing {shown} of {total} runs. Use --limit to see more.")
202
+ typer.echo(
203
+ f"Showing {shown} of {total} runs. Use --limit to see more.")
203
204
 
204
205
 
205
206
  @app.command()
@@ -420,7 +421,8 @@ def _print_and_save(
420
421
  return
421
422
 
422
423
  if out.exists() and not overwrite:
423
- typer.echo(f"❌ File already exists: {out} (use --overwrite to replace)")
424
+ typer.echo(
425
+ f"❌ File already exists: {out} (use --overwrite to replace)")
424
426
  raise typer.Exit(code=1)
425
427
 
426
428
  out.parent.mkdir(parents=True, exist_ok=True)
@@ -530,7 +532,7 @@ def print_summary(metrics: Any) -> None:
530
532
 
531
533
  @app.command()
532
534
  def compare(
533
- tag: list[str] = typer.Option(
535
+ tag: List[str] = typer.Option(
534
536
  [],
535
537
  "--tag",
536
538
  help="Label identifying a reference testcase",
@@ -1,10 +1,16 @@
1
1
  import functools
2
2
  import os
3
+ import sys
3
4
  import time
4
- from typing import Callable, Dict, Optional, ParamSpec, TypeVar, Union, overload
5
+ from typing import Callable, Dict, Optional, TypeVar, Union, overload
5
6
 
6
7
  import psutil
7
8
 
9
+ if sys.version_info < (3, 9):
10
+ from typing_extensions import ParamSpec
11
+
12
+ else:
13
+ from typing import ParamSpec
8
14
  P = ParamSpec("P")
9
15
  R = TypeVar("R")
10
16
 
@@ -94,7 +94,8 @@ MetricConfig = Annotated[
94
94
  ]
95
95
 
96
96
  SchemaMetricConfig = Annotated[
97
- Union[JsonCorrectnessConfig, FieldsPresenceConfig], Field(discriminator="type")
97
+ Union[JsonCorrectnessConfig, FieldsPresenceConfig], Field(
98
+ discriminator="type")
98
99
  ]
99
100
 
100
101
 
@@ -107,7 +108,7 @@ class InputItem(BaseModel):
107
108
 
108
109
  class TextInputItem(InputItem):
109
110
  expected_output: Optional[str] = None
110
- retrieval_context: Optional[list[str]] = None
111
+ retrieval_context: Optional[List[str]] = None
111
112
 
112
113
 
113
114
  class SchemaInputItem(InputItem):