python-flexeval 0.1.5__py3-none-any.whl → 0.3.0__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.
- flexeval/__about__.py +1 -0
- flexeval/__init__.py +2 -0
- flexeval/classes/eval_runner.py +1 -1
- flexeval/classes/jsonview.py +107 -0
- flexeval/classes/message.py +5 -0
- flexeval/classes/thread.py +4 -0
- flexeval/compute_metrics.py +1 -1
- flexeval/configuration/function_metrics.py +2 -2
- flexeval/data_loader.py +26 -11
- flexeval/db_utils.py +8 -1
- flexeval/metrics/__init__.py +1 -1
- flexeval/metrics/access.py +24 -2
- flexeval/schema/eval_schema.py +10 -0
- flexeval/schema/evalrun_schema.py +1 -1
- flexeval/schema/rubric_schema.py +1 -1
- {python_flexeval-0.1.5.dist-info → python_flexeval-0.3.0.dist-info}/METADATA +7 -5
- {python_flexeval-0.1.5.dist-info → python_flexeval-0.3.0.dist-info}/RECORD +20 -18
- {python_flexeval-0.1.5.dist-info → python_flexeval-0.3.0.dist-info}/WHEEL +0 -0
- {python_flexeval-0.1.5.dist-info → python_flexeval-0.3.0.dist-info}/entry_points.txt +0 -0
- {python_flexeval-0.1.5.dist-info → python_flexeval-0.3.0.dist-info}/licenses/LICENSE +0 -0
flexeval/__about__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.0"
|
flexeval/__init__.py
CHANGED
flexeval/classes/eval_runner.py
CHANGED
|
@@ -111,7 +111,7 @@ class EvalRunner:
|
|
|
111
111
|
|
|
112
112
|
def load_evaluation_settings(self):
|
|
113
113
|
"""This function parses our eval suite and puts it in the data structure we'll need
|
|
114
|
-
for easy use at run-time
|
|
114
|
+
for easy use at run-time.
|
|
115
115
|
"""
|
|
116
116
|
# if the current eval has a 'config' entry, overwrite configuration options with its entries
|
|
117
117
|
if (
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import json
|
|
2
|
+
from collections import UserDict
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class JsonViewDict(UserDict):
|
|
6
|
+
"""Dictionary that syncs changes back to the model field."""
|
|
7
|
+
|
|
8
|
+
def __init__(
|
|
9
|
+
self,
|
|
10
|
+
model_instance,
|
|
11
|
+
text_field_attr_name,
|
|
12
|
+
json_dumps_fn=json.dumps,
|
|
13
|
+
json_loads_fn=json.loads,
|
|
14
|
+
):
|
|
15
|
+
self.model_instance = model_instance
|
|
16
|
+
self.text_field_attr_name = text_field_attr_name
|
|
17
|
+
self.json_dumps_fn = json_dumps_fn
|
|
18
|
+
self.json_loads_fn = json_loads_fn
|
|
19
|
+
|
|
20
|
+
text_value = getattr(model_instance, text_field_attr_name)
|
|
21
|
+
initial_data = self.json_loads_fn(text_value)
|
|
22
|
+
super().__init__(initial_data)
|
|
23
|
+
|
|
24
|
+
def _sync_to_model(self):
|
|
25
|
+
"""Sync the current data back to the model field."""
|
|
26
|
+
json_str = self.json_loads_fn(self.data)
|
|
27
|
+
setattr(self.model_instance, self.text_field_attr_name, json_str)
|
|
28
|
+
|
|
29
|
+
# Override mutating methods to trigger sync
|
|
30
|
+
def __setitem__(self, key, value):
|
|
31
|
+
super().__setitem__(key, value)
|
|
32
|
+
self._sync_to_model()
|
|
33
|
+
|
|
34
|
+
def __delitem__(self, key):
|
|
35
|
+
super().__delitem__(key)
|
|
36
|
+
self._sync_to_model()
|
|
37
|
+
|
|
38
|
+
def clear(self):
|
|
39
|
+
super().clear()
|
|
40
|
+
self._sync_to_model()
|
|
41
|
+
|
|
42
|
+
def pop(self, key, *args):
|
|
43
|
+
result = super().pop(key, *args)
|
|
44
|
+
self._sync_to_model()
|
|
45
|
+
return result
|
|
46
|
+
|
|
47
|
+
def popitem(self):
|
|
48
|
+
result = super().popitem()
|
|
49
|
+
self._sync_to_model()
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def setdefault(self, key, default=None):
|
|
53
|
+
result = super().setdefault(key, default)
|
|
54
|
+
self._sync_to_model()
|
|
55
|
+
return result
|
|
56
|
+
|
|
57
|
+
def update(self, *args, **kwargs):
|
|
58
|
+
super().update(*args, **kwargs)
|
|
59
|
+
self._sync_to_model()
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class JsonView:
|
|
63
|
+
"""Descriptor that provides dict-like access to a JSON text field.
|
|
64
|
+
|
|
65
|
+
Example:
|
|
66
|
+
class SomeModel(pw.Model):
|
|
67
|
+
some_field = pw.TextField(default="{}")
|
|
68
|
+
some_field_dict = JsonView(text_field_attr_name="some_field")
|
|
69
|
+
|
|
70
|
+
m = SomeModel()
|
|
71
|
+
m.some_field_dict["chosen_mistake"] = "whatever"
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
def __init__(self, text_field_attr_name):
|
|
75
|
+
self.text_field_attr_name = text_field_attr_name
|
|
76
|
+
self.attr_name = None
|
|
77
|
+
|
|
78
|
+
def __set_name__(self, owner, name):
|
|
79
|
+
"""Called when the descriptor is assigned to a class attribute."""
|
|
80
|
+
self.attr_name = f"_{name}_dict"
|
|
81
|
+
|
|
82
|
+
def __get__(self, instance, owner):
|
|
83
|
+
if instance is None:
|
|
84
|
+
return self
|
|
85
|
+
|
|
86
|
+
# Check if we already have a cached JsonViewDict
|
|
87
|
+
if not hasattr(instance, self.attr_name):
|
|
88
|
+
if not hasattr(instance, self.text_field_attr_name):
|
|
89
|
+
raise ValueError(
|
|
90
|
+
f"Failed to link this JsonView to field '{self.text_field_attr_name}' because it doesn't exist on this model instance."
|
|
91
|
+
)
|
|
92
|
+
# Cache a new JsonViewDict
|
|
93
|
+
json_dict = JsonViewDict(instance, self.text_field_attr_name)
|
|
94
|
+
setattr(instance, self.attr_name, json_dict)
|
|
95
|
+
|
|
96
|
+
return getattr(instance, self.attr_name)
|
|
97
|
+
|
|
98
|
+
def __set__(self, instance, value):
|
|
99
|
+
"""Allow setting the entire dict."""
|
|
100
|
+
if isinstance(value, dict):
|
|
101
|
+
json_dict = JsonViewDict(instance, self.text_field_attr_name)
|
|
102
|
+
json_dict.update(value)
|
|
103
|
+
setattr(instance, self.attr_name, json_dict)
|
|
104
|
+
else:
|
|
105
|
+
raise ValueError(
|
|
106
|
+
f"This JsonView must be a dictionary to set linked field '{self.text_field_attr_name}' correctly."
|
|
107
|
+
)
|
flexeval/classes/message.py
CHANGED
|
@@ -10,6 +10,7 @@ from flexeval.classes.dataset import Dataset
|
|
|
10
10
|
from flexeval.classes.eval_set_run import EvalSetRun
|
|
11
11
|
from flexeval.classes.thread import Thread
|
|
12
12
|
from flexeval.classes.turn import Turn
|
|
13
|
+
from flexeval.classes.jsonview import JsonView
|
|
13
14
|
from flexeval.configuration import completion_functions
|
|
14
15
|
|
|
15
16
|
logger = logging.getLogger(__name__)
|
|
@@ -34,6 +35,10 @@ class Message(BaseModel):
|
|
|
34
35
|
content = pw.TextField()
|
|
35
36
|
context = pw.TextField(null=True) # Previous messages
|
|
36
37
|
|
|
38
|
+
# metadata
|
|
39
|
+
metadata = pw.TextField(default="{}", null=False)
|
|
40
|
+
metadata_dict = JsonView("metadata")
|
|
41
|
+
|
|
37
42
|
# helpers
|
|
38
43
|
system_prompt = pw.TextField(null=True)
|
|
39
44
|
is_flexeval_completion = pw.BooleanField(null=True)
|
flexeval/classes/thread.py
CHANGED
|
@@ -3,6 +3,7 @@ import peewee as pw
|
|
|
3
3
|
from flexeval.classes.base import BaseModel
|
|
4
4
|
from flexeval.classes.dataset import Dataset
|
|
5
5
|
from flexeval.classes.eval_set_run import EvalSetRun
|
|
6
|
+
from flexeval.classes.jsonview import JsonView
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class Thread(BaseModel):
|
|
@@ -20,6 +21,9 @@ class Thread(BaseModel):
|
|
|
20
21
|
|
|
21
22
|
system_prompt = pw.TextField(null=True)
|
|
22
23
|
|
|
24
|
+
metadata = pw.TextField(default="{}", null=False)
|
|
25
|
+
metadata_dict = JsonView("metadata")
|
|
26
|
+
|
|
23
27
|
def __init__(self, **kwargs):
|
|
24
28
|
super().__init__(**kwargs)
|
|
25
29
|
self.metrics_to_evaluate = []
|
flexeval/compute_metrics.py
CHANGED
|
@@ -42,7 +42,7 @@ class ObjectMetric:
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
class MetricGraphBuilder:
|
|
45
|
-
"""Builds :class:`networkx.DiGraph
|
|
45
|
+
"""Builds :class:`networkx.DiGraph` s of :class:`~flexeval.compute_metrics.ObjectMetric` instances that reflect any computational dependencies between them."""
|
|
46
46
|
|
|
47
47
|
def __init__(self):
|
|
48
48
|
# key: tuple(metric_level, metric_id, object_id)
|
|
@@ -122,8 +122,8 @@ def is_role(object: Union[Turn, Message], role: str) -> dict:
|
|
|
122
122
|
and 0 otherwise.
|
|
123
123
|
|
|
124
124
|
Args:
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
object: the Turn or Message
|
|
126
|
+
role: a string with the desired role to check against
|
|
127
127
|
"""
|
|
128
128
|
return {role: int(object.role == role)}
|
|
129
129
|
|
flexeval/data_loader.py
CHANGED
|
@@ -54,18 +54,13 @@ def load_jsonl(
|
|
|
54
54
|
max(1, nb_evaluations_per_thread)
|
|
55
55
|
): # duplicate stored threads for averaged evaluation results
|
|
56
56
|
if thread_id in selected_thread_ids:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
eval_run_thread_id=str(thread_id)
|
|
62
|
-
+ "_"
|
|
63
|
-
+ str(thread_eval_run_id),
|
|
64
|
-
)
|
|
57
|
+
thread_json = json.loads(thread)
|
|
58
|
+
# extract any metadata
|
|
59
|
+
thread_metadata = thread_json.copy()
|
|
60
|
+
del thread_metadata["input"]
|
|
65
61
|
|
|
66
|
-
# Context
|
|
67
62
|
context = []
|
|
68
|
-
thread_input =
|
|
63
|
+
thread_input = thread_json["input"]
|
|
69
64
|
|
|
70
65
|
# Get system prompt used in the thread - assuming only 1
|
|
71
66
|
for message in thread_input:
|
|
@@ -78,15 +73,35 @@ def load_jsonl(
|
|
|
78
73
|
# Add the system prompt as context
|
|
79
74
|
context.append({"role": "system", "content": system_prompt})
|
|
80
75
|
|
|
76
|
+
thread_object: Thread = Thread.create(
|
|
77
|
+
evalsetrun=dataset.evalsetrun,
|
|
78
|
+
dataset=dataset,
|
|
79
|
+
jsonl_thread_id=thread_id,
|
|
80
|
+
eval_run_thread_id=str(thread_id)
|
|
81
|
+
+ "_"
|
|
82
|
+
+ str(thread_eval_run_id),
|
|
83
|
+
system_prompt=system_prompt,
|
|
84
|
+
metadata=json.dumps(thread_metadata),
|
|
85
|
+
)
|
|
86
|
+
|
|
81
87
|
# Create messages
|
|
82
88
|
index_in_thread = 0
|
|
83
89
|
for message in thread_input:
|
|
90
|
+
if not isinstance(message, dict):
|
|
91
|
+
raise ValueError(
|
|
92
|
+
f"Can't load unknown object type; expected dict. Check JSONL format: {message}"
|
|
93
|
+
)
|
|
84
94
|
role = message.get("role", None)
|
|
85
95
|
if role != "system":
|
|
86
96
|
# System message shouldn't be added as a separate message
|
|
87
97
|
system_prompt_for_this_message = ""
|
|
88
98
|
if role != "user":
|
|
89
99
|
system_prompt_for_this_message = system_prompt
|
|
100
|
+
message_metadata = message.copy()
|
|
101
|
+
if "content" in message_metadata:
|
|
102
|
+
del message_metadata["content"]
|
|
103
|
+
if "role" in message_metadata:
|
|
104
|
+
del message_metadata["role"]
|
|
90
105
|
Message.create(
|
|
91
106
|
evalsetrun=dataset.evalsetrun,
|
|
92
107
|
dataset=dataset,
|
|
@@ -95,9 +110,9 @@ def load_jsonl(
|
|
|
95
110
|
role=role,
|
|
96
111
|
content=message.get("content", None),
|
|
97
112
|
context=json.dumps(context),
|
|
98
|
-
metadata=message.get("metadata", None),
|
|
99
113
|
is_flexeval_completion=False,
|
|
100
114
|
system_prompt=system_prompt_for_this_message,
|
|
115
|
+
metadata=json.dumps(message_metadata),
|
|
101
116
|
)
|
|
102
117
|
# Update context
|
|
103
118
|
context.append(
|
flexeval/db_utils.py
CHANGED
|
@@ -14,6 +14,11 @@ from flexeval.classes.turn import Turn
|
|
|
14
14
|
DATABASE_TABLES = [EvalSetRun, Dataset, Thread, Turn, Message, ToolCall, Metric]
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
def ensure_database(database_path: str):
|
|
18
|
+
if not classes_base.database.is_connection_usable():
|
|
19
|
+
initialize_database(database_path)
|
|
20
|
+
|
|
21
|
+
|
|
17
22
|
def initialize_database(database_path: str, clear_tables: bool = False):
|
|
18
23
|
classes_base.database.init(database_path)
|
|
19
24
|
# classes_base.database.start()
|
|
@@ -34,5 +39,7 @@ def bind_to_database(database_path: str) -> pw.Database:
|
|
|
34
39
|
new_database = classes_base.create_sqlite_database(database_path)
|
|
35
40
|
new_database.bind(DATABASE_TABLES)
|
|
36
41
|
# Verify the binding worked by checking one of the models
|
|
37
|
-
assert classes_base.BaseModel._meta.database == new_database
|
|
42
|
+
assert classes_base.BaseModel._meta.database == new_database, (
|
|
43
|
+
f"Binding to '{database_path}' failed."
|
|
44
|
+
)
|
|
38
45
|
return new_database
|
flexeval/metrics/__init__.py
CHANGED
flexeval/metrics/access.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"""Utility functions for accessing metrics."""
|
|
2
|
+
|
|
1
3
|
from collections import Counter
|
|
2
4
|
|
|
3
|
-
from flexeval.classes import metric
|
|
5
|
+
from flexeval.classes import metric, message, turn, thread
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
def count_dict_values(lst: list[dict]) -> dict[str, Counter]:
|
|
@@ -21,8 +23,28 @@ def count_dict_values(lst: list[dict]) -> dict[str, Counter]:
|
|
|
21
23
|
return counts
|
|
22
24
|
|
|
23
25
|
|
|
24
|
-
def get_all_metrics() -> list:
|
|
26
|
+
def get_all_metrics() -> list[dict]:
|
|
25
27
|
results = []
|
|
26
28
|
for m in metric.Metric.select():
|
|
27
29
|
results.append(m.__data__.copy())
|
|
28
30
|
return results
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def get_first_user_message_for_threads(thread_ids: set) -> list[dict]:
|
|
34
|
+
"""Get the first user message in each thread.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
thread_ids (set): The set of thread IDs to retrieve messages for.
|
|
38
|
+
|
|
39
|
+
Returns:
|
|
40
|
+
list[dict]: An iterable of messages.
|
|
41
|
+
"""
|
|
42
|
+
return (
|
|
43
|
+
message.Message.select()
|
|
44
|
+
.join(thread.Thread)
|
|
45
|
+
.where(thread.Thread.id.in_(thread_ids))
|
|
46
|
+
.where(message.Message.role == "user")
|
|
47
|
+
.join(turn.Turn)
|
|
48
|
+
.where(turn.Turn.index_in_thread == 0)
|
|
49
|
+
.dicts()
|
|
50
|
+
)
|
flexeval/schema/eval_schema.py
CHANGED
|
@@ -16,6 +16,8 @@ MetricLevel = Literal["Message", "Turn", "Thread", "ToolCall"]
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class DependsOnItem(BaseModel):
|
|
19
|
+
"""Defines a metric dependency."""
|
|
20
|
+
|
|
19
21
|
class Config:
|
|
20
22
|
extra = "forbid"
|
|
21
23
|
|
|
@@ -56,6 +58,8 @@ class DependsOnItem(BaseModel):
|
|
|
56
58
|
|
|
57
59
|
|
|
58
60
|
class MetricItem(BaseModel):
|
|
61
|
+
"Defines a metric."
|
|
62
|
+
|
|
59
63
|
name: str = Field(
|
|
60
64
|
...,
|
|
61
65
|
description="The function to call or name of rubric to use to compute this metric.",
|
|
@@ -72,6 +76,8 @@ class MetricItem(BaseModel):
|
|
|
72
76
|
|
|
73
77
|
|
|
74
78
|
class FunctionItem(MetricItem):
|
|
79
|
+
"""Defines a metric computed from a Python function."""
|
|
80
|
+
|
|
75
81
|
kwargs: schema_utils.OptionalDict = Field(
|
|
76
82
|
default_factory=dict,
|
|
77
83
|
description="Keyword arguments for the function. Each key must correspond to an argument in the function. Extra keys will cause an error.",
|
|
@@ -80,6 +86,8 @@ class FunctionItem(MetricItem):
|
|
|
80
86
|
|
|
81
87
|
|
|
82
88
|
class RubricItem(MetricItem):
|
|
89
|
+
"""Defines a metric computed from a rubric."""
|
|
90
|
+
|
|
83
91
|
# TODO is RubricItem.kwargs actually used?
|
|
84
92
|
kwargs: Optional[Dict[str, Any]] = Field(
|
|
85
93
|
default_factory=dict,
|
|
@@ -115,6 +123,8 @@ class CompletionLlm(BaseModel):
|
|
|
115
123
|
|
|
116
124
|
|
|
117
125
|
class GraderLlm(BaseModel):
|
|
126
|
+
"""Defines the LLM used for evaluating rubrics."""
|
|
127
|
+
|
|
118
128
|
class Config:
|
|
119
129
|
extra = "forbid"
|
|
120
130
|
|
|
@@ -37,7 +37,7 @@ class FileDataSource(DataSource):
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class FunctionsCollection(BaseModel):
|
|
40
|
-
"""Collection of functions that can be used as :class:`~flexeval.schema.eval_schema.FunctionItem
|
|
40
|
+
"""Collection of functions that can be used as :class:`~flexeval.schema.eval_schema.FunctionItem` s."""
|
|
41
41
|
|
|
42
42
|
functions: list[Callable] = Field(
|
|
43
43
|
default_factory=list,
|
flexeval/schema/rubric_schema.py
CHANGED
|
@@ -32,7 +32,7 @@ class Rubric(BaseModel):
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class RubricsCollection(BaseModel):
|
|
35
|
-
"""Collection of rubrics that can be used as :class:`~flexeval.schema.eval_schema.RubricItem
|
|
35
|
+
"""Collection of rubrics that can be used as :class:`~flexeval.schema.eval_schema.RubricItem` s."""
|
|
36
36
|
|
|
37
37
|
rubrics: dict[str, Rubric] = Field(
|
|
38
38
|
default_factory=dict,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-flexeval
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: FlexEval is a tool for designing custom metrics, completion functions, and LLM-graded rubrics for evaluating the behavior of LLM-powered systems.
|
|
5
5
|
Project-URL: Homepage, https://digitalharborfoundation.github.io/FlexEval/
|
|
6
6
|
Project-URL: GitHub, https://github.com/DigitalHarborFoundation/FlexEval
|
|
@@ -40,10 +40,12 @@ Description-Content-Type: text/markdown
|
|
|
40
40
|
|
|
41
41
|
# FlexEval LLM Evals
|
|
42
42
|
|
|
43
|
+
[](https://pypi.org/project/python-flexeval/)
|
|
43
44
|
[](https://doi.org/10.5281/zenodo.12729993)
|
|
44
45
|
[](https://github.com/DigitalHarborFoundation/FlexEval/blob/main/LICENSE)
|
|
46
|
+
[](https://github.com/DigitalHarborFoundation/FlexEval/issues)
|
|
45
47
|
|
|
46
|
-

|
|
48
|
+

|
|
47
49
|
|
|
48
50
|
FlexEval is a tool for designing custom metrics, completion functions, and LLM-graded rubrics for evaluating the behavior of LLM-powered systems.
|
|
49
51
|
|
|
@@ -73,7 +75,7 @@ flexeval.run(eval_run)
|
|
|
73
75
|
|
|
74
76
|
This example computes [Flesch reading ease](https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests#Flesch_reading_ease) for every turn in a list of conversations provided in JSONL format. The metric values are stored in an SQLite database called `eval_results.db`.
|
|
75
77
|
|
|
76
|
-
See additional usage examples in the [vignettes](/vignettes).
|
|
78
|
+
See additional usage examples in the [vignettes](https://github.com/DigitalHarborFoundation/FlexEval/tree/main/vignettes).
|
|
77
79
|
|
|
78
80
|
## Installation
|
|
79
81
|
|
|
@@ -97,7 +99,7 @@ FlexEval is designed to be "batteries included" for many basic use cases. It sup
|
|
|
97
99
|
- a set of useful rubrics
|
|
98
100
|
- a set of useful Python functions
|
|
99
101
|
|
|
100
|
-
Evaluation results are saved in an SQLite database. See the [Metric Analysis](/vignettes/metric_analysis.
|
|
102
|
+
Evaluation results are saved in an SQLite database. See the [Metric Analysis](https://digitalharborfoundation.github.io/FlexEval/generated/vignettes/metric_analysis.html) vignette for a sample analysis demonstrating the structure and utility of the data saved by FlexEval.
|
|
101
103
|
|
|
102
104
|
|
|
103
105
|
Read more in the [Getting Started](https://digitalharborfoundation.github.io/FlexEval/getting_started.html) guide.
|
|
@@ -115,4 +117,4 @@ Pull requests are welcome. Feel free to contribute:
|
|
|
115
117
|
- Bug fixes
|
|
116
118
|
- New features
|
|
117
119
|
|
|
118
|
-
See [DEVELOPMENT.md](DEVELOPMENT.md).
|
|
120
|
+
See [DEVELOPMENT.md](https://github.com/DigitalHarborFoundation/FlexEval/tree/main/DEVELOPMENT.md).
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
flexeval/
|
|
1
|
+
flexeval/__about__.py,sha256=VrXpHDu3erkzwl_WXrqINBm9xWkcyUy53IQOj042dOs,22
|
|
2
|
+
flexeval/__init__.py,sha256=UXI_xdSxnGAK2plDODBbPF3df-N7E9YJ418QHK7XN-Q,391
|
|
2
3
|
flexeval/__main__.py,sha256=c9NQqsea3e-_6b736gBeIO3O_zdXQ1wtY3-Scj5NiPg,126
|
|
3
4
|
flexeval/cli.py,sha256=RwtRk121OivbLQyYpYxJ7PugPIYQ8J4qXHFN2SxxPy4,2985
|
|
4
5
|
flexeval/completions.py,sha256=pi_tYK4m3vKSqAC1ym9Jc3e4srcQSXfx-mX4qI5qisQ,5686
|
|
5
|
-
flexeval/compute_metrics.py,sha256=
|
|
6
|
+
flexeval/compute_metrics.py,sha256=4X6XFk0qUKcaCDllNeJreuhlnDHmfRPlsf0f8fWFOxA,37277
|
|
6
7
|
flexeval/config.yaml,sha256=dpkFdW0rKf7StGoVeIGaCNw0n0yOfYWig0xmIfsDdbg,530
|
|
7
|
-
flexeval/data_loader.py,sha256=
|
|
8
|
-
flexeval/db_utils.py,sha256=
|
|
8
|
+
flexeval/data_loader.py,sha256=UP-HWqh5o_euqT2GvTbUYmA-yJcbTKtmug4w63w2CbA,26153
|
|
9
|
+
flexeval/db_utils.py,sha256=2jgqexLCAqShvgPrImZz12UkMZtfERhP8iXjratXYok,1612
|
|
9
10
|
flexeval/dependency_graph.py,sha256=SaG9gjkw2Q0NykqQWs4JzPkv5sMj2aXXmhjJ7yRkV4Q,10539
|
|
10
11
|
flexeval/eval_schema.json,sha256=BQetj8O0_4rorj3Mpqk-sj_SCaRkGMrvBUcxhuw6zLE,13111
|
|
11
12
|
flexeval/function_types.py,sha256=eH8NadQRw7XAOXAOKWYN6b7urjr57J5WzdiVyzh0Wb4,6898
|
|
@@ -17,31 +18,32 @@ flexeval/runner.py,sha256=X6ZfjfwIM3ymN_kHfRt_JSKPxpDxs_MWQPrvWhl2L7I,4340
|
|
|
17
18
|
flexeval/classes/__init__.py,sha256=fywDMYX8W-nXFKRXolzn-RWd_7tiJr6FlouQJvYSoyE,347
|
|
18
19
|
flexeval/classes/base.py,sha256=xxkTa8joPe39CFwveeTPW56LW-x7rsi5oBAIxrvM5iI,944
|
|
19
20
|
flexeval/classes/dataset.py,sha256=Y_EdEIuhx526SSvkqk2tFBzkOgBkVY-5FeraYMtU5lo,2913
|
|
20
|
-
flexeval/classes/eval_runner.py,sha256
|
|
21
|
+
flexeval/classes/eval_runner.py,sha256=ZvCpyaD7lorDK_mYJSZqQbvI6FfLbIWRFHNarWTAMQU,6270
|
|
21
22
|
flexeval/classes/eval_set_run.py,sha256=fq_wBOaxuq7dLxiZIw76WGIwhRBNbQWDUhpiK0wDG_A,1116
|
|
22
|
-
flexeval/classes/
|
|
23
|
+
flexeval/classes/jsonview.py,sha256=3XJTh46ODfqdNbrXYDEV6kRO8KbeiHJo5pb4aJrbHRY,3459
|
|
24
|
+
flexeval/classes/message.py,sha256=gDejDfaHGQKgS_CpJqjPAVzpiRD2JddKo17Yi1wVeiw,7676
|
|
23
25
|
flexeval/classes/metric.py,sha256=d8l39_QwnQDmTJvy9TIulU4p0jqD7ldMUi4m5zfK2Es,2806
|
|
24
|
-
flexeval/classes/thread.py,sha256=
|
|
26
|
+
flexeval/classes/thread.py,sha256=cFQu3Mwzk8-Def8xccB8F6zKv64Srvhz5n83yLELvKo,2922
|
|
25
27
|
flexeval/classes/tool_call.py,sha256=CteT2Hajor0PlHEEn7apfZux5_mremSIDrQmZ0iB7K0,1748
|
|
26
28
|
flexeval/classes/turn.py,sha256=kLmgnYQ-4a8sydzGK1HTQRyUDXZIedmt_NFR3shLJFE,8635
|
|
27
29
|
flexeval/configuration/__init__.py,sha256=wP_gpYyaEp5DxCSH8-4KHchH07JMZZOk8eCFMfd5LBw,75
|
|
28
30
|
flexeval/configuration/completion_functions.py,sha256=-N0iFAfcYcm35S78M3ES4MBkLXpDeEfy2Qq1ORHGBXE,7491
|
|
29
31
|
flexeval/configuration/evals.yaml,sha256=3mbD3gEccTDotm8kj4doYTujqRD_PkGhCVhjQaSEqSs,22651
|
|
30
|
-
flexeval/configuration/function_metrics.py,sha256=
|
|
32
|
+
flexeval/configuration/function_metrics.py,sha256=SGCxCAfG5NfKop-d3_uJgF83nPrlfHAhd-TU0GpEPFY,22427
|
|
31
33
|
flexeval/configuration/rubric_metrics.yaml,sha256=JfE6gPj4LtM2v0b5-Zge3NwM17YgJEBZXzTVn9UL7zk,9424
|
|
32
34
|
flexeval/io/__init__.py,sha256=MqdgcPzkFpSnOEz-e2GNNd8XOI_DbyNjIP8AT5eqUqI,101
|
|
33
35
|
flexeval/io/parsers/yaml_parser.py,sha256=2yE6j_RM_YG5nkNUWZckrymh61n28AG46lqnPSlWitk,1818
|
|
34
|
-
flexeval/metrics/__init__.py,sha256=
|
|
35
|
-
flexeval/metrics/access.py,sha256=
|
|
36
|
+
flexeval/metrics/__init__.py,sha256=qrgUhTXzezAOoABhck3hMVN-c2Bwn7CTg-e_P2w7PlA,134
|
|
37
|
+
flexeval/metrics/access.py,sha256=mP89IUNTWpHguMEdjjh_deMxdiyClb61hg3k7Jcus-o,1299
|
|
36
38
|
flexeval/metrics/save.py,sha256=8x9ifRiHtQT7_WeMP0XmYK1zfourXMnHkGZy_iR0Xcc,1643
|
|
37
39
|
flexeval/schema/__init__.py,sha256=4OA6Q7Dguz-uaulwoRsrtaoReFmyNsKqyi_CvfDV4-c,379
|
|
38
40
|
flexeval/schema/config_schema.py,sha256=LkmtiOLfPsX1u_6Ey6gFbRr8tQwxqcuLcyf-xYcBf9o,1619
|
|
39
|
-
flexeval/schema/eval_schema.py,sha256=
|
|
40
|
-
flexeval/schema/evalrun_schema.py,sha256=
|
|
41
|
-
flexeval/schema/rubric_schema.py,sha256=
|
|
41
|
+
flexeval/schema/eval_schema.py,sha256=iHMbanW4Ef_sp51KiaZKeP3Dn4Z6pWCGa7N2SPvsFK0,6607
|
|
42
|
+
flexeval/schema/evalrun_schema.py,sha256=M7JY01DhlLzwZc2jJTIeGPs9vt6TFMPir51MFhtRllA,3526
|
|
43
|
+
flexeval/schema/rubric_schema.py,sha256=uxcf7MHWKW3EmABUnWeCinGUP6LBjskiq7zkEPHmAvU,1615
|
|
42
44
|
flexeval/schema/schema_utils.py,sha256=Fg1foqRA-9X-hl_vqIF3bpYdE51hNEgdw739Q-s3iQc,698
|
|
43
|
-
python_flexeval-0.
|
|
44
|
-
python_flexeval-0.
|
|
45
|
-
python_flexeval-0.
|
|
46
|
-
python_flexeval-0.
|
|
47
|
-
python_flexeval-0.
|
|
45
|
+
python_flexeval-0.3.0.dist-info/METADATA,sha256=xBbeZrF4aEdl94pg-L2P_Di6cxtxA3aZnu6fxFjUf-8,5599
|
|
46
|
+
python_flexeval-0.3.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
47
|
+
python_flexeval-0.3.0.dist-info/entry_points.txt,sha256=wSyluqXhrX3xySVYAtM-Kv23p4OauKQCSBuNNfzEGtI,52
|
|
48
|
+
python_flexeval-0.3.0.dist-info/licenses/LICENSE,sha256=OlAu_c13gw6-fJ9UdhZBMeNr5STLrnWG_0Hv0SCXtu4,1082
|
|
49
|
+
python_flexeval-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|