remove context examples

This commit is contained in:
William Jeynes
2026-03-25 22:32:41 +00:00
parent 77cdd9a01c
commit 3286df6450
+5 -5
View File
@@ -7,11 +7,11 @@ export const triggerEventSetup: GraphNode<typeof MessagesState> = async (state)
let nc = state?.messages?.at(-1)?.content ?? "" //keep a copy of normalized trigger event. Again two things, womp womp let nc = state?.messages?.at(-1)?.content ?? "" //keep a copy of normalized trigger event. Again two things, womp womp
//Now give in-context examples. hopwfully we can self-teach? //Now give in-context examples. hopwfully we can self-teach?
let similarityResults = await rankExampleTriggerEvents(state.disinformationTitle) // let similarityResults = await rankExampleTriggerEvents(state.disinformationTitle)
let messages : BaseMessage[] = similarityResults.map((item) => { // let messages : BaseMessage[] = similarityResults.map((item) => {
return new AIMessage(`- Event: ${item.rawtext} \n\n - Claims and given scores: ${item.cleantext}`) // return new AIMessage(`- Event: ${item.rawtext} \n\n - Claims and given scores: ${item.cleantext}`)
}) // })
return { messages: messages, disinformationTitle: state.disinformationTitle, normalizedClaim: nc }; return { disinformationTitle: state.disinformationTitle, normalizedClaim: nc };
}; };