multivon-eval 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 (27) hide show
  1. multivon_eval-0.1.0/LICENSE +185 -0
  2. multivon_eval-0.1.0/PKG-INFO +387 -0
  3. multivon_eval-0.1.0/README.md +353 -0
  4. multivon_eval-0.1.0/multivon_eval/__init__.py +56 -0
  5. multivon_eval-0.1.0/multivon_eval/case.py +57 -0
  6. multivon_eval-0.1.0/multivon_eval/cli.py +72 -0
  7. multivon_eval-0.1.0/multivon_eval/dataset.py +50 -0
  8. multivon_eval-0.1.0/multivon_eval/evaluators/__init__.py +35 -0
  9. multivon_eval-0.1.0/multivon_eval/evaluators/agent.py +223 -0
  10. multivon_eval-0.1.0/multivon_eval/evaluators/base.py +27 -0
  11. multivon_eval-0.1.0/multivon_eval/evaluators/conversation.py +136 -0
  12. multivon_eval-0.1.0/multivon_eval/evaluators/deterministic.py +252 -0
  13. multivon_eval-0.1.0/multivon_eval/evaluators/llm_judge.py +396 -0
  14. multivon_eval-0.1.0/multivon_eval/reporters/__init__.py +0 -0
  15. multivon_eval-0.1.0/multivon_eval/reporters/terminal.py +64 -0
  16. multivon_eval-0.1.0/multivon_eval/result.py +145 -0
  17. multivon_eval-0.1.0/multivon_eval/suite.py +191 -0
  18. multivon_eval-0.1.0/multivon_eval.egg-info/PKG-INFO +387 -0
  19. multivon_eval-0.1.0/multivon_eval.egg-info/SOURCES.txt +25 -0
  20. multivon_eval-0.1.0/multivon_eval.egg-info/dependency_links.txt +1 -0
  21. multivon_eval-0.1.0/multivon_eval.egg-info/entry_points.txt +2 -0
  22. multivon_eval-0.1.0/multivon_eval.egg-info/requires.txt +12 -0
  23. multivon_eval-0.1.0/multivon_eval.egg-info/top_level.txt +1 -0
  24. multivon_eval-0.1.0/pyproject.toml +57 -0
  25. multivon_eval-0.1.0/setup.cfg +4 -0
  26. multivon_eval-0.1.0/tests/test_evaluators.py +108 -0
  27. multivon_eval-0.1.0/tests/test_multivon_eval.py +187 -0
