rakam-eval-sdk 0.2.4rc1__py3-none-any.whl → 0.2.4rc3__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 +5 -3
- rakam_eval_sdk/decorators.py +7 -1
- rakam_eval_sdk/schema.py +3 -2
- {rakam_eval_sdk-0.2.4rc1.dist-info → rakam_eval_sdk-0.2.4rc3.dist-info}/METADATA +1 -1
- rakam_eval_sdk-0.2.4rc3.dist-info/RECORD +10 -0
- rakam_eval_sdk-0.2.4rc1.dist-info/RECORD +0 -10
- {rakam_eval_sdk-0.2.4rc1.dist-info → rakam_eval_sdk-0.2.4rc3.dist-info}/WHEEL +0 -0
- {rakam_eval_sdk-0.2.4rc1.dist-info → rakam_eval_sdk-0.2.4rc3.dist-info}/entry_points.txt +0 -0
rakam_eval_sdk/cli.py
CHANGED
|
@@ -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(
|
|
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(
|
|
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:
|
|
535
|
+
tag: List[str] = typer.Option(
|
|
534
536
|
[],
|
|
535
537
|
"--tag",
|
|
536
538
|
help="Label identifying a reference testcase",
|
rakam_eval_sdk/decorators.py
CHANGED
|
@@ -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,
|
|
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
|
|
rakam_eval_sdk/schema.py
CHANGED
|
@@ -94,7 +94,8 @@ MetricConfig = Annotated[
|
|
|
94
94
|
]
|
|
95
95
|
|
|
96
96
|
SchemaMetricConfig = Annotated[
|
|
97
|
-
Union[JsonCorrectnessConfig, FieldsPresenceConfig], Field(
|
|
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[
|
|
111
|
+
retrieval_context: Optional[List[str]] = None
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
class SchemaInputItem(InputItem):
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
rakam_eval_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
rakam_eval_sdk/cli.py,sha256=yhs-TSWrq-tCe5FtO50cqbqd66tBsAa2Tlav4ubMkrw,21931
|
|
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.4rc3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
8
|
+
rakam_eval_sdk-0.2.4rc3.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
|
|
9
|
+
rakam_eval_sdk-0.2.4rc3.dist-info/METADATA,sha256=AOfQvo5q_uIiEER-wdYCWWWUjxibRcyft89LpJPX_Tc,6022
|
|
10
|
+
rakam_eval_sdk-0.2.4rc3.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=HjymI0UTKRgJb-ewDuINuTtH605MkcB9nD0qNlbdFyc,21905
|
|
3
|
-
rakam_eval_sdk/client.py,sha256=8KwpNt7WHgMfcXAQtrAlnUihai9TiADRieiuWeIxg6E,15575
|
|
4
|
-
rakam_eval_sdk/decorators.py,sha256=_9VFQmoYWd6cqnNryZJWEwYHQRxY7vIOam4z45zBk3c,1794
|
|
5
|
-
rakam_eval_sdk/schema.py,sha256=DT-uQsE3XB7AAii68QACwIslLqXRQFb1c6efkqLQysI,3960
|
|
6
|
-
rakam_eval_sdk/utils/decorator_utils.py,sha256=g0TjXtG9o4hwhUAFP8GJsXAkjhZhzeseTAg-YBFjj2g,1763
|
|
7
|
-
rakam_eval_sdk-0.2.4rc1.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
8
|
-
rakam_eval_sdk-0.2.4rc1.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
|
|
9
|
-
rakam_eval_sdk-0.2.4rc1.dist-info/METADATA,sha256=Sy2Ghp5wcrmS7AzBkhp8C8LVb0dTS7tSNtgEAJCfbU8,6022
|
|
10
|
-
rakam_eval_sdk-0.2.4rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|