rakam-eval-sdk 0.2.4rc4__py3-none-any.whl → 0.2.4rc6__py3-none-any.whl

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.
rakam_eval_sdk/cli.py CHANGED
@@ -6,7 +6,7 @@ import uuid
6
6
  from datetime import datetime
7
7
  from pathlib import Path
8
8
  from pprint import pprint
9
- from typing import Any, Dict, List, Optional, Tuple, Union,Set
9
+ from typing import Any, Dict, List, Optional, Tuple, Union, Set
10
10
 
11
11
  import typer
12
12
  from dotenv import load_dotenv
@@ -199,8 +199,7 @@ def list_runs(
199
199
  shown = offset + len(items)
200
200
  if shown < total:
201
201
  typer.echo()
202
- typer.echo(
203
- f"Showing {shown} of {total} runs. Use --limit to see more.")
202
+ typer.echo(f"Showing {shown} of {total} runs. Use --limit to see more.")
204
203
 
205
204
 
206
205
  @app.command()
@@ -421,8 +420,7 @@ def _print_and_save(
421
420
  return
422
421
 
423
422
  if out.exists() and not overwrite:
424
- typer.echo(
425
- f"❌ File already exists: {out} (use --overwrite to replace)")
423
+ typer.echo(f"❌ File already exists: {out} (use --overwrite to replace)")
426
424
  raise typer.Exit(code=1)
427
425
 
428
426
  out.parent.mkdir(parents=True, exist_ok=True)
@@ -537,7 +535,7 @@ def compare(
537
535
  "--tag",
538
536
  help="Label identifying a reference testcase",
539
537
  ),
540
- run: list[int] = typer.Option(
538
+ run: List[int] = typer.Option(
541
539
  [],
542
540
  "--run",
543
541
  help="Run ID identifying an evaluation testcase",
@@ -6,9 +6,8 @@ from typing import Callable, Dict, Optional, TypeVar, Union, overload
6
6
 
7
7
  import psutil
8
8
 
9
- if sys.version_info < (3, 9):
9
+ if sys.version_info < (3, 10):
10
10
  from typing_extensions import ParamSpec
11
-
12
11
  else:
13
12
  from typing import ParamSpec
14
13
  P = ParamSpec("P")
rakam_eval_sdk/schema.py CHANGED
@@ -94,8 +94,7 @@ MetricConfig = Annotated[
94
94
  ]
95
95
 
96
96
  SchemaMetricConfig = Annotated[
97
- Union[JsonCorrectnessConfig, FieldsPresenceConfig], Field(
98
- discriminator="type")
97
+ Union[JsonCorrectnessConfig, FieldsPresenceConfig], Field(discriminator="type")
99
98
  ]
100
99
 
101
100
 
@@ -113,7 +112,6 @@ class TextInputItem(InputItem):
113
112
 
114
113
  class SchemaInputItem(InputItem):
115
114
  expected_output: Optional[str] = None
116
- # retrieval_context: list[Json[Any]] = None
117
115
 
118
116
 
119
117
  class EvalConfig(BaseModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rakam-eval-sdk
3
- Version: 0.2.4rc4
3
+ Version: 0.2.4rc6
4
4
  Summary: Evaluation Framework SDK
5
5
  Author: Mohamed Bachar Touil
6
6
  License: MIT
@@ -0,0 +1,10 @@
1
+ rakam_eval_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ rakam_eval_sdk/cli.py,sha256=9SXUSGv-AVP1hrefmD6IZc5N4UkUgxD8QZvGsaGi5_U,21910
3
+ rakam_eval_sdk/client.py,sha256=8KwpNt7WHgMfcXAQtrAlnUihai9TiADRieiuWeIxg6E,15575
4
+ rakam_eval_sdk/decorators.py,sha256=IOe4r4P8JoWM9thPtb3bJ1EXvGxkjydHbKS0W1fiYSk,1908
5
+ rakam_eval_sdk/schema.py,sha256=ouxiV1ydQXiVn5DjIAYDT4yqsXA0h95bq6c-oSkqxL8,3912
6
+ rakam_eval_sdk/utils/decorator_utils.py,sha256=g0TjXtG9o4hwhUAFP8GJsXAkjhZhzeseTAg-YBFjj2g,1763
7
+ rakam_eval_sdk-0.2.4rc6.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
8
+ rakam_eval_sdk-0.2.4rc6.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
9
+ rakam_eval_sdk-0.2.4rc6.dist-info/METADATA,sha256=y5CWr6fBQm989M1T-iHuz5YT0udkRCIyDZiOJAwdvCY,6022
10
+ rakam_eval_sdk-0.2.4rc6.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- rakam_eval_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- rakam_eval_sdk/cli.py,sha256=0KKHW6lDjJWtbL-eaYvNeaVfTLzCwipwFmk9x584jqo,21935
3
- rakam_eval_sdk/client.py,sha256=8KwpNt7WHgMfcXAQtrAlnUihai9TiADRieiuWeIxg6E,15575
4
- rakam_eval_sdk/decorators.py,sha256=GoaAqnKg-VeYf5eBI-mEgJj6Asqmdqw4QG_qqHu5x2s,1908
5
- rakam_eval_sdk/schema.py,sha256=S16lSC1p4KuYd9qWZ5aquK6S8AzUEDCZYc4VfI58r9k,3969
6
- rakam_eval_sdk/utils/decorator_utils.py,sha256=g0TjXtG9o4hwhUAFP8GJsXAkjhZhzeseTAg-YBFjj2g,1763
7
- rakam_eval_sdk-0.2.4rc4.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
8
- rakam_eval_sdk-0.2.4rc4.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
9
- rakam_eval_sdk-0.2.4rc4.dist-info/METADATA,sha256=LPz6o8z1S86_NY0P3JZS-W-SqqaaKNMQ9Lx_GPufYuk,6022
10
- rakam_eval_sdk-0.2.4rc4.dist-info/RECORD,,