@@ -0,0 +1,185 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and the Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of discussing and
55
+ improving the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any
81
+ Contribution embodied within the Work constitutes direct or contributory
82
+ patent infringement, then any patent licenses granted to You under
83
+ this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in the Source form of any Derivative Works
98
+ that You distribute, all copyright, patent, trademark, and
99
+ attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the License.
117
+
118
+ You may add Your own license statement for Your modifications and
119
+ may provide additional grant of rights to use, copy, modify, merge,
120
+ publish, distribute, sublicense, and/or sell copies of the
121
+ Derivative Works, and to permit persons to whom the Derivative Works
122
+ are furnished to do so, subject to the following conditions described
123
+ in this License.
124
+
125
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
126
+ any Contribution intentionally submitted for inclusion in the Work
127
+ by You to the Licensor shall be under the terms and conditions of
128
+ this License, without any additional terms or conditions.
129
+ Notwithstanding the above, nothing herein shall supersede or modify
130
+ the terms of any separate license agreement you may have executed
131
+ with Licensor regarding such Contributions.
132
+
133
+ 6. Trademarks. This License does not grant permission to use the trade
134
+ names, trademarks, service marks, or product names of the Licensor,
135
+ except as required for reasonable and customary use in describing the
136
+ origin of the Work and reproducing the content of the NOTICE file.
137
+
138
+ 7. Disclaimer of Warranty. Unless required by applicable law or
139
+ agreed to in writing, Licensor provides the Work (and each
140
+ Contributor provides its Contributions) on an "AS IS" BASIS,
141
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
142
+ implied, including, without limitation, any warranties or conditions
143
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
144
+ PARTICULAR PURPOSE. You are solely responsible for determining the
145
+ appropriateness of using or reproducing the Work and assume any
146
+ risks associated with Your exercise of permissions under this License.
147
+
148
+ 8. Limitation of Liability. In no event and under no legal theory,
149
+ whether in tort (including negligence), contract, or otherwise,
150
+ unless required by applicable law (such as deliberate and grossly
151
+ negligent acts) or agreed to in writing, shall any Contributor be
152
+ liable to You for damages, including any direct, indirect, special,
153
+ incidental, or exemplary damages of any character arising as a
154
+ result of this License or out of the use or inability to use the
155
+ Work (including but not limited to damages for loss of goodwill,
156
+ work stoppage, computer failure or malfunction, or all other
157
+ commercial damages or losses), even if such Contributor has been
158
+ advised of the possibility of such damages.
159
+
160
+ 9. Accepting Warranty or Liability. While redistributing the Work or
161
+ Derivative Works thereof, You may choose to offer, and charge a fee
162
+ for, acceptance of support, warranty, indemnity, or other liability
163
+ obligations and/or rights consistent with this License. However, in
164
+ accepting such obligations, You may offer such obligations only on
165
+ Your own behalf and on Your sole responsibility, not on behalf of
166
+ any other Contributor, and only if You agree to indemnify, defend,
167
+ and hold each Contributor harmless for any liability incurred by,
168
+ or claims asserted against, such Contributor by reason of your
169
+ accepting any warranty or additional liability.
170
+
171
+ END OF TERMS AND CONDITIONS
172
+
173
+ Copyright 2026 Multivon (https://multivon.ai)
174
+
175
+ Licensed under the Apache License, Version 2.0 (the "License");
176
+ you may not use this file except in compliance with the License.
177
+ You may obtain a copy of the License at
178
+
179
+ http://www.apache.org/licenses/LICENSE-2.0
180
+
181
+ Unless required by applicable law or agreed to in writing, software
182
+ distributed under the License is distributed on an "AS IS" BASIS,
183
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184
+ See the License for the specific language governing permissions and
185
+ limitations under the License.
@@ -0,0 +1,387 @@
1
+ Metadata-Version: 2.4
2
+ Name: multivon-eval
3
+ Version: 0.1.0
4
+ Summary: AI evaluation for teams that ship models to production
5
+ License: Apache-2.0
6
+ Project-URL: Homepage, https://multivon.ai
7
+ Project-URL: Repository, https://github.com/multivon-ai/multivon-eval
8
+ Project-URL: Documentation, https://evaldocs.multivon.ai
9
+ Project-URL: Bug Tracker, https://github.com/multivon-ai/multivon-eval/issues
10
+ Keywords: llm,evaluation,ai,evals,rag,agents,testing
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: anthropic>=0.40.0
23
+ Requires-Dist: openai>=1.50.0
24
+ Requires-Dist: jsonschema>=4.20.0
25
+ Requires-Dist: python-dotenv>=1.0.0
26
+ Requires-Dist: rich>=13.0.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
29
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
30
+ Requires-Dist: ruff>=0.3.0; extra == "dev"
31
+ Requires-Dist: build>=1.0.0; extra == "dev"
32
+ Requires-Dist: twine>=5.0.0; extra == "dev"
33
+ Dynamic: license-file
34
+
35
+ # multivon-eval
36
+
37
+ ![Python](https://img.shields.io/badge/python-3.10+-blue.svg)
38
+ ![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)
39
+ ![PyPI](https://img.shields.io/pypi/v/multivon-eval.svg)
40
+
41
+ **[Documentation](https://evaldocs.multivon.ai)** · [Website](https://multivon.ai) · [PyPI](https://pypi.org/project/multivon-eval)
42
+
43
+ **AI evaluation for teams that ship models to production.**
44
+
45
+ Run structured evals over your AI outputs — from simple string checks to LLM-as-judge scoring to agent trace validation — with a clean Python API, beautiful terminal reports, and CI/CD integration out of the box.
46
+
47
+ ---
48
+
49
+ ```python
50
+ from multivon_eval import EvalSuite, EvalCase, Relevance, Faithfulness, NotEmpty
51
+
52
+ suite = EvalSuite("Support Bot Eval")
53
+ suite.add_cases([
54
+ EvalCase(
55
+ input="How do I reset my password?",
56
+ context="Users can reset their password by clicking 'Forgot Password' on the login page.",
57
+ ),
58
+ ])
59
+ suite.add_evaluators(NotEmpty(), Relevance(), Faithfulness())
60
+ report = suite.run(my_model_fn)
61
+ ```
62
+
63
+ ```
64
+ ─────────────────────── Support Bot Eval ───────────────────────
65
+ # Input Output Score Status Latency
66
+ 1 How do I reset my pas... Click 'Forgot Passwor… 0.92 PASS 843ms
67
+
68
+ By Evaluator
69
+ Evaluator Avg Score Pass Rate
70
+ not_empty 1.00 100%
71
+ relevance 0.88 88%
72
+ faithfulness 0.87 87%
73
+
74
+ ╭─────────────────────── Summary ───────────────────────╮
75
+ │ Total: 1 Passed: 1 Failed: 0 Pass Rate: 100% │
76
+ ╰────────────────────────────────────────────────────────╯
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Why multivon-eval
82
+
83
+ Every team building AI products hits the same problem: **how do you know if your model is getting better or worse?**
84
+
85
+ Existing tools have real limitations:
86
+ - **DeepEval** — powerful but LLM-as-judge for everything is expensive, slow, and hard to audit
87
+ - **RAGAS** — excellent, but RAG-only
88
+ - **Promptfoo** — YAML-driven, feels rigid for Python teams
89
+
90
+ `multivon-eval` is different in three ways:
91
+
92
+ **QAG scoring** — Instead of asking a judge "rate this 1-10", we generate yes/no questions about the output and score by the fraction answered correctly. Binary questions are easier for LLMs to get right, fully auditable, and cheaper.
93
+
94
+ **Agent-native** — Built-in evaluators for tool call accuracy, plan quality, step faithfulness, and task completion. Covers agent traces from any framework (LangChain, LlamaIndex, custom).
95
+
96
+ **Four tiers** — Deterministic (free, instant), LLM-judge (QAG), agent-trace, and conversation evaluators. Mix and match; pay for LLM calls only where it matters.
97
+
98
+ ---
99
+
100
+ ## Install
101
+
102
+ ```bash
103
+ pip install multivon-eval
104
+ ```
105
+
106
+ ```bash
107
+ cp .env.example .env
108
+ # Add ANTHROPIC_API_KEY and/or OPENAI_API_KEY
109
+ ```
110
+
111
+ ---
112
+
113
+ ## Core concepts
114
+
115
+ ### `EvalCase` — A test case
116
+
117
+ ```python
118
+ from multivon_eval import EvalCase
119
+
120
+ case = EvalCase(
121
+ input="What caused the 2008 financial crisis?", # required
122
+ expected_output="Subprime mortgage collapse...", # for ExactMatch, Contains
123
+ context="The 2008 crisis was triggered by...", # for Faithfulness, Hallucination
124
+ tags=["finance", "history"], # for filtering reports
125
+ metadata={"source": "test_set_v2", "difficulty": "hard"},
126
+ )
127
+ ```
128
+
129
+ For agent evals:
130
+
131
+ ```python
132
+ from multivon_eval import EvalCase, AgentStep, ToolCall
133
+
134
+ case = EvalCase(
135
+ input="search for recent AI papers and summarize",
136
+ agent_trace=[
137
+ AgentStep(tool_calls=[ToolCall(name="search", arguments={"query": "AI papers 2025"})]),
138
+ AgentStep(tool_calls=[ToolCall(name="summarize")]),
139
+ ],
140
+ expected_tool_calls=["search", "summarize"],
141
+ )
142
+ ```
143
+
144
+ ### Evaluators
145
+
146
+ Four tiers — pick what fits your use case.
147
+
148
+ #### Tier 1: Deterministic (free, instant, no LLM needed)
149
+
150
+ | Evaluator | What it checks |
151
+ |-----------|---------------|
152
+ | `NotEmpty` | Response is non-empty |
153
+ | `ExactMatch` | Response matches `expected_output` exactly |
154
+ | `Contains(substrings)` | Response contains all required strings |
155
+ | `RegexMatch(pattern)` | Response matches a regex pattern |
156
+ | `JSONSchemaEval(schema)` | Response is valid JSON matching a schema |
157
+ | `WordCount(min, max)` | Word count within range |
158
+ | `Latency(max_ms)` | Response time under limit |
159
+ | `BLEU(n)` | BLEU-n score vs expected output |
160
+ | `ROUGE` | ROUGE-L F1 vs expected output |
161
+ | `StartsWith(prefix)` | Response starts with prefix |
162
+
163
+ #### Tier 2: LLM-as-judge (QAG scoring)
164
+
165
+ | Evaluator | What it measures | Requires `context` |
166
+ |-----------|-----------------|-------------------|
167
+ | `Faithfulness` | Response is grounded in context | Yes |
168
+ | `Hallucination` | Response doesn't invent facts | Yes |
169
+ | `Relevance` | Response addresses the question | No |
170
+ | `Coherence` | Response is clear and well-structured | No |
171
+ | `Toxicity` | Response is safe and non-harmful | No |
172
+ | `Bias` | Response is free of demographic bias | No |
173
+ | `Summarization` | Summary captures key points faithfully | Yes |
174
+ | `AnswerAccuracy` | Factual correctness vs expected | No |
175
+ | `ContextPrecision` | Relevant context retrieved | Yes |
176
+ | `ContextRecall` | All needed context retrieved | Yes |
177
+ | `CustomRubric` | Your own yes/no criteria | Optional |
178
+ | `GEval` | Holistic numeric quality score | Optional |
179
+
180
+ ```python
181
+ from multivon_eval import Faithfulness, CustomRubric
182
+
183
+ CustomRubric(
184
+ name="support_quality",
185
+ criteria=[
186
+ ("Does the response acknowledge the customer's problem?", True),
187
+ ("Does the response provide a concrete next step?", True),
188
+ ("Does the response use apologetic or defensive language?", False),
189
+ ],
190
+ threshold=0.8,
191
+ )
192
+ ```
193
+
194
+ #### Tier 3: Agent trace evaluators
195
+
196
+ | Evaluator | What it checks |
197
+ |-----------|---------------|
198
+ | `ToolCallAccuracy` | Expected tools called (ordered or unordered) |
199
+ | `ToolArgumentAccuracy` | Quality of tool arguments |
200
+ | `PlanQuality` | Plan logic, completeness, efficiency |
201
+ | `TaskCompletion` | Final output satisfies the task goal |
202
+ | `StepFaithfulness` | Each step follows logically from prior |
203
+
204
+ ```python
205
+ from multivon_eval import ToolCallAccuracy
206
+
207
+ ToolCallAccuracy(require_order=True) # strict ordering
208
+ ToolCallAccuracy(require_order=False) # set match (default)
209
+ ```
210
+
211
+ #### Tier 4: Conversation evaluators
212
+
213
+ | Evaluator | What it checks |
214
+ |-----------|---------------|
215
+ | `ConversationRelevance` | Each response stays on topic |
216
+ | `KnowledgeRetention` | Model remembers earlier context |
217
+ | `ConversationCompleteness` | Conversation resolves the original goal |
218
+ | `TurnConsistency` | No contradictions across turns |
219
+
220
+ ```python
221
+ from multivon_eval import EvalCase
222
+
223
+ case = EvalCase(
224
+ input="Is this product available in blue?",
225
+ conversation=[
226
+ {"role": "user", "content": "I need a new laptop"},
227
+ {"role": "assistant", "content": "I can help you find a laptop. What's your budget?"},
228
+ {"role": "user", "content": "Around $1000"},
229
+ {"role": "assistant", "content": "Here are some options around $1000..."},
230
+ ],
231
+ )
232
+ ```
233
+
234
+ ### `EvalSuite` — The runner
235
+
236
+ ```python
237
+ from multivon_eval import EvalSuite
238
+
239
+ suite = EvalSuite("My Eval", model_id="gpt-4o")
240
+ suite.add_cases(cases)
241
+ suite.add_evaluators(NotEmpty(), Relevance(), Faithfulness(threshold=0.7))
242
+
243
+ # Serial
244
+ report = suite.run(model_fn, verbose=True, fail_threshold=0.8)
245
+
246
+ # Parallel (thread-based)
247
+ report = suite.run(model_fn, workers=8)
248
+
249
+ # Async
250
+ import asyncio
251
+ report = asyncio.run(suite.run_async(model_fn, concurrency=10))
252
+ ```
253
+
254
+ ### Loading datasets
255
+
256
+ ```python
257
+ from multivon_eval import load
258
+
259
+ cases = load("tests/dataset.jsonl") # auto-detects format
260
+ cases = load("tests/dataset.csv")
261
+ ```
262
+
263
+ **JSONL format:**
264
+ ```json
265
+ {"input": "What is the capital of France?", "expected_output": "Paris", "tags": ["factual"]}
266
+ {"input": "Summarize this document.", "context": "Document text here...", "tags": ["summarization"]}
267
+ ```
268
+
269
+ **CSV format:**
270
+ ```
271
+ input,expected_output,context,tags
272
+ What is 2+2?,4,,math
273
+ Summarize this.,,Long text here,summarization
274
+ ```
275
+
276
+ ### Exporting results
277
+
278
+ ```python
279
+ report.save_json("results.json")
280
+ report.save_csv("results.csv")
281
+ ```
282
+
283
+ ---
284
+
285
+ ## CLI
286
+
287
+ ```bash
288
+ multivon-eval run eval.py
289
+ multivon-eval report results.json
290
+ ```
291
+
292
+ ---
293
+
294
+ ## CI/CD integration
295
+
296
+ ```python
297
+ # eval.py
298
+ report = suite.run(model_fn, fail_threshold=0.85) # exits 1 if < 85% pass
299
+ ```
300
+
301
+ ```yaml
302
+ # .github/workflows/eval.yml
303
+ - name: Run evals
304
+ run: python eval.py
305
+ env:
306
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
307
+ ```
308
+
309
+ ---
310
+
311
+ ## Architecture
312
+
313
+ ```
314
+ EvalSuite.run(model_fn)
315
+
316
+ ├── for each EvalCase:
317
+ │ ├── call model_fn(case.input) → output
318
+ │ └── for each Evaluator:
319
+ │ ├── Deterministic → no LLM, instant
320
+ │ ├── LLM Judge → QAG yes/no questions → fraction score
321
+ │ ├── Agent → trace inspection + LLM judge
322
+ │ └── Conversation → multi-turn analysis
323
+
324
+ └── EvalReport
325
+ ├── CaseResult × N
326
+ ├── per-evaluator scores
327
+ ├── terminal report (rich)
328
+ └── export → JSON / CSV
329
+ ```
330
+
331
+ **Judge model:** Configured via `JUDGE_MODEL` and `JUDGE_PROVIDER` env vars. Defaults to `claude-sonnet-4-6`. The model under test and the judge model can be different providers.
332
+
333
+ ---
334
+
335
+ ## Examples
336
+
337
+ | File | What it shows |
338
+ |------|--------------|
339
+ | [`basic_eval.py`](examples/basic_eval.py) | Deterministic evaluators, no LLM judge |
340
+ | [`rag_eval.py`](examples/rag_eval.py) | Faithfulness + hallucination for RAG systems |
341
+ | [`ci_eval.py`](examples/ci_eval.py) | CI/CD integration with pass threshold |
342
+
343
+ ---
344
+
345
+ ## Tests
346
+
347
+ ```bash
348
+ pip install -e ".[dev]"
349
+ pytest tests/ -v
350
+ ```
351
+
352
+ ---
353
+
354
+ ## Roadmap
355
+
356
+ - [x] Deterministic evaluators (BLEU, ROUGE, regex, JSON schema, latency)
357
+ - [x] LLM-as-judge with QAG scoring
358
+ - [x] Agent trace evaluators (tool call accuracy, plan quality)
359
+ - [x] Conversation evaluators
360
+ - [x] Parallel + async runners
361
+ - [x] CLI (`multivon-eval run`, `multivon-eval report`)
362
+ - [ ] HTML report export
363
+ - [ ] Pytest plugin (`@eval_case` decorator)
364
+ - [ ] Model comparison mode — diff two models on same cases
365
+ - [ ] Eval versioning — track scores over time
366
+
367
+ ---
368
+
369
+ ## Contributing
370
+
371
+ Issues and PRs welcome.
372
+
373
+ **Small changes** (docs, bug fixes): open a PR directly.
374
+ **Large changes** (new evaluators, architecture): open an issue first.
375
+
376
+ ```bash
377
+ git clone https://github.com/multivon-ai/multivon-eval
378
+ cd llm-evals
379
+ pip install -e ".[dev]"
380
+ pytest tests/
381
+ ```
382
+
383
+ ---
384
+
385
+ ## License
386
+
387
+ MIT — built by [Multivon](https://multivon.ai)