Refactor calculating score. Add sort node for vanity

This commit is contained in:
William Jeynes
2026-02-12 23:46:00 +00:00
parent b06c08daab
commit 7fe63d6a98
6 changed files with 56 additions and 30 deletions
-2
View File
@@ -8,8 +8,6 @@ export const ragasMetrics: GraphNode<typeof MessagesState> = async (state) => {
const answer = state.proposedTriggerEvent[state.proposedTriggerEventIndex].Event
const contexts = state.proposedTriggerEvent[state.proposedTriggerEventIndex].context?.split("^^^") ?? []
console.log(contexts)
const results = await evaluateWithRagas({question, answer, contexts})
return {