aiverify-moonshot 0.4.6__py3-none-any.whl → 0.4.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aiverify-moonshot
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary: AI Verify advances Gen AI testing with Project Moonshot.
5
5
  Project-URL: Repository, https://github.com/aiverify-foundation/moonshot
6
6
  Project-URL: Documentation, https://aiverify-foundation.github.io/moonshot/
@@ -15,38 +15,38 @@ Classifier: License :: OSI Approved :: Apache Software License
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Requires-Python: >=3.11
18
- Requires-Dist: datasets==2.20.0
18
+ Requires-Dist: datasets==2.21.0
19
19
  Requires-Dist: ijson==3.3.0
20
20
  Requires-Dist: jinja2==3.1.4
21
21
  Requires-Dist: numpy==1.26.4
22
22
  Requires-Dist: pandas==2.2.2
23
23
  Requires-Dist: pydantic==2.8.2
24
- Requires-Dist: pyparsing==3.1.2
24
+ Requires-Dist: pyparsing==3.1.4
25
25
  Requires-Dist: python-dotenv==1.0.1
26
26
  Requires-Dist: python-slugify==8.0.4
27
- Requires-Dist: xxhash==3.4.1
27
+ Requires-Dist: xxhash==3.5.0
28
28
  Provides-Extra: all
29
29
  Requires-Dist: cmd2==2.4.3; extra == 'all'
30
30
  Requires-Dist: dependency-injector==4.41.0; extra == 'all'
31
- Requires-Dist: fastapi==0.112.0; extra == 'all'
32
- Requires-Dist: rich==13.7.1; extra == 'all'
31
+ Requires-Dist: fastapi==0.112.2; extra == 'all'
32
+ Requires-Dist: rich==13.8.0; extra == 'all'
33
33
  Requires-Dist: typing-extensions==4.12.2; extra == 'all'
34
- Requires-Dist: uvicorn==0.30.5; extra == 'all'
34
+ Requires-Dist: uvicorn==0.30.6; extra == 'all'
35
35
  Provides-Extra: cli
36
36
  Requires-Dist: cmd2==2.4.3; extra == 'cli'
37
- Requires-Dist: rich==13.7.1; extra == 'cli'
37
+ Requires-Dist: rich==13.8.0; extra == 'cli'
38
38
  Provides-Extra: web-api
39
39
  Requires-Dist: dependency-injector==4.41.0; extra == 'web-api'
40
- Requires-Dist: fastapi==0.112.0; extra == 'web-api'
40
+ Requires-Dist: fastapi==0.112.2; extra == 'web-api'
41
41
  Requires-Dist: typing-extensions==4.12.2; extra == 'web-api'
42
- Requires-Dist: uvicorn==0.30.5; extra == 'web-api'
42
+ Requires-Dist: uvicorn==0.30.6; extra == 'web-api'
43
43
  Description-Content-Type: text/markdown
44
44
 
45
45
  <div align="center">
46
46
 
