File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ All notable changes to this project will be documented in this file.
76
76
- Add fact scorer demons json file
77
77
- Add CONTRIBUTING.md guidelines
78
78
79
+ ## v 1.2.0 - 2024-04-19
80
+
81
+ - Fix knowledge source in fact scorer prompt (used to send all knowledge sources in one prompt)
82
+
79
83
<!--
80
84
### Added
81
85
Original file line number Diff line number Diff line change @@ -98,16 +98,18 @@ def get_decisions(
98
98
decisions = self .decisions_handler .load ()
99
99
scores = []
100
100
init_scores = []
101
+ cur_knw_idx = 0
101
102
102
- for enrty in decisions :
103
- score , init_score = self .calculate_score (enrty ["decision" ])
103
+ for entry in decisions :
104
+ score , init_score = self .calculate_score (entry ["decision" ])
104
105
init_scores .append (init_score )
105
106
scores .append (score )
107
+ cur_knw_idx += 1
106
108
107
109
for entry in tqdm (generation_facts_pairs [len (decisions ) :]):
108
110
generation , facts = entry ["generation" ], entry ["facts" ]
109
111
110
- decision = self .fact_scorer .get_score (facts , knowledge_sources )
112
+ decision = self .fact_scorer .get_score (facts , knowledge_sources [ cur_knw_idx ] )
111
113
score , init_score = self .calculate_score (decision )
112
114
113
115
init_scores .append (init_score )
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = FactScoreLite
3
- version = 1.1 .0
3
+ version = 1.2 .0
4
4
author = armingh2000
5
5
author_email =
6
6
license = MIT
You can’t perform that action at this time.
0 commit comments