File tree Expand file tree Collapse file tree 5 files changed +54
-30
lines changed Expand file tree Collapse file tree 5 files changed +54
-30
lines changed Original file line number Diff line number Diff line change 86
86
- anyio
87
87
- fh-llm-client>=0.0.9 # Match pyproject.toml
88
88
- fhaviary[llm]>=0.14 # Match pyproject.toml
89
- - ldp>=0.17 # Match pyproject.toml
89
+ - ldp>=0.20 # Match pyproject.toml
90
90
- html2text
91
91
- httpx
92
92
- pybtex
Original file line number Diff line number Diff line change 14
14
"SimpleAgentState" ,
15
15
"UIndexMemoryModel" ,
16
16
"_Memories" ,
17
+ "bulk_evaluate_consensus" ,
17
18
"discounted_returns" ,
18
- "evaluate_consensus" ,
19
19
"set_training_mode" ,
20
20
]
21
21
34
34
Callback ,
35
35
ComputeTrajectoryMetricsMixin ,
36
36
RolloutManager ,
37
- evaluate_consensus ,
37
+ bulk_evaluate_consensus ,
38
38
)
39
39
from ldp .graph .memory import Memory , UIndexMemoryModel
40
40
from ldp .graph .op_utils import set_training_mode
@@ -63,5 +63,5 @@ class Callback: # type: ignore[no-redef]
63
63
SimpleAgentState = None # type: ignore[assignment,misc]
64
64
UIndexMemoryModel = None # type: ignore[assignment,misc]
65
65
discounted_returns = None # type: ignore[assignment]
66
- evaluate_consensus = None # type: ignore[assignment]
66
+ bulk_evaluate_consensus = None # type: ignore[assignment]
67
67
set_training_mode = None # type: ignore[assignment]
Original file line number Diff line number Diff line change 36
36
from paperqa ._ldp_shims import (
37
37
Callback ,
38
38
ComputeTrajectoryMetricsMixin ,
39
- evaluate_consensus ,
39
+ bulk_evaluate_consensus ,
40
40
)
41
41
from paperqa .docs import Docs
42
42
from paperqa .litqa import (
@@ -254,7 +254,7 @@ def extract_ideal(x: GradablePaperQAEnvironment | Frame) -> str:
254
254
return query ["ideal_answer" ]
255
255
256
256
try :
257
- consensus , accuracy = await evaluate_consensus (
257
+ consensus , accuracy = await bulk_evaluate_consensus (
258
258
data = data ,
259
259
grouping_fn = extract_question ,
260
260
extract_answer_fn = extract_answer ,
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ dev = [
77
77
" vcrpy>=6" , # Pin for https://github.com/kevin1024/vcrpy/issues/884
78
78
]
79
79
ldp = [
80
- " ldp>=0.17 " , # For evaluate_consensus
80
+ " ldp>=0.20 " , # For bulk_evaluate_consensus
81
81
]
82
82
local = [
83
83
" sentence-transformers" ,
You can’t perform that action at this time.
0 commit comments