47
47
  ![Moonshot Logo](https://github.com/aiverify-foundation/moonshot/raw/main/misc/aiverify-moonshot-logo.png)
48
48
 
49
- **Version 0.4.6**
49
+ **Version 0.4.7**
50
50
 
51
51
  A simple and modular tool to evaluate any LLM application.
52
52
 
@@ -83,7 +83,7 @@ In this initial version, Moonshot can be used through several interfaces:
83
83
  # Activate the virtual environment
84
84
  source venv/bin/activate
85
85
  ```
86
- 4. If you plan to install our Web UI, you will also need [Node.js verion 20.11.1 LTS](https://nodejs.org/en/blog/release/v20.11.1) and above
86
+ 4. If you plan to install our Web UI, you will also need [Node.js version 20.11.1 LTS](https://nodejs.org/en/blog/release/v20.11.1) and above
87
87
  </br>
88
88
 
89
89
  ### ⬇️ Installation
@@ -6,7 +6,7 @@ moonshot/integrations/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
6
6
  moonshot/integrations/cli/__main__.py,sha256=0VnYSj2AayvDCZ3uXpldPcjMHt2Yd7BWojWzFOGSSl4,679
7
7
  moonshot/integrations/cli/active_session_cfg.py,sha256=n8hOFxFjvz26qbEFY4q7iPUZYrGLoeCmXJxmOb_xWUE,20
8
8
  moonshot/integrations/cli/cli.py,sha256=9tnzcxcSOjblxCUpyh3pK0ke0bLs3s-63OxXtYoZI2g,2769
9
- moonshot/integrations/cli/cli_errors.py,sha256=BhA7k7leuPe3ms2W25iip_yqjrhWKmTaZ2iz1OSjBvE,22981
9
+ moonshot/integrations/cli/cli_errors.py,sha256=vH7oUBjTD7pLqG7jwKv4bsKhvsSb6_3WSRbaeWWc4oI,22981
10
10
  moonshot/integrations/cli/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  moonshot/integrations/cli/benchmark/benchmark.py,sha256=QUxr6DU11-XeH6Y3j1uPsZsotshgy64G_cWNf0Rn2_U,6303
12
12
  moonshot/integrations/cli/benchmark/cookbook.py,sha256=h9exPhLKLRa9a1qWB2WptZ35gcVov332tjHDO9ECs0o,29639
@@ -18,7 +18,7 @@ moonshot/integrations/cli/benchmark/run.py,sha256=HBztvG_Zkg1ZAWsFv0QDE43FaEmx92
18
18
  moonshot/integrations/cli/benchmark/runner.py,sha256=Y4Vt6Qqn9QzsM6eLUM9m2_XKkW3ctu-2jMTSei_TDPU,7098
19
19
  moonshot/integrations/cli/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  moonshot/integrations/cli/common/common.py,sha256=hSvxj-T91nhKfJtQqxrIPgYdS8P_g7wbOwpFpqBg90I,3090
21
- moonshot/integrations/cli/common/connectors.py,sha256=0KoCji-a6AJ0GLqpDdgm4mcfj-FzNW2DOsuQ0Fi_gwc,19445
21
+ moonshot/integrations/cli/common/connectors.py,sha256=7fcmzNU8iPodc8SPhO8kEn0fMrS8voCvy12QBm8PP00,19477
22
22
  moonshot/integrations/cli/common/dataset.py,sha256=6v5qXgWBGhT4Rl5uuqPMwLeFF0c5m7ECzyGe1IFXNW0,4743
23
23
  moonshot/integrations/cli/common/display_helper.py,sha256=8rVowW33XK0j0C_X_H1jUbFlFk1Y2WpzxmIUE3Ca5Co,1459
24
24
  moonshot/integrations/cli/common/prompt_template.py,sha256=2cXWeHh16EUvzYFre7juMxT2R0x3kqDJVucH0bKLmCU,6351
@@ -34,7 +34,7 @@ moonshot/integrations/cli/utils/process_data.py,sha256=QVL5vp2_8ZgGicmCAdeYEHkeb
34
34
  moonshot/integrations/web_api/.env.dev,sha256=0z5_Ut8rF-UqFZtgjkH2qoqORhD5_nSs2w_OeX2SteI,182
35
35
  moonshot/integrations/web_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  moonshot/integrations/web_api/__main__.py,sha256=MdnLi_ZF-olAAEJwTPU1iGYFYwo-fNWNT2qfchkH3y4,2050
37
- moonshot/integrations/web_api/app.py,sha256=x9QTqkHy4zfnQTA0UJVFHht0vSuDs1BZphjLfhFjsVY,3651
37
+ moonshot/integrations/web_api/app.py,sha256=vTg7yjkKZLL_uOYkbaMrpJmqNV7NJh2SRKqvIZzOn9A,3651
38
38
  moonshot/integrations/web_api/container.py,sha256=DVkJG_qm7ItcG6tgMYOqIj07wpKhPWOOfy6-bEv72y4,5915
39
39
  moonshot/integrations/web_api/logging_conf.py,sha256=t3EGRV6tZhV732KXe8_Tiy0fiwVAWxZX5Tt8VTgrrfg,3388
40
40
  moonshot/integrations/web_api/log/.gitkeep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -171,9 +171,9 @@ moonshot/src/utils/import_modules.py,sha256=T9zTN59PFnvY2rjyWhSV9KSIAHxWV1pyBemF
171
171
  moonshot/src/utils/log.py,sha256=YNgD7Eh2OT36XlmVBKCGUTAh9TRp4Akfe4kDdvHASgs,2502
172
172
  moonshot/src/utils/pagination.py,sha256=5seymyRoqyENIhKllAatr1T91kMCGFslcvRnJHyMSvc,814
173
173
  moonshot/src/utils/timeit.py,sha256=TvuF0w8KWhp0oZFY0cUU3UY0xlGKjchb0OkfYfgVTlc,866
174
- aiverify_moonshot-0.4.6.dist-info/METADATA,sha256=PM15lwqxY3nBr-fbxQp44E_wMZyxKBOCq0r_hYiSFTI,12397
175
- aiverify_moonshot-0.4.6.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
176
- aiverify_moonshot-0.4.6.dist-info/licenses/AUTHORS.md,sha256=mmAbe3i3sT8JZHJMBhxp3i1xRehV0g7WB4T_eyIBuBs,59
177
- aiverify_moonshot-0.4.6.dist-info/licenses/LICENSE.md,sha256=mDOKOkWFbJmUORaAchXByEVGC1jw37QRn-zS14wY_wM,11347
178
- aiverify_moonshot-0.4.6.dist-info/licenses/NOTICES.md,sha256=0Ikx6IBGGQEOJeNb2MkRoXxTXwrtlMz6EDgLBFIz6v0,179593
179
- aiverify_moonshot-0.4.6.dist-info/RECORD,,
174
+ aiverify_moonshot-0.4.7.dist-info/METADATA,sha256=nKWdJaFRMNmJkhbYQ2rYYV__3Jp1uXVYLP-l23JagYs,12398
175
+ aiverify_moonshot-0.4.7.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
176
+ aiverify_moonshot-0.4.7.dist-info/licenses/AUTHORS.md,sha256=mmAbe3i3sT8JZHJMBhxp3i1xRehV0g7WB4T_eyIBuBs,59
177
+ aiverify_moonshot-0.4.7.dist-info/licenses/LICENSE.md,sha256=mDOKOkWFbJmUORaAchXByEVGC1jw37QRn-zS14wY_wM,11347
178
+ aiverify_moonshot-0.4.7.dist-info/licenses/NOTICES.md,sha256=0Ikx6IBGGQEOJeNb2MkRoXxTXwrtlMz6EDgLBFIz6v0,179593
179
+ aiverify_moonshot-0.4.7.dist-info/RECORD,,
@@ -392,10 +392,10 @@ ERROR_COMMON_UPDATE_ENDPOINT_ENDPOINT_VALIDATION = (
392
392
  "The 'endpoint' argument must be a non-empty string and not None."
393
393
  )
394
394
  ERROR_COMMON_UPDATE_ENDPOINT_VALUES_VALIDATION = (
395
- "The 'update_values' argument must be a non-empty string and not None."
395
+ "The 'update_kwargs' argument must be a non-empty string and not None."
396
396
  )
397
397
  ERROR_COMMON_UPDATE_ENDPOINT_VALUES_VALIDATION_1 = (
398
- "The 'update_values' argument must evaluate to a list of tuples."
398
+ "The 'update_kwargs' argument must evaluate to a list of tuples."
399
399
  )
400
400
 
401
401
  # ------------------------------------------------------------------------------
@@ -280,19 +280,19 @@ def update_endpoint(args) -> None:
280
280
  endpoint = args.endpoint
281
281
 
282
282
  if (
283
- args.update_values is None
284
- or not isinstance(args.update_values, str)
285
- or not args.update_values
283
+ args.update_kwargs is None
284
+ or not isinstance(args.update_kwargs, str)
285
+ or not args.update_kwargs
286
286
  ):
287
287
  raise ValueError(ERROR_COMMON_UPDATE_ENDPOINT_VALUES_VALIDATION)
288
288
 
289
- if literal_eval(args.update_values) and all(
290
- isinstance(i, tuple) for i in literal_eval(args.update_values)
289
+ if literal_eval(args.update_kwargs) and all(
290
+ isinstance(i, tuple) for i in literal_eval(args.update_kwargs)
291
291
  ):
292
- update_values = dict(literal_eval(args.update_values))
292
+ update_kwargs = dict(literal_eval(args.update_kwargs))
293
293
  else:
294
294
  raise ValueError(ERROR_COMMON_UPDATE_ENDPOINT_VALUES_VALIDATION_1)
295
- api_update_endpoint(endpoint, **update_values)
295
+ api_update_endpoint(endpoint, **update_kwargs)
296
296
  print("[update_endpoint]: Endpoint updated.")
297
297
  except Exception as e:
298
298
  print(f"[update_endpoint]: {str(e)}")
@@ -465,7 +465,7 @@ update_endpoint_args = cmd2.Cmd2ArgumentParser(
465
465
  " params: Extra arguments for the endpoint\n\n"
466
466
  "Example:\n"
467
467
  " update_endpoint openai-gpt4 \"[('name', 'my-special-openai-endpoint'), "
468
- "('uri', 'my-uri-loc'), ('token', 'my-token-here')]\""
468
+ "('uri', 'my-uri-loc'), ('token', 'my-token-here'), ('params', {'hello': 'world'})]\""
469
469
  ),
470
470
  )
471
471
  update_endpoint_args.add_argument(
@@ -71,7 +71,7 @@ def create_app(cfg: providers.Configuration) -> CustomFastAPI:
71
71
  }
72
72
 
73
73
  app: CustomFastAPI = CustomFastAPI(
74
- title="Project Moonshot", version="0.4.6", **app_kwargs
74
+ title="Project Moonshot", version="0.4.7", **app_kwargs
75
75
  )
76
76
 
77
77
  if cfg.cors.enabled():