llm-evaluation-system 0.1.0__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.
Files changed (140) hide show
  1. llm_evaluation_system-0.1.0/LICENSE +175 -0
  2. llm_evaluation_system-0.1.0/NOTICE +1 -0
  3. llm_evaluation_system-0.1.0/PKG-INFO +228 -0
  4. llm_evaluation_system-0.1.0/README.md +175 -0
  5. llm_evaluation_system-0.1.0/backend/__init__.py +0 -0
  6. llm_evaluation_system-0.1.0/backend/api/__init__.py +0 -0
  7. llm_evaluation_system-0.1.0/backend/api/compare.py +347 -0
  8. llm_evaluation_system-0.1.0/backend/api/main.py +1366 -0
  9. llm_evaluation_system-0.1.0/backend/core/__init__.py +3 -0
  10. llm_evaluation_system-0.1.0/backend/core/agent.py +660 -0
  11. llm_evaluation_system-0.1.0/backend/core/bedrock_client.py +317 -0
  12. llm_evaluation_system-0.1.0/backend/core/chat.py +82 -0
  13. llm_evaluation_system-0.1.0/backend/core/database.py +277 -0
  14. llm_evaluation_system-0.1.0/backend/core/document_chunking.py +323 -0
  15. llm_evaluation_system-0.1.0/backend/core/eval_results.py +518 -0
  16. llm_evaluation_system-0.1.0/backend/core/inspect_viewer.py +128 -0
  17. llm_evaluation_system-0.1.0/backend/core/judge_config.py +163 -0
  18. llm_evaluation_system-0.1.0/backend/core/judge_prompt_builder.py +103 -0
  19. llm_evaluation_system-0.1.0/backend/core/judge_tools.py +121 -0
  20. llm_evaluation_system-0.1.0/backend/core/jury_scoring.py +200 -0
  21. llm_evaluation_system-0.1.0/backend/core/logging_utils.py +153 -0
  22. llm_evaluation_system-0.1.0/backend/core/mcp_client.py +426 -0
  23. llm_evaluation_system-0.1.0/backend/core/pdf_report.py +633 -0
  24. llm_evaluation_system-0.1.0/backend/core/pipeline_stages.py +101 -0
  25. llm_evaluation_system-0.1.0/backend/core/pricing.py +78 -0
  26. llm_evaluation_system-0.1.0/backend/core/s3_client.py +220 -0
  27. llm_evaluation_system-0.1.0/backend/core/user_storage.py +670 -0
  28. llm_evaluation_system-0.1.0/backend/mcp_servers/__init__.py +0 -0
  29. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/__init__.py +1 -0
  30. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/agent.py +449 -0
  31. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/server_http.py +114 -0
  32. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/tools/__init__.py +1 -0
  33. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/tools/analyze_dataset.py +297 -0
  34. llm_evaluation_system-0.1.0/backend/mcp_servers/dataset/tools/save_dataset.py +170 -0
  35. llm_evaluation_system-0.1.0/backend/mcp_servers/providers/external_providers.py +146 -0
  36. llm_evaluation_system-0.1.0/backend/mcp_servers/providers/server_http.py +341 -0
  37. llm_evaluation_system-0.1.0/backend/mcp_servers/server.py +14 -0
  38. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/__init__.py +9 -0
  39. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/server_http.py +708 -0
  40. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/__init__.py +1 -0
  41. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/analyze_agent_image.py +504 -0
  42. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/analyze_agent_path.py +172 -0
  43. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/create_agent_eval_config.py +366 -0
  44. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/create_eval_config.py +417 -0
  45. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/create_pipeline_eval_config.py +487 -0
  46. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/generate_judge.py +250 -0
  47. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/generate_qa_pairs.py +994 -0
  48. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/get_evaluation_details.py +134 -0
  49. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/list_datasets.py +71 -0
  50. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/list_eval_configs.py +77 -0
  51. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/list_evaluations.py +90 -0
  52. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/list_judges.py +64 -0
  53. llm_evaluation_system-0.1.0/backend/mcp_servers/synthetic/tools/run_evaluation.py +655 -0
  54. llm_evaluation_system-0.1.0/eval_mcp/__init__.py +3 -0
  55. llm_evaluation_system-0.1.0/eval_mcp/__main__.py +10 -0
  56. llm_evaluation_system-0.1.0/eval_mcp/bedrock.py +317 -0
  57. llm_evaluation_system-0.1.0/eval_mcp/bedrock_capture.py +246 -0
  58. llm_evaluation_system-0.1.0/eval_mcp/cli.py +125 -0
  59. llm_evaluation_system-0.1.0/eval_mcp/config.py +71 -0
  60. llm_evaluation_system-0.1.0/eval_mcp/core/__init__.py +6 -0
  61. llm_evaluation_system-0.1.0/eval_mcp/core/bedrock_client.py +317 -0
  62. llm_evaluation_system-0.1.0/eval_mcp/core/document_chunking.py +323 -0
  63. llm_evaluation_system-0.1.0/eval_mcp/core/eval_results.py +529 -0
  64. llm_evaluation_system-0.1.0/eval_mcp/core/judge_config.py +163 -0
  65. llm_evaluation_system-0.1.0/eval_mcp/core/logging_utils.py +153 -0
  66. llm_evaluation_system-0.1.0/eval_mcp/core/pdf_report.py +633 -0
  67. llm_evaluation_system-0.1.0/eval_mcp/core/pipeline_stages.py +101 -0
  68. llm_evaluation_system-0.1.0/eval_mcp/core/pricing.py +88 -0
  69. llm_evaluation_system-0.1.0/eval_mcp/core/provider_pricing.json +394 -0
  70. llm_evaluation_system-0.1.0/eval_mcp/core/s3_client.py +220 -0
  71. llm_evaluation_system-0.1.0/eval_mcp/core/user_storage.py +670 -0
  72. llm_evaluation_system-0.1.0/eval_mcp/judge_config.py +163 -0
  73. llm_evaluation_system-0.1.0/eval_mcp/pricing.py +78 -0
  74. llm_evaluation_system-0.1.0/eval_mcp/provider_pricing.json +394 -0
  75. llm_evaluation_system-0.1.0/eval_mcp/s3_sync.py +302 -0
  76. llm_evaluation_system-0.1.0/eval_mcp/server.py +1083 -0
  77. llm_evaluation_system-0.1.0/eval_mcp/storage.py +152 -0
  78. llm_evaluation_system-0.1.0/eval_mcp/tools/__init__.py +0 -0
  79. llm_evaluation_system-0.1.0/eval_mcp/tools/agent.py +449 -0
  80. llm_evaluation_system-0.1.0/eval_mcp/tools/analyze_agent_image.py +506 -0
  81. llm_evaluation_system-0.1.0/eval_mcp/tools/analyze_agent_path.py +174 -0
  82. llm_evaluation_system-0.1.0/eval_mcp/tools/analyze_dataset.py +319 -0
  83. llm_evaluation_system-0.1.0/eval_mcp/tools/create_agent_eval_config.py +368 -0
  84. llm_evaluation_system-0.1.0/eval_mcp/tools/create_config.py +368 -0
  85. llm_evaluation_system-0.1.0/eval_mcp/tools/create_pipeline_eval_config.py +487 -0
  86. llm_evaluation_system-0.1.0/eval_mcp/tools/external_providers.py +146 -0
  87. llm_evaluation_system-0.1.0/eval_mcp/tools/generate_judge.py +250 -0
  88. llm_evaluation_system-0.1.0/eval_mcp/tools/generate_qa.py +994 -0
  89. llm_evaluation_system-0.1.0/eval_mcp/tools/generate_report.py +93 -0
  90. llm_evaluation_system-0.1.0/eval_mcp/tools/get_evaluation_details.py +134 -0
  91. llm_evaluation_system-0.1.0/eval_mcp/tools/list_datasets.py +71 -0
  92. llm_evaluation_system-0.1.0/eval_mcp/tools/list_eval_configs.py +77 -0
  93. llm_evaluation_system-0.1.0/eval_mcp/tools/list_evaluations.py +90 -0
  94. llm_evaluation_system-0.1.0/eval_mcp/tools/list_judges.py +64 -0
  95. llm_evaluation_system-0.1.0/eval_mcp/tools/models.py +146 -0
  96. llm_evaluation_system-0.1.0/eval_mcp/tools/run_eval.py +693 -0
  97. llm_evaluation_system-0.1.0/eval_mcp/tools/save_dataset.py +192 -0
  98. llm_evaluation_system-0.1.0/eval_mcp/tools/server_http.py +341 -0
  99. llm_evaluation_system-0.1.0/eval_mcp/viewer.py +195 -0
  100. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/404.html +1 -0
  101. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/Mg1hQ5KJGpS7hl9NEzqRZ/_buildManifest.js +1 -0
  102. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/Mg1hQ5KJGpS7hl9NEzqRZ/_ssgManifest.js +1 -0
  103. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/255-6b79f309a27fb98b.js +1 -0
  104. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/4bd1b696-c023c6e3521b1417.js +1 -0
  105. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/633-0030f140570bab76.js +1 -0
  106. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/709-cf33b6ccc6fdbb71.js +1 -0
  107. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/_not-found/page-cd5373c361106a7f.js +1 -0
  108. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/chat/page-44b7594ba1469fcc.js +1 -0
  109. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/history/page-94442c60a89495e2.js +1 -0
  110. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/layout-eaaa69189c17325d.js +1 -0
  111. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/page-e6485ae15d5da087.js +1 -0
  112. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/app/results/page-4cc299acecefa446.js +1 -0
  113. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/framework-292291387d6b2e39.js +1 -0
  114. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/main-app-446b6bab9e866ff3.js +1 -0
  115. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/main-c05c20f710fed608.js +1 -0
  116. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/pages/_app-7d307437aca18ad4.js +1 -0
  117. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/pages/_error-cb2a52f75f2162e2.js +1 -0
  118. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  119. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/chunks/webpack-3844d017889aa547.js +1 -0
  120. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/_next/static/css/635eece9e6209c32.css +3 -0
  121. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/chat.html +1 -0
  122. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/chat.txt +20 -0
  123. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/history.html +1 -0
  124. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/history.txt +20 -0
  125. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/index.html +1 -0
  126. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/index.txt +20 -0
  127. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/results.html +1 -0
  128. llm_evaluation_system-0.1.0/eval_mcp/viewer_static/results.txt +20 -0
  129. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/PKG-INFO +228 -0
  130. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/SOURCES.txt +138 -0
  131. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/dependency_links.txt +1 -0
  132. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/entry_points.txt +3 -0
  133. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/requires.txt +38 -0
  134. llm_evaluation_system-0.1.0/llm_evaluation_system.egg-info/top_level.txt +2 -0
  135. llm_evaluation_system-0.1.0/pyproject.toml +101 -0
  136. llm_evaluation_system-0.1.0/setup.cfg +4 -0
  137. llm_evaluation_system-0.1.0/tests/test_generate_qa_pairs.py +69 -0
  138. llm_evaluation_system-0.1.0/tests/test_generate_test_cases.py +51 -0
  139. llm_evaluation_system-0.1.0/tests/test_http_server.py +43 -0
  140. llm_evaluation_system-0.1.0/tests/test_multi_mcp.py +70 -0
@@ -0,0 +1,175 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
@@ -0,0 +1 @@
1
+ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -0,0 +1,228 @@
1
+ Metadata-Version: 2.4
2
+ Name: llm-evaluation-system
3
+ Version: 0.1.0
4
+ Summary: MCP server for agentic LLM evaluation: jury scoring, agent tracing via OpenTelemetry, document-grounded QA generation, PDF reports.
5
+ Author: AWS
6
+ License: Apache-2.0
7
+ Keywords: mcp,llm,evaluation,inspect-ai,bedrock,opentelemetry,claude-code
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
14
+ Requires-Python: >=3.12
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ License-File: NOTICE
18
+ Requires-Dist: mcp>=1.0.0
19
+ Requires-Dist: inspect-ai>=0.3.0
20
+ Requires-Dist: boto3>=1.35.0
21
+ Requires-Dist: click>=8.1.7
22
+ Requires-Dist: rich>=13.7.0
23
+ Requires-Dist: prompt-toolkit>=3.0.43
24
+ Requires-Dist: pydantic>=2.0.0
25
+ Requires-Dist: anyio>=4.0.0
26
+ Requires-Dist: opentelemetry-instrumentation-botocore>=0.50b0
27
+ Requires-Dist: opentelemetry-sdk>=1.30
28
+ Requires-Dist: fastapi>=0.104.1
29
+ Requires-Dist: uvicorn[standard]>=0.24.0
30
+ Requires-Dist: httpx>=0.27.0
31
+ Requires-Dist: pypdf>=4.0.0
32
+ Requires-Dist: fpdf2>=2.8.0
33
+ Provides-Extra: providers
34
+ Requires-Dist: openai>=2.26.0; extra == "providers"
35
+ Requires-Dist: anthropic>=0.80.0; extra == "providers"
36
+ Requires-Dist: google-genai>=1.69.0; extra == "providers"
37
+ Requires-Dist: azure-identity; extra == "providers"
38
+ Requires-Dist: azure-ai-inference; extra == "providers"
39
+ Requires-Dist: groq>=0.28.0; extra == "providers"
40
+ Requires-Dist: mistralai>=2.0.0; extra == "providers"
41
+ Provides-Extra: k8s-sandbox
42
+ Requires-Dist: inspect-k8s-sandbox>=0.4.0; extra == "k8s-sandbox"
43
+ Provides-Extra: backend
44
+ Requires-Dist: asyncpg>=0.30.0; extra == "backend"
45
+ Provides-Extra: dev
46
+ Requires-Dist: watchfiles>=1.0.0; extra == "dev"
47
+ Requires-Dist: pytest>=9.0.3; extra == "dev"
48
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
49
+ Requires-Dist: black>=23.0.0; extra == "dev"
50
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
51
+ Requires-Dist: mypy>=1.5.0; extra == "dev"
52
+ Dynamic: license-file
53
+
54
+ # Agentic AI-Guided Evaluation Platform
55
+
56
+ An LLM evaluation platform that works as an MCP server in your IDE. An expert AI agent guides you through the entire evaluation process via natural conversation: describe what you want to evaluate, upload documents, and the agent handles dataset generation, judge configuration, execution, and analysis.
57
+
58
+ ## Features
59
+
60
+ - **Expert agent interface** — The agent knows evaluation best practices, recommends criteria and validates configurations before execution. No config files or CLI expertise needed.
61
+ - **Jury system** — Multiple judges from different model families (e.g. Claude Sonnet, Nova Pro, Nemotron) each evaluate distinct aspects of every response — correctness, reasoning, completeness. Combining diverse judge families reduces self-preference bias, and aggregating weak signals from diverse judges and criteria produces stronger results than any single judge ([Verma et al., 2025](https://arxiv.org/abs/2502.20379), [Frick et al., 2025](https://arxiv.org/abs/2506.18203)).
62
+ - **Adaptable binary scoring** — Binary pass/fail per criteria rather than subjective numeric scales, shown to produce more reliable results across judges ([Chiang et al., 2025](https://arxiv.org/abs/2503.23339v2)). Criteria are tailored by the agent to what you're evaluating.
63
+ - **Document-grounded synthetic data** — Upload PDFs, knowledge bases, or product docs and generate QA pairs grounded in your actual content, reflecting real customer scenarios.
64
+ - **Agentic eval support** — Evaluate any agent calling Bedrock (Strands, LangChain, custom boto3) with zero code modification via OpenTelemetry instrumentation.
65
+
66
+ ## Quick Start (MCP)
67
+
68
+ ### Prerequisites
69
+
70
+ - Python 3.11+
71
+ - AWS credentials with Bedrock model access
72
+ - Claude Code, Cursor, Kiro, or any MCP-compatible IDE
73
+
74
+ ### Install
75
+
76
+ ```bash
77
+ git clone https://github.com/awslabs/llm-evaluation-system.git && cd llm-evaluation-system
78
+ uv pip install -e .
79
+ ```
80
+
81
+ ### Add to your IDE
82
+
83
+ **Claude Code** — add to `.claude/settings.json`:
84
+ ```json
85
+ {
86
+ "mcpServers": {
87
+ "eval": {
88
+ "command": "eval-mcp"
89
+ }
90
+ }
91
+ }
92
+ ```
93
+
94
+ **Cursor / VS Code** — add to MCP settings:
95
+ ```json
96
+ {
97
+ "eval": {
98
+ "command": "eval-mcp"
99
+ }
100
+ }
101
+ ```
102
+
103
+ **Kiro** — add to `.kiro/settings/mcp.json` (or your user-level Kiro MCP config):
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "eval": {
108
+ "command": "eval-mcp"
109
+ }
110
+ }
111
+ }
112
+ ```
113
+
114
+ ### Use
115
+
116
+ Just ask your AI assistant:
117
+
118
+ - "Evaluate my RAG pipeline on these documents"
119
+ - "Generate a QA dataset from this PDF"
120
+ - "Compare Claude Sonnet vs Nova Pro on my test cases"
121
+ - "Run an agent eval on my Strands agent"
122
+
123
+ The agent handles the rest.
124
+
125
+ ### View Results
126
+
127
+ ```bash
128
+ eval-mcp view
129
+ ```
130
+
131
+ Opens the comparison viewer at http://localhost:4001.
132
+
133
+ ## Team Sharing (S3)
134
+
135
+ Share datasets, judges, configs, and eval results across your team via a shared S3 bucket. No servers needed.
136
+
137
+ ### Setup
138
+
139
+ ```bash
140
+ eval-mcp config set bucket my-team-evals
141
+ ```
142
+
143
+ User identity is auto-detected from your AWS credentials. Projects are auto-discovered from the bucket.
144
+
145
+ ### How it works
146
+
147
+ ```
148
+ s3://my-team-evals/
149
+ users/alice/ ← Alice's evals, datasets, judges, configs (auto-replicated on every write)
150
+ users/bob/ ← Bob's
151
+ projects/project-alpha/ ← shared team evals
152
+ projects/project-beta/ ← shared team evals
153
+ ```
154
+
155
+ - Every write (eval result, dataset, judge, config, PDF report) auto-replicates to `users/{you}/` in the background
156
+ - Every list/read auto-pulls from S3 first (debounced, ~100ms) so your local state mirrors S3
157
+ - `eval-mcp share my-project` → promote your stuff to a shared project prefix
158
+ - `eval-mcp sync` → manual reconcile (used after long offline periods or on a fresh laptop)
159
+
160
+ ### Create the bucket
161
+
162
+ ```bash
163
+ cd infra/modules/eval-logs-bucket
164
+ terraform init
165
+ terraform apply -var="bucket_name=my-team-evals"
166
+ ```
167
+
168
+ ## Self-host the MCP
169
+
170
+ To run `eval-mcp` on a shared host (EC2, EKS, AgentCore, anywhere Python runs) so a team or CI pipeline points at one HTTP endpoint, see [docs/SELF_HOSTING.md](docs/SELF_HOSTING.md). A `Dockerfile` is included at the repo root.
171
+
172
+ This is the lightweight path — just the eval engine + viewer. For the full multi-user web app with chat, auth, and per-user isolation, see [Deploy Full Platform on EKS](#deploy-full-platform-on-eks) below.
173
+
174
+ ## Agent Evaluation
175
+
176
+ Evaluate any agent that calls Bedrock via boto3 — no code modification needed.
177
+
178
+ The platform uses OpenTelemetry to intercept all Bedrock API calls at the botocore layer. Your agent runs unmodified; the instrumentation captures every LLM interaction (messages, tool calls, token usage) and feeds them into Inspect AI for scoring.
179
+
180
+ ```python
181
+ # Your agent — completely unmodified
182
+ def my_agent(prompt):
183
+ client = boto3.client("bedrock-runtime")
184
+ response = client.converse(modelId="us.anthropic.claude-sonnet-4-6", ...)
185
+ return response
186
+
187
+ # Eval wraps it transparently
188
+ with bedrock_capture():
189
+ result = my_agent("What is 2+2?")
190
+ ```
191
+
192
+ Works with Strands, LangChain, CrewAI, Claude Agent SDK, or any custom agent using boto3.
193
+
194
+ ## Deploy Full Platform on EKS
195
+
196
+ For multi-user deployment with authentication and a polished web UI, run the full platform on EKS:
197
+
198
+ ```bash
199
+ ./deploy.sh
200
+ ```
201
+
202
+ The script auto-installs Terraform, kubectl, and Helm, then deploys the complete platform with Cognito auth, CloudFront, WAF, and per-user isolation. See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for details.
203
+
204
+ ### User Management
205
+
206
+ ```bash
207
+ ./manage-users.sh create user@example.com
208
+ ./manage-users.sh list
209
+ ./manage-users.sh delete user@example.com
210
+ ```
211
+
212
+ ### Teardown
213
+
214
+ ```bash
215
+ ./destroy.sh
216
+ ```
217
+
218
+ ## Local Development
219
+
220
+ For working on the platform itself with hot reload (full web UI in Docker Compose), see [local/README.md](local/README.md).
221
+
222
+ ## Acknowledgments
223
+
224
+ This platform is built on [Inspect AI](https://github.com/UKGovernmentBEIS/inspect_ai) by the UK AI Security Institute, an open-source framework for large language model evaluations.
225
+
226
+ ## Legal Disclaimer
227
+
228
+ Sample code, software libraries, command line tools, proofs of concept, templates, or other related technology are provided as AWS Content or Third-Party Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content or Third-Party Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content or Third-Party Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content or Third-Party Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.
@@ -0,0 +1,175 @@
1
+ # Agentic AI-Guided Evaluation Platform
2
+
3
+ An LLM evaluation platform that works as an MCP server in your IDE. An expert AI agent guides you through the entire evaluation process via natural conversation: describe what you want to evaluate, upload documents, and the agent handles dataset generation, judge configuration, execution, and analysis.
4
+
5
+ ## Features
6
+
7
+ - **Expert agent interface** — The agent knows evaluation best practices, recommends criteria and validates configurations before execution. No config files or CLI expertise needed.
8
+ - **Jury system** — Multiple judges from different model families (e.g. Claude Sonnet, Nova Pro, Nemotron) each evaluate distinct aspects of every response — correctness, reasoning, completeness. Combining diverse judge families reduces self-preference bias, and aggregating weak signals from diverse judges and criteria produces stronger results than any single judge ([Verma et al., 2025](https://arxiv.org/abs/2502.20379), [Frick et al., 2025](https://arxiv.org/abs/2506.18203)).
9
+ - **Adaptable binary scoring** — Binary pass/fail per criteria rather than subjective numeric scales, shown to produce more reliable results across judges ([Chiang et al., 2025](https://arxiv.org/abs/2503.23339v2)). Criteria are tailored by the agent to what you're evaluating.
10
+ - **Document-grounded synthetic data** — Upload PDFs, knowledge bases, or product docs and generate QA pairs grounded in your actual content, reflecting real customer scenarios.
11
+ - **Agentic eval support** — Evaluate any agent calling Bedrock (Strands, LangChain, custom boto3) with zero code modification via OpenTelemetry instrumentation.
12
+
13
+ ## Quick Start (MCP)
14
+
15
+ ### Prerequisites
16
+
17
+ - Python 3.11+
18
+ - AWS credentials with Bedrock model access
19
+ - Claude Code, Cursor, Kiro, or any MCP-compatible IDE
20
+
21
+ ### Install
22
+
23
+ ```bash
24
+ git clone https://github.com/awslabs/llm-evaluation-system.git && cd llm-evaluation-system
25
+ uv pip install -e .
26
+ ```
27
+
28
+ ### Add to your IDE
29
+
30
+ **Claude Code** — add to `.claude/settings.json`:
31
+ ```json
32
+ {
33
+ "mcpServers": {
34
+ "eval": {
35
+ "command": "eval-mcp"
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ **Cursor / VS Code** — add to MCP settings:
42
+ ```json
43
+ {
44
+ "eval": {
45
+ "command": "eval-mcp"
46
+ }
47
+ }
48
+ ```
49
+
50
+ **Kiro** — add to `.kiro/settings/mcp.json` (or your user-level Kiro MCP config):
51
+ ```json
52
+ {
53
+ "mcpServers": {
54
+ "eval": {
55
+ "command": "eval-mcp"
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ ### Use
62
+
63
+ Just ask your AI assistant:
64
+
65
+ - "Evaluate my RAG pipeline on these documents"
66
+ - "Generate a QA dataset from this PDF"
67
+ - "Compare Claude Sonnet vs Nova Pro on my test cases"
68
+ - "Run an agent eval on my Strands agent"
69
+
70
+ The agent handles the rest.
71
+
72
+ ### View Results
73
+
74
+ ```bash
75
+ eval-mcp view
76
+ ```
77
+
78
+ Opens the comparison viewer at http://localhost:4001.
79
+
80
+ ## Team Sharing (S3)
81
+
82
+ Share datasets, judges, configs, and eval results across your team via a shared S3 bucket. No servers needed.
83
+
84
+ ### Setup
85
+
86
+ ```bash
87
+ eval-mcp config set bucket my-team-evals
88
+ ```
89
+
90
+ User identity is auto-detected from your AWS credentials. Projects are auto-discovered from the bucket.
91
+
92
+ ### How it works
93
+
94
+ ```
95
+ s3://my-team-evals/
96
+ users/alice/ ← Alice's evals, datasets, judges, configs (auto-replicated on every write)
97
+ users/bob/ ← Bob's
98
+ projects/project-alpha/ ← shared team evals
99
+ projects/project-beta/ ← shared team evals
100
+ ```
101
+
102
+ - Every write (eval result, dataset, judge, config, PDF report) auto-replicates to `users/{you}/` in the background
103
+ - Every list/read auto-pulls from S3 first (debounced, ~100ms) so your local state mirrors S3
104
+ - `eval-mcp share my-project` → promote your stuff to a shared project prefix
105
+ - `eval-mcp sync` → manual reconcile (used after long offline periods or on a fresh laptop)
106
+
107
+ ### Create the bucket
108
+
109
+ ```bash
110
+ cd infra/modules/eval-logs-bucket
111
+ terraform init
112
+ terraform apply -var="bucket_name=my-team-evals"
113
+ ```
114
+
115
+ ## Self-host the MCP
116
+
117
+ To run `eval-mcp` on a shared host (EC2, EKS, AgentCore, anywhere Python runs) so a team or CI pipeline points at one HTTP endpoint, see [docs/SELF_HOSTING.md](docs/SELF_HOSTING.md). A `Dockerfile` is included at the repo root.
118
+
119
+ This is the lightweight path — just the eval engine + viewer. For the full multi-user web app with chat, auth, and per-user isolation, see [Deploy Full Platform on EKS](#deploy-full-platform-on-eks) below.
120
+
121
+ ## Agent Evaluation
122
+
123
+ Evaluate any agent that calls Bedrock via boto3 — no code modification needed.
124
+
125
+ The platform uses OpenTelemetry to intercept all Bedrock API calls at the botocore layer. Your agent runs unmodified; the instrumentation captures every LLM interaction (messages, tool calls, token usage) and feeds them into Inspect AI for scoring.
126
+
127
+ ```python
128
+ # Your agent — completely unmodified
129
+ def my_agent(prompt):
130
+ client = boto3.client("bedrock-runtime")
131
+ response = client.converse(modelId="us.anthropic.claude-sonnet-4-6", ...)
132
+ return response
133
+
134
+ # Eval wraps it transparently
135
+ with bedrock_capture():
136
+ result = my_agent("What is 2+2?")
137
+ ```
138
+
139
+ Works with Strands, LangChain, CrewAI, Claude Agent SDK, or any custom agent using boto3.
140
+
141
+ ## Deploy Full Platform on EKS
142
+
143
+ For multi-user deployment with authentication and a polished web UI, run the full platform on EKS:
144
+
145
+ ```bash
146
+ ./deploy.sh
147
+ ```
148
+
149
+ The script auto-installs Terraform, kubectl, and Helm, then deploys the complete platform with Cognito auth, CloudFront, WAF, and per-user isolation. See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for details.
150
+
151
+ ### User Management
152
+
153
+ ```bash
154
+ ./manage-users.sh create user@example.com
155
+ ./manage-users.sh list
156
+ ./manage-users.sh delete user@example.com
157
+ ```
158
+
159
+ ### Teardown
160
+
161
+ ```bash
162
+ ./destroy.sh
163
+ ```
164
+
165
+ ## Local Development
166
+
167
+ For working on the platform itself with hot reload (full web UI in Docker Compose), see [local/README.md](local/README.md).
168
+
169
+ ## Acknowledgments
170
+
171
+ This platform is built on [Inspect AI](https://github.com/UKGovernmentBEIS/inspect_ai) by the UK AI Security Institute, an open-source framework for large language model evaluations.
172
+
173
+ ## Legal Disclaimer
174
+
175
+ Sample code, software libraries, command line tools, proofs of concept, templates, or other related technology are provided as AWS Content or Third-Party Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You should not use this AWS Content or Third-Party Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content or Third-Party Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content or Third-Party Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances or using Amazon S3 storage.
File without changes
File without changes