Re-allow multithreading on service. Add results table

This commit is contained in:
William Jeynes
2026-03-24 18:29:40 +00:00
parent 80bc151379
commit 624d45bc53
4 changed files with 31 additions and 18 deletions
+12 -12
View File
@@ -16,22 +16,22 @@ export const robertaMetrics: GraphNode<typeof MessagesState> = async (state) =>
const flscore = flresult.validProb - flresult.invalidProb;
//Option 1: combining scores
// const score = lrscore * 0.3 + roscore * 0.5 + flscore * 0.3
const score = lrscore * 0.3 + roscore * 0.5 + flscore * 0.3
//Option 2: majority voting
const rovote = roscore > 0.6
const flvote = flscore > 0.94
const lrvote = lrscore > 0.75
// const rovote = roscore > 0.6
// const flvote = flscore > 0.94
// const lrvote = lrscore > 0.75
let counter = 0
if (rovote) counter++
if (flvote) counter++
if (lrvote) counter++
// let counter = 0
// if (rovote) counter++
// if (flvote) counter++
// if (lrvote) counter++
let score = 0
if (counter >= 2) {
score = 0.7 + lrscore + flscore + lrscore
}
// let score = 0
// if (counter >= 2) {
// score = 0.7 + lrscore + flscore + lrscore
// }
return {
messages: [ new AIMessage("ROBERTA:" + score